本文整理汇总了Python中SpecialMixerComponent.SpecialMixerComponent._set_send_nav方法的典型用法代码示例。如果您正苦于以下问题:Python SpecialMixerComponent._set_send_nav方法的具体用法?Python SpecialMixerComponent._set_send_nav怎么用?Python SpecialMixerComponent._set_send_nav使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SpecialMixerComponent.SpecialMixerComponent
的用法示例。
在下文中一共展示了SpecialMixerComponent._set_send_nav方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: NanoKontrolShift
# 需要导入模块: from SpecialMixerComponent import SpecialMixerComponent [as 别名]
# 或者: from SpecialMixerComponent.SpecialMixerComponent import _set_send_nav [as 别名]
#.........这里部分代码省略.........
else:
value_to_send = clip_slot._started_value
elif clip_slot._clip_slot.controls_other_clips:
value_to_send = 0
'''
if value_to_send in range(128):
button.send_value(value_to_send)
else:
button.turn_off()
'''
""" MODIFIERS, MODES, KEYS CONFIG """
#MODES ARE HERE: INITIALIZATIONS, DISCONNECTS BUTTONS, SLIDERS, ENCODERS
def _clear_controls(self):
# TURNING OFF ALL LEDS IN MATRIX
self._turn_off_matrix()
# SESSION
resetsend_controls = []
self.mixer.send_controls = []
for scene_index in range(num_scenes):
scene = self.session.scene(scene_index)
scene.set_launch_button(None)
for track_index in range(num_tracks):
clip_slot = scene.clip_slot(track_index)
clip_slot.set_launch_button(None)
self.session.set_stop_track_clip_buttons(None)
self.session.set_stop_all_clips_button(None)
# REMOVE LISTENER TO SESSION MOVES
if self.session.offset_has_listener(self.__update_matrix):
self.session.remove_offset_listener(self.__update_matrix)
self.session.set_stop_all_clips_button(None)
# MIXER
self.mixer._set_send_nav(None, None)
for track_index in range(num_tracks):
strip = self.mixer.channel_strip(track_index)
strip.set_solo_button(None)
strip.set_mute_button(None)
strip.set_arm_button(None)
resetsend_controls.append(None)
strip.set_select_button(None)
for i in range(12):
self.mixer.send_controls.append(None)
strip.set_send_controls(tuple(self.mixer.send_controls))
self.mixer.set_resetsend_buttons(tuple(resetsend_controls))
# VIEW
self.view.set_device_nav_buttons(None, None)
detailclip_view_controls = []
for track_index in range(num_tracks):
detailclip_view_controls.append(None)
self.view.set_buttons(tuple(detailclip_view_controls))
# DEVICE PARAMETERS
device_param_controls = []
self.device.set_parameter_controls(tuple(device_param_controls))
self.device.set_on_off_button(None)
self.device.set_lock_button(None)
# TRANSPORT
self.transport.set_stop_button(None)
self.transport.set_play_button(None)
self.transport.set_record_button(None)
self.transport._set_quant_toggle_button(None)
self.transport.set_metronome_button(None)
self.transport._set_tempo_buttons(None, None)
self.log_message("Controls Cleared")