def __init__(self, *a, **k): super(SpecialSessionComponent, self).__init__(*a, **k) self._slot_launch_button = None self._duplicate_button = None self._duplicate = self.register_component( DuplicateSceneComponent(self._session_ring)) self._duplicate_enabler = self.register_component( EnablingModesComponent(component=self._duplicate)) self._end_initialisation()
def __init__(self, clip_slot_copy_handler = None, fixed_length_recording = None, *a, **k): self._clip_copy_handler = clip_slot_copy_handler or ClipSlotCopyHandler() self._fixed_length_recording = fixed_length_recording with inject(copy_handler=const(self._clip_copy_handler), fixed_length_recording=const(self._fixed_length_recording)).everywhere(): super(SpecialSessionComponent, self).__init__(*a, **k) self._slot_launch_button = None self._duplicate_button = None self._duplicate = DuplicateSceneComponent(self._session_ring, parent=self) self._duplicate_enabler = EnablingModesComponent(parent=self, component=self._duplicate) self._end_initialisation()
def _create_scales_enabler(self): return EnablingModesComponent(component=self._create_scales(), enabled_color='DefaultButton.On', is_enabled=False, layer=Layer(cycle_mode_button='scale_presets_button'))