From d765234d656e47372eba07fcafcea8cc033b86f0 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 7 Feb 2021 13:59:29 +0000 Subject: [PATCH] Fix use of patchbay external canvas client with no plugins --- source/frontend/carla_host.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/frontend/carla_host.py b/source/frontend/carla_host.py index 009c9acea..4275e19dd 100644 --- a/source/frontend/carla_host.py +++ b/source/frontend/carla_host.py @@ -2277,6 +2277,9 @@ class HostWindow(QMainWindow): @pyqtSlot(int) def slot_noteOn(self, note): + if self.fPluginCount == 0: + return + for pluginId in self.fSelectedPlugins: self.host.send_midi_note(pluginId, 0, note, 100) @@ -2285,6 +2288,9 @@ class HostWindow(QMainWindow): @pyqtSlot(int) def slot_noteOff(self, note): + if self.fPluginCount == 0: + return + for pluginId in self.fSelectedPlugins: self.host.send_midi_note(pluginId, 0, note, 0)