Browse Source

Fix use of patchbay external canvas client with no plugins

tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
d765234d65
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      source/frontend/carla_host.py

+ 6
- 0
source/frontend/carla_host.py View File

@@ -2277,6 +2277,9 @@ class HostWindow(QMainWindow):


@pyqtSlot(int) @pyqtSlot(int)
def slot_noteOn(self, note): def slot_noteOn(self, note):
if self.fPluginCount == 0:
return

for pluginId in self.fSelectedPlugins: for pluginId in self.fSelectedPlugins:
self.host.send_midi_note(pluginId, 0, note, 100) self.host.send_midi_note(pluginId, 0, note, 100)


@@ -2285,6 +2288,9 @@ class HostWindow(QMainWindow):


@pyqtSlot(int) @pyqtSlot(int)
def slot_noteOff(self, note): def slot_noteOff(self, note):
if self.fPluginCount == 0:
return

for pluginId in self.fSelectedPlugins: for pluginId in self.fSelectedPlugins:
self.host.send_midi_note(pluginId, 0, note, 0) self.host.send_midi_note(pluginId, 0, note, 0)




Loading…
Cancel
Save