def __init__(self, *a, **k): super(SpecialChanStripComponent, self).__init__(*a, **k) self.empty_color = 'Option.Unused' self._invert_mute_feedback = True self._delete_button = None self._duplicate_button = None self._selector_button = None self._track_parameter_name_sources = [ DisplayDataSource(' ') for _ in xrange(14) ] self._track_parameter_data_sources = [ DisplayDataSource(' ') for _ in xrange(14) ] self._track_parameter_graphic_sources = [ DisplayDataSource(' ') for _ in xrange(14) ] self._on_return_tracks_changed.subject = self.song() self._on_selected_track_changed.subject = self.song().view self._fold_task = self._tasks.add(Task.sequence(Task.wait(TRACK_FOLD_DELAY), Task.run(self._do_fold_track))).kill() self._cue_volume_slot = self.register_disconnectable(ParameterSlot()) self._track_state = self.register_disconnectable(TrackArmState()) self._on_arm_state_changed.subject = self._track_state
def __init__(self, device_parameter = None, *a, **k): self._parameter_slot = ParameterSlot(device_parameter) super(ParameterValueComponent, self).__init__(*a, **k) self.register_disconnectable(self._parameter_slot)
def __init__(self, wrapped_control=None, *a, **k): super(WrapperElement, self).__init__(*a, **k) self._wrapped_control = wrapped_control self._parameter_slot = ParameterSlot()