Browse Source

Fix sending midi notes to lv2 ui bridges

tags/1.9.7
falkTX 7 years ago
parent
commit
76bfece326
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      source/bridges-ui/CarlaBridgeUI-LV2.cpp
  2. +1
    -0
      source/bridges-ui/CarlaBridgeUI.cpp

+ 1
- 1
source/bridges-ui/CarlaBridgeUI-LV2.cpp View File

@@ -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


+ 1
- 0
source/bridges-ui/CarlaBridgeUI.cpp View File

@@ -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)


Loading…
Cancel
Save