Browse Source

midipattern; kill note on event removal

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0
falkTX 3 years ago
parent
commit
10cd9d0392
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      source/native-plugins/midi-pattern.cpp

+ 10
- 1
source/native-plugins/midi-pattern.cpp View File

@@ -1,6 +1,6 @@
/*
* Carla Native Plugins
* Copyright (C) 2012-2020 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2021 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -461,6 +461,15 @@ protected:
}

fMidiOut.removeRaw(time, data, size);

if (MIDI_IS_STATUS_NOTE_ON(data[0]))
{
const uint8_t status = MIDI_STATUS_NOTE_OFF | (data[0] & MIDI_CHANNEL_BIT);

const CarlaMutexLocker cml(fMidiQueue.getMutex());
fMidiQueue.put(status, data[1], 0);
}

return true;
}



Loading…
Cancel
Save