diff options
author | falkTX <falktx@gmail.com> | 2018-08-04 10:34:40 +0200 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2018-08-04 10:34:40 +0200 |
commit | 0806803aa0cc17c1a34d651d278c2f5c6d56e507 (patch) | |
tree | cbc45691fce9e523142a8fe431137d4f0501139c /distrho/src/DistrhoUIDSSI.cpp | |
parent | 9dc2c376e5adde08e470f20e84a49638576cea83 (diff) |
Implement sendNote() for LV2
Diffstat (limited to 'distrho/src/DistrhoUIDSSI.cpp')
-rw-r--r-- | distrho/src/DistrhoUIDSSI.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/distrho/src/DistrhoUIDSSI.cpp b/distrho/src/DistrhoUIDSSI.cpp index acb43bfb..81c6e542 100644 --- a/distrho/src/DistrhoUIDSSI.cpp +++ b/distrho/src/DistrhoUIDSSI.cpp @@ -187,9 +187,12 @@ protected: if (channel > 0xF) return; - uint8_t mdata[4] = { 0, channel, note, velocity }; - mdata[1] += (velocity != 0) ? 0x90 : 0x80; - + uint8_t mdata[4] = { + 0, + channel + (velocity != 0 ? 0x90 : 0x80), + note, + velocity + }; fOscData.send_midi(mdata); } |