diff --git a/source/carla_control.py b/source/carla_control.py index b6d5f4b1c..6837417c3 100755 --- a/source/carla_control.py +++ b/source/carla_control.py @@ -344,7 +344,7 @@ class CarlaControlServer(Server): self.fReceivedMsgs = True pluginId, current = args self.host._set_currentProgram(pluginId, current) - self.host.ProgramChangedCallback.emit(current) + self.host.ProgramChangedCallback.emit(pluginId, current) @make_method('/carla-control/set_current_midi_program', 'ii') def set_current_midi_program_callback(self, path, args): @@ -352,7 +352,7 @@ class CarlaControlServer(Server): self.fReceivedMsgs = True pluginId, current = args self.host._set_currentMidiProgram(pluginId, current) - #self.host.MidiProgramChangedCallback.emit() # FIXME + self.host.MidiProgramChangedCallback.emit(pluginId, current) @make_method('/carla-control/set_program_name', 'iis') def set_program_name_callback(self, path, args): diff --git a/source/carla_widgets.py b/source/carla_widgets.py index 24b347148..4e43083c5 100755 --- a/source/carla_widgets.py +++ b/source/carla_widgets.py @@ -534,8 +534,6 @@ class PluginEdit(QDialog): self.ui.b_save_state.clicked.connect(self.slot_stateSave) self.ui.b_load_state.clicked.connect(self.slot_stateLoad) - #host.ProgramChangedCallback.connect(self.slot_handleProgramChangedCallback) - #host.MidiProgramChangedCallback.connect(self.slot_handleMidiProgramChangedCallback) host.NoteOnCallback.connect(self.slot_handleNoteOnCallback) host.NoteOffCallback.connect(self.slot_handleNoteOffCallback) host.UpdateCallback.connect(self.slot_handleUpdateCallback)