Browse Source

Custom handling for osc midi note

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-alpha2
falkTX 5 years ago
parent
commit
928d9b70b3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      source/frontend/carla_control.py

+ 10
- 1
source/frontend/carla_control.py View File

@@ -116,11 +116,20 @@ class CarlaHostOSC(CarlaHostQtPlugin):
#"prepare_for_save",
#"reset_parameters",
#"randomize_parameters",
"send_midi_note"
):
pluginId = lines.pop(0)
path = "/%s/%i/%s" % (self.lo_target_tcp_name, pluginId, method)

elif method == "send_midi_note":
pluginId = lines.pop(0)
channel, note, velocity = lines

if velocity:
path = "/%s/%i/note_on" % (self.lo_target_tcp_name, pluginId)
else:
path = "/%s/%i/note_off" % (self.lo_target_tcp_name, pluginId)
lines.pop(2)

else:
return self.printAndReturnError("invalid method '%s'" % method)



Loading…
Cancel
Save