| 35 | #include "MathUtils.h" |
| 36 | |
| 37 | NoteStepSequencer::NoteStepSequencer() |
| 38 | { |
| 39 | for (int i = 0; i < NSS_MAX_STEPS; ++i) |
| 40 | { |
| 41 | mVels[i] = ofRandom(1) < .5f ? gStepVelocityLevels[(int)StepVelocityType::Normal] * 127 : 0; |
| 42 | mNoteLengths[i] = ofRandom(1) < .5f ? .5f : 1; |
| 43 | } |
| 44 | |
| 45 | RandomizePitches(false); |
| 46 | |
| 47 | TheScale->AddListener(this); |
| 48 | } |
| 49 | |
| 50 | void NoteStepSequencer::CreateUIControls() |
| 51 | { |
nothing calls this directly
no test coverage detected