Browse Source

Fix inconsistent arguments in carla-control

tags/v1.9.9
falkTX 8 years ago
parent
commit
26b28bbaa1
2 changed files with 2 additions and 4 deletions
  1. +2
    -2
      source/carla_control.py
  2. +0
    -2
      source/carla_widgets.py

+ 2
- 2
source/carla_control.py View File

@@ -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):


+ 0
- 2
source/carla_widgets.py View File

@@ -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)


Loading…
Cancel
Save