Browse Source

Fix missing MIDI CC in jack-apps (was missing implementation)

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
e2a7f320a4
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      source/backend/plugin/CarlaPluginJack.cpp

+ 10
- 0
source/backend/plugin/CarlaPluginJack.cpp View File

@@ -1125,6 +1125,16 @@ public:
}
}
#endif
if ((pData->options & PLUGIN_OPTION_SEND_CONTROL_CHANGES) != 0 && ctrlEvent.param < MAX_MIDI_VALUE)
{
fShmRtClientControl.writeOpcode(kPluginBridgeRtClientMidiEvent);
fShmRtClientControl.writeUInt(event.time);
fShmRtClientControl.writeByte(0); // port
fShmRtClientControl.writeByte(3); // size
fShmRtClientControl.writeByte(uint8_t(MIDI_STATUS_CONTROL_CHANGE | (event.channel & MIDI_CHANNEL_BIT)));
fShmRtClientControl.writeByte(uint8_t(ctrlEvent.param));
fShmRtClientControl.writeByte(uint8_t(ctrlEvent.value*127.0f));
}
break;

case kEngineControlEventTypeMidiBank:


Loading…
Cancel
Save