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:
parent
5179f4e720
commit
d124a1a17e
2 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue