| 796 | } |
| 797 | |
| 798 | void 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 | |
| 812 | void StepSequencer::CheckboxUpdated(Checkbox* checkbox, double time) |
| 813 | { |