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

Method _updateCurrentEventIndex

NeuralNote/Source/SynthController.cpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void SynthController::_updateCurrentEventIndex()
143{
144 mCurrentEventIndex = std::lower_bound(mEvents.begin(),
145 mEvents.end(),
146 mCurrentTime,
147 [](const MidiMessage& a, double b) { return (a.getTimeStamp() < b); })
148 - mEvents.begin();
149}
150
151bool SynthController::_isNextOnOffEventNoteOff(int inMidiNote)
152{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected