Browse Source

Fix MIDI file removing channel bit from 0-velocity note "on"s

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
03c52b795d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/native-plugins/midi-base.hpp

+ 1
- 1
source/native-plugins/midi-base.hpp View File

@@ -177,7 +177,7 @@ public:


// Fix zero-velocity note-ons // Fix zero-velocity note-ons
if (MIDI_IS_STATUS_NOTE_ON(data[0]) && data[2] == 0) if (MIDI_IS_STATUS_NOTE_ON(data[0]) && data[2] == 0)
rawEvent->data[0] = MIDI_STATUS_NOTE_OFF;
rawEvent->data[0] = uint8_t(MIDI_STATUS_NOTE_OFF | (data[0] & MIDI_CHANNEL_BIT));


appendSorted(rawEvent); appendSorted(rawEvent);
} }


Loading…
Cancel
Save