예제 #1
0
 def __init__(self):
     ChannelStripComponent.__init__(self)
     self._default_volume_button = None
     self._default_panning_button = None
     self._default_send1_button = None
     self._default_send2_button = None
     self._invert_mute_feedback = True
예제 #2
0
 def disconnect(self):
     if self._track != None:
         volume = self._track.mixer_device.volume
         panning = self._track.mixer_device.panning
         sends = self._track.mixer_device.sends
         if volume.value_has_listener(self._on_volume_changed):
             volume.remove_value_listener(self._on_volume_changed)
         if panning.value_has_listener(self._on_panning_changed):
             panning.remove_value_listener(self._on_panning_changed)
         if len(sends) > 0:
             if sends[0].value_has_listener(self._on_send1_changed):
                 sends[0].remove_value_listener(self._on_send1_changed)
         if len(sends) > 1:
             if sends[1].value_has_listener(self._on_send2_changed):
                 sends[1].remove_value_listener(self._on_send2_changed)
     if self._default_volume_button != None:
         self._default_volume_button.remove_value_listener(self._default_volume_value)
         self._default_volume_button = None
     if self._default_panning_button != None:
         self._default_panning_button.remove_value_listener(self._default_panning_value)
         self._default_panning_button = None
     if self._default_send1_button != None:
         self._default_send1_button.remove_value_listener(self._default_send1_value)
         self._default_send1_button = None
     if self._default_send2_button != None:
         self._default_send2_button.remove_value_listener(self._default_send2_value)
         self._default_send2_button = None
     ChannelStripComponent.disconnect(self)
 def _on_arm_changed(self):
     if self._arm_button != None:
         if self._track != None and self._track in self.song().tracks:
             self._arm_button.set_on_off_values(RED_FULL, RED_LOW)
         else:
             self._arm_button.set_on_off_values(RED_LOW, LED_OFF)
     ChannelStripComponent._on_arm_changed(self)
 def _on_solo_changed(self):
     if self._solo_button != None:
         if self._track != None and self._track != self.song().master_track:
             self._solo_button.set_on_off_values(AMB_FULL, AMB_LOW)
         else:
             self._solo_button.set_on_off_values(AMB_LOW, LED_OFF)
     ChannelStripComponent._on_solo_changed(self)
예제 #5
0
 def __init__(self):
     ChannelStripComponent.__init__(self)
     self.deleted = {}
     self.clear_mode = False
     self.touch_mode = False
     self.send_control = None
     self.clear_vol_button = None
     self.clear_pan_button = None
     self.clear_send_button = None
 def _solo_value(self, value):
     ChannelStripComponent._solo_value(self, value)
     if self._track != None:
         if self._track != self.song().master_track:
             if self._name_display != None:
                 if self._value_display != None:
                     if value != 0:
                         self._name_display.display_message('Solo :')
                         self._value_display.send_midi(DISPLAY_WORD_ON) if self._track.solo else self._value_display.send_midi(DISPLAY_WORD_OFF)
 def _arm_value(self, value):
     ChannelStripComponent._arm_value(self, value)
     if self._track != None:
         if self._track != self.song().master_track:
             if self._name_display != None:
                 if self._value_display != None:
                     if self._track not in self.song().return_tracks:
                         if value != 0:
                             self._name_display.display_message('Arm :')
                             self._value_display.send_midi(DISPLAY_WORD_ON) if self._track.arm else self._value_display.send_midi(DISPLAY_WORD_OFF)
예제 #8
0
 def _arm_value(self, value):
     if self.is_enabled():
         track_was_armed = False
         if self._track != None:
             if self._track.can_be_armed:
                 track_was_armed = self._track.arm
         ChannelStripComponent._arm_value(self, value)
         if not self._track != None and self._track.can_be_armed or self._track.arm:
             if not track_was_armed:
                 if self._track.view.select_instrument():
                     self.song().view.selected_track = self._track
예제 #9
0
 def set_track(self, track):
     if track != self._track:
         if self._track != None:
             volume = self._track.mixer_device.volume
             panning = self._track.mixer_device.panning
             sends = self._track.mixer_device.sends
             if volume.value_has_listener(self._on_volume_changed):
                 volume.remove_value_listener(self._on_volume_changed)
             if panning.value_has_listener(self._on_panning_changed):
                 panning.remove_value_listener(self._on_panning_changed)
             if len(sends) > 0:
                 if sends[0].value_has_listener(self._on_send1_changed):
                     sends[0].remove_value_listener(self._on_send1_changed)
             if len(sends) > 1:
                 if sends[1].value_has_listener(self._on_send2_changed):
                     sends[1].remove_value_listener(self._on_send2_changed)
         ChannelStripComponent.set_track(self, track)
     else:
         self.update()
예제 #10
0
 def __init__(self):
     ChannelStripComponent.__init__(self)
 def disconnect(self):
     ChannelStripComponent.disconnect(self)
     self._name_display = None
     self._value_display = None
 def __init__(self):
     ChannelStripComponent.__init__(self)
     self._name_display = None
     self._value_display = None