| 55 | } |
| 56 | |
| 57 | void NoteSorter::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation) |
| 58 | { |
| 59 | bool foundPitch = false; |
| 60 | |
| 61 | for (int i = 0; i < mDestinationCables.size(); ++i) |
| 62 | { |
| 63 | if (pitch == mPitch[i]) |
| 64 | { |
| 65 | mDestinationCables[i]->PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation); |
| 66 | foundPitch = true; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | if (!foundPitch) |
| 71 | PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation); |
| 72 | } |
| 73 | |
| 74 | void NoteSorter::SendCC(int control, int value, int voiceIdx) |
| 75 | { |
nothing calls this directly
no test coverage detected