1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Update MidiMessageSequence::updateMatchedPairs to deal with note-on messages with velocity 0

This commit is contained in:
無常 2024-11-07 22:55:20 +08:00
parent 5179f4e720
commit d124a1a17e
2 changed files with 8 additions and 5 deletions

View file

@ -230,8 +230,11 @@ public:
Call this after re-ordering messages or deleting/adding messages, and it
will scan the list and make sure all the note-offs in the MidiEventHolder
structures are pointing at the correct ones.
@param regardNoteOnEventWithVel0AsNoteOff if true, note-on events with velocity 0
will be regarded as note-off
*/
void updateMatchedPairs() noexcept;
void updateMatchedPairs(bool regardNoteOnEventsWithVel0AsNoteOff = true) noexcept;
/** Forces a sort of the sequence.
You may need to call this if you've manually modified the timestamps of some