| 149 | } |
| 150 | |
| 151 | bool SynthController::_isNextOnOffEventNoteOff(int inMidiNote) |
| 152 | { |
| 153 | auto iter = std::find_if( |
| 154 | mEvents.begin() + static_cast<long>(mCurrentEventIndex), mEvents.end(), [inMidiNote](const MidiMessage& a) { |
| 155 | return !a.isPitchWheel() && a.getNoteNumber() == inMidiNote; |
| 156 | }); |
| 157 | |
| 158 | if (iter == mEvents.end()) { |
| 159 | return false; |
| 160 | } |
| 161 | |
| 162 | return iter->isNoteOff(); |
| 163 | } |
nothing calls this directly
no outgoing calls
no test coverage detected