MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / RandomizeRow

Method RandomizeRow

Source/StepSequencer.cpp:798–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796}
797
798void StepSequencer::RandomizeRow(int row)
799{
800 for (int col = 0; col < mGrid->GetCols(); ++col)
801 {
802 if (ofRandom(1) < mRandomizationAmount)
803 {
804 float value = 0;
805 if (ofRandom(1) < mRandomizationDensity)
806 value = ofRandom(1);
807 mGrid->SetVal(col, row, value);
808 }
809 }
810}
811
812void StepSequencer::CheckboxUpdated(Checkbox* checkbox, double time)
813{

Callers

nothing calls this directly

Calls 3

ofRandomFunction · 0.85
SetValMethod · 0.80
GetColsMethod · 0.45

Tested by

no test coverage detected