MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / _isNextOnOffEventNoteOff

Method _isNextOnOffEventNoteOff

NeuralNote/Source/SynthController.cpp:151–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected