From e2a7f320a427679c79fe725d726fe24290e073a1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 1 Jul 2020 16:00:18 +0100 Subject: [PATCH] Fix missing MIDI CC in jack-apps (was missing implementation) Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginJack.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/backend/plugin/CarlaPluginJack.cpp b/source/backend/plugin/CarlaPluginJack.cpp index 87f581125..4384bd5ad 100644 --- a/source/backend/plugin/CarlaPluginJack.cpp +++ b/source/backend/plugin/CarlaPluginJack.cpp @@ -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: