From 76bfece326ff2976eca3b57b37b00e6c2760f9cd Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 27 Dec 2016 20:40:43 +0100 Subject: [PATCH] Fix sending midi notes to lv2 ui bridges --- source/bridges-ui/CarlaBridgeUI-LV2.cpp | 2 +- source/bridges-ui/CarlaBridgeUI.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/bridges-ui/CarlaBridgeUI-LV2.cpp b/source/bridges-ui/CarlaBridgeUI-LV2.cpp index 537d7bdac..ada41afd9 100644 --- a/source/bridges-ui/CarlaBridgeUI-LV2.cpp +++ b/source/bridges-ui/CarlaBridgeUI-LV2.cpp @@ -597,7 +597,7 @@ public: midiEv.data[1] = note; midiEv.data[2] = velocity; - fDescriptor->port_event(fHandle, /* TODO */ 0, lv2_atom_total_size(midiEv), CARLA_URI_MAP_ID_ATOM_TRANSFER_ATOM, &midiEv); + fDescriptor->port_event(fHandle, /* TODO */ 0, lv2_atom_total_size(midiEv), CARLA_URI_MAP_ID_ATOM_TRANSFER_EVENT, &midiEv); } void dspAtomReceived(const uint32_t portIndex, const LV2_Atom* const atom) override diff --git a/source/bridges-ui/CarlaBridgeUI.cpp b/source/bridges-ui/CarlaBridgeUI.cpp index f96b78d17..ce56d3368 100644 --- a/source/bridges-ui/CarlaBridgeUI.cpp +++ b/source/bridges-ui/CarlaBridgeUI.cpp @@ -178,6 +178,7 @@ bool CarlaBridgeUI::msgReceived(const char* const msg) noexcept CARLA_SAFE_ASSERT_RETURN(readNextLineAsByte(velocity), true); dspNoteReceived(onOff, channel, note, velocity); + return true; } if (std::strcmp(msg, "atom") == 0)