| 53 | } |
| 54 | |
| 55 | void NoteStrummer::DrawModule() |
| 56 | { |
| 57 | if (Minimized() || IsVisible() == false) |
| 58 | return; |
| 59 | |
| 60 | mStrumSlider->Draw(); |
| 61 | |
| 62 | int numNotes = (int)mNotes.size(); |
| 63 | int i = 0; |
| 64 | for (auto pitch : mNotes) |
| 65 | { |
| 66 | float pos = float(i + .5f) / numNotes; |
| 67 | DrawTextNormal(NoteName(pitch), mStrumSlider->GetPosition(true).x + pos * mStrumSlider->IClickable::GetDimensions().x, mStrumSlider->GetPosition(true).y + mStrumSlider->IClickable::GetDimensions().y + 12); |
| 68 | ++i; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | void NoteStrummer::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation) |
| 73 | { |
nothing calls this directly
no test coverage detected