| 61 | } |
| 62 | |
| 63 | void NoteStepper::DrawModule() |
| 64 | { |
| 65 | if (Minimized() || IsVisible() == false) |
| 66 | return; |
| 67 | |
| 68 | mResetButton->Draw(); |
| 69 | mLengthSlider->Draw(); |
| 70 | |
| 71 | for (int i = 0; i < kMaxDestinations; ++i) |
| 72 | { |
| 73 | mDestinationCables[i]->GetPatchCableSource()->SetEnabled(i < mLength); |
| 74 | if (i == mCurrentDestinationIndex) |
| 75 | { |
| 76 | ofPushStyle(); |
| 77 | ofSetColor(255, 255, 255); |
| 78 | ofCircle(10 + i * 15, mHeight - 8, 6); |
| 79 | ofPopStyle(); |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | void NoteStepper::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation) |
| 85 | { |
nothing calls this directly
no test coverage detected