def set_enabled(self, enabled): if enabled: #clear note editor cache self._note_editor._force_update=True #sync to selected pad self._update_drum_group_device() if(self._drum_group_device): self._note_selector.set_selected_note(index_of(self._drum_group_device.drum_pads,self._drum_group_device.view.selected_drum_pad)) #todo: find a better way to init? if self._mode == -1: self._mode = STEPSEQ_MODE_NORMAL self._detect_scale_mode() self._track_controller.set_enabled(enabled) #update clip notes as they might have changed while we were sleeping self.on_clip_slot_changed() #call super.set_enabled() CompoundComponent.set_enabled(self,enabled) self._on_notes_changed() else: self._track_controller.set_enabled(enabled) CompoundComponent.set_enabled(self,enabled)
def set_enabled(self, enabled): CompoundComponent.set_enabled(self, enabled) if self._track_controller != None: self._track_controller.set_enabled(enabled) feedback_channels = [ self.base_channel, self.base_channel + 1, self.base_channel + 2, self.base_channel + 3 ] # non_feedback_channel = self.base_channel + 4 self._set_feedback_velocity() self._control_surface.set_feedback_channels(feedback_channels) if not enabled: self._control_surface.release_controlled_track() self._note_repeat.set_enabled(False) else: self._control_surface.set_controlled_track( self._track_controller.selected_track) if self._track_controller != None: self._track_controller._do_implicit_arm(enabled) self._track_controller.set_enabled(enabled) if enabled: if Settings.INSTRUMENT__SAVE_SCALE != None and Settings.INSTRUMENT__SAVE_SCALE == "track": self._scales.from_object(self._track_controller.selected_track) if Settings.INSTRUMENT__SAVE_SCALE != None and Settings.INSTRUMENT__SAVE_SCALE == "clip": self._scales.from_object(self._track_controller.selected_clip) self._update_OSD()
def set_enabled(self, enabled): CompoundComponent.set_enabled(self,enabled) if not enabled: self._parent._parent.set_feedback_channels([]) if self._track_controller!=None: self._track_controller._do_auto_arm(enabled) self._track_controller.set_enabled(enabled)
def set_enabled(self, enabled): if enabled: #clear cache self._note_editor._force_update=True #sync to selected pad self._update_drum_group_device() if(self._drum_group_device): self._note_selector.set_selected_note(index_of(self._drum_group_device.drum_pads,self._drum_group_device.view.selected_drum_pad)) if self._mode == -1: self._mode = STEPSEQ_MODE_COMBINED self._detect_scale_mode() self._track_controller.set_enabled(enabled) CompoundComponent.set_enabled(self,enabled)
def set_enabled(self, enabled): CompoundComponent.set_enabled(self,enabled) if self._track_controller!=None: self._track_controller.set_enabled(enabled) feedback_channels = [self.base_channel,self.base_channel+1,self.base_channel+2,self.base_channel+3] non_feedback_channel = self.base_channel+4 self._set_feedback_velocity() self._parent._parent.set_feedback_channels(feedback_channels) if not enabled: self._parent._parent.release_controlled_track() else: self._parent._parent.set_controlled_track(self.song().view.selected_track) if self._track_controller!=None: self._track_controller._do_implicit_arm(enabled) self._track_controller.set_enabled(enabled)
def set_enabled(self, enabled): CompoundComponent.set_enabled(self, enabled) if self._track_controller != None: self._track_controller.set_enabled(enabled) feedback_channels = [self.base_channel, self.base_channel + 1, self.base_channel + 2, self.base_channel + 3] # non_feedback_channel = self.base_channel + 4 self._set_feedback_velocity() self._parent._parent.set_feedback_channels(feedback_channels) if not enabled: self._parent._parent.release_controlled_track() else: self._parent._parent.set_controlled_track(self.song().view.selected_track) if self._track_controller != None: self._track_controller._do_implicit_arm(enabled) self._track_controller.set_enabled(enabled) if enabled: self._update_OSD()
def set_enabled(self, enabled): CompoundComponent.set_enabled(self, enabled) if self._track_controller != None: self._track_controller.set_enabled(enabled) feedback_channels = [self.base_channel, self.base_channel + 1, self.base_channel + 2, self.base_channel + 3] # non_feedback_channel = self.base_channel + 4 self._set_feedback_velocity() self._parent._parent.set_feedback_channels(feedback_channels) if not enabled: self._parent._parent.release_controlled_track() else: self._parent._parent.set_controlled_track(self._track_controller.selected_track) if self._track_controller != None: self._track_controller._do_implicit_arm(enabled) self._track_controller.set_enabled(enabled) if enabled: if Settings.INSTRUMENT__SAVE_SCALE != None and Settings.INSTRUMENT__SAVE_SCALE == "track": self._scales.from_object(self._track_controller.selected_track) if Settings.INSTRUMENT__SAVE_SCALE != None and Settings.INSTRUMENT__SAVE_SCALE == "clip": self._scales.from_object(self._track_controller.selected_clip) self._update_OSD()