示例#1
0
	def __init__(self,num_tracks,num_returns,parent):
		self._is_active = False
		MixerComponent.__init__(self,num_tracks,num_returns)		
		self.parent = parent
		self.num_tracks = num_tracks
		self._sliders = []                                       
		self._sends = []
		self._select_buttons = []
		self._rotaries = []
		self.VU_mode = 0
		self.send_mode = 0
		self.is_active = True
		#self.device = device
		self._master_fader = self.encoder(CHANNEL,MASTER_SLIDER)
		self._master_select = self.button(CHANNEL,MASTER_BUTTON)

		for track in range(num_tracks):
			self._sliders.append(self.encoder(CHANNEL,SLIDERS[track]))

		for index in range(4):
			self._rotaries.append(self.encoder(CHANNEL,ROTARIES[index]))

		for track in range(num_tracks):
			self._select_buttons.append(self.button(CHANNEL,SELECT_BUTTONS[track]))
		self._is_active = True
示例#2
0
 def __init__(self,
              num_tracks,
              num_returns=0,
              device_select=None,
              device_encoders=None):
     self.devices = []
     self.eqs = []
     self.active_track = 0
     self.device_select = device_select
     MixerComponent.__init__(self, num_tracks, num_returns)
     self.encoders = [DynamicEncoder(cc, None) for cc in device_encoders]
     for i in range(len(self._channel_strips)):
         dev = {
             "cb": None,
             "component": DeviceComponent(),
             "track": None,
             "params": [],
             "toggle": None,
         }
         self.devices.append(dev)
         self.register_components(dev["component"])
         eq = {"component": DeviceComponent(), "cb": None, "track": None}
         self.eqs.append(eq)
         self.register_components(eq["component"])
     self._reassign_tracks()
     if device_select:
         for i, b in enumerate(device_select):
             b.add_value_listener(partial(self.on_device_select_push, i))
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     self._mute_solo_is_flipped = False
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
示例#4
0
	def __init__(self,num_tracks,num_returns,parent):
		self._is_active = False
		MixerComponent.__init__(self,num_tracks,num_returns)		
		self.parent = parent
		self.num_tracks = num_tracks
		self._sliders = []                                       
		self._sends = []
		self._select_buttons = []
		self._rotaries = []
		self.VU_mode = 0
		self.send_mode = 0
		self.is_active = True
		#self.device = device
		self._master_fader = self.encoder(CHANNEL,MASTER_SLIDER)
		self._master_select = self.button(CHANNEL,MASTER_BUTTON)
	

		for track in range(num_tracks):
			self._sliders.append(self.encoder(CHANNEL,SLIDERS[track]))

		for index in range(4):
			self._rotaries.append(self.encoder(CHANNEL,ROTARIES[index]))

		for track in range(num_tracks):
			self._select_buttons.append(self.button(CHANNEL,SELECT_BUTTONS[track]))
		self._is_active = True
示例#5
0
 def __init__(self, num_tracks):
     self._meter_cache = [0 for i in range(num_tracks * 2 + 2)]
     self._pos_cache = [0 for i in range(num_tracks)]
     MixerComponent.__init__(self, num_tracks)
     self._register_timer_callback(self._update_lemur)
     self._selected_strip = None
     return
 def __init__(self,
              num_tracks,
              num_returns=0,
              with_eqs=False,
              with_filters=False):
     MixerComponent.__init__(self, num_tracks, num_returns, with_eqs,
                             with_filters)
	def __init__(self, control_surface):
		self._control_surface = control_surface
		self._skin = self._control_surface._skin
		self._prev_track_button = None
		self._next_track_button = None
		self._prev_scene_button = None
		self._next_scene_button = None
		self._play_button = None
		self._stop_button = None
		self._session_record_button = None
		self._mute_button = None
		self._solo_button = None
		self._undo_button = None
		self._arm_button = None
		self._implicit_arm = True
		MixerComponent.__init__(self, 1)
		self.set_enabled(False)

		now = int(round(time.time() * 1000))
		self._last_arm_button_press = now
		self._last_session_record_button_press = now
		self._last_undo_button_press = now
		self._last_solo_button_press = now
		self._last_stop_button_press = now
		self._long_press = 500
    def __init__(self):

        self._prev_track_button = None
        self._next_track_button = None
        self._prev_scene_button = None
        self._next_scene_button = None
        self._play_button = None
        self._stop_button = None
        self._session_record_button = None
        self._mute_button = None
        self._solo_button = None
        self._undo_button = None
        self._arm_button = None
        self._parent = None
        self._implicit_arm = True
        self._notify_parent = True
        MixerComponent.__init__(self, 1)
        self.set_enabled(False)

        now = int(round(time.time() * 1000))
        self._last_arm_button_press = now
        self._last_session_record_button_press = now
        self._last_undo_button_press = now
        self._last_solo_button_press = now
        self._last_stop_button_press = now
        self._long_press = 500

        self._selected_track = self.song().view.selected_track
        self._selected_scene = self.song().view.selected_scene
  def __init__(self, 
    sends = [], 
    mutes = [], 
    solos = [], 
    arms = [],
    selects = [], 
    master_select = None,
    crossfader = None, 
    master = None, 
    cue = None, 
    faders = [],
    **kwargs):

    MixerComponent.__init__(self, len(faders))
    Elementary.__init__(self, **kwargs)

    self.num_tracks = len(faders)
    self.name = "Mixer"
    self.set_track_offset(0)

    # One for each channel
    self.build_channel_strips(mutes, faders, sends, solos, arms, selects)

    # One-offs
    self.build_master(master, master_select)
    self.build_cue(cue)
    self.build_crossfader(crossfader)
示例#10
0
    def __init__(self,
                 control_surface=None,
                 implicit_arm=False,
                 skin_name="Session",
                 enabled=False):
        self._prev_track_button = None
        self._next_track_button = None
        self._prev_scene_button = None
        self._next_scene_button = None
        self._play_button = None
        self._stop_button = None
        self._session_record_button = None
        self._mute_button = None
        self._solo_button = None
        self._undo_button = None
        self._arm_button = None
        self._control_surface = control_surface
        self._implicit_arm = implicit_arm
        self._skin_name = skin_name
        MixerComponent.__init__(self, 1)
        self.set_enabled(enabled)

        now = int(round(time.time() * 1000))
        self._last_arm_button_press = now
        self._last_session_record_button_press = now
        self._last_undo_button_press = now
        self._last_solo_button_press = now
        self._last_stop_button_press = now
        self._long_press = 500
	def __init__(self):
		
		self._prev_track_button = None
		self._next_track_button = None
		self._prev_scene_button = None
		self._next_scene_button = None
		self._play_button = None
		self._stop_button = None
		self._session_record_button = None
		self._mute_button = None
		self._solo_button = None
		self._undo_button = None
		self._arm_button = None
		self._parent = None
		self._auto_arm = True
		self._notify_parent = True
		MixerComponent.__init__(self,1)
		self.set_enabled(False)

		now = int(round(time.time() * 1000))
		self._last_arm_button_press = now
		self._last_session_record_button_press = now
		self._last_undo_button_press = now
		self._last_solo_button_press = now
		self._last_stop_button_press = now
		self._long_press = 500
		
		self._selected_track = self.song().view.selected_track
		self._selected_scene = self.song().view.selected_scene
示例#12
0
	def __init__(self, num_tracks, parent):
		MixerComponent.__init__(self, num_tracks)
		self._sliders = []
		self.sends = []
		self.select_buttons = []
		self._rotaries = []
		self._meters = []
		self.offset = parent._track_offset
		self.parent = parent
		self.master_track = None
		self._active = False

		self._master_level = 0
		self._track_levels = []
		self._tracks = []
		##self.setup(num_tracks)
		for track in range(num_tracks):
			self._sliders.append(self.encoder(CHANNEL,SLIDERS[track]))
			self.select_buttons.append(self.button(CHANNEL,SELECT_BUTTONS[track]))
		self._sliders = tuple(self._sliders)
		for index in range(4):
			self._rotaries.append(self.encoder(CHANNEL,ROTARIES[index]))

		self._master_fader = self.encoder(CHANNEL,MASTER_SLIDER)
		self._master_select = self.button(CHANNEL,MASTER_BUTTON)
示例#13
0
    def __init__(self,
                 control_surface=None,
                 implicit_arm=False,
                 skin_name="Session",
                 enabled=False):
        self._prev_track_button = None
        self._next_track_button = None
        self._prev_scene_button = None
        self._next_scene_button = None
        self._play_button = None
        self._stop_button = None
        self._session_record_button = None
        self._mute_button = None
        self._solo_button = None
        self._undo_button = None
        self._arm_button = None
        self._control_surface = control_surface
        # has to be created early, so Attribute exceptions would not occur in on_track change defs
        self._status_transmitter = StatusTransmitter(self._control_surface)
        self._current_track = None
        self._current_clip_slot = None
        self._implicit_arm = implicit_arm
        self._skin_name = skin_name
        MixerComponent.__init__(self, 1)
        self.set_enabled(enabled)

        now = int(round(time.time() * 1000))
        self._last_arm_button_press = now
        self._last_session_record_button_press = now
        self._last_undo_button_press = now
        self._last_solo_button_press = now
        self._last_stop_button_press = now
        self._long_press = 500
	def __init__(self):
		
		self._prev_track_button = None
		self._next_track_button = None
		self._prev_scene_button = None
		self._next_scene_button = None
		self._play_button = None
		self._stop_button = None
		self._overdub_button = None
		self._mute_button = None
		self._solo_button = None
		self._undo_button = None
		self._arm_button = None
		self._parent = None
		self._auto_arm = True
		
		MixerComponent.__init__(self,1)
		
		self._last_arm_button_press=int(round(time.time() * 1000))
		self._last_overdub_button_press=int(round(time.time() * 1000))
		self._last_undo_button_press=int(round(time.time() * 1000))
		self._long_press = 500
		
		self._selected_track = self.song().view.selected_track
		self._selected_scene = self.song().view.selected_scene
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._display = None
     self._mute_button = None
     self._solo_button = None
     self._register_timer_callback(self._on_timer)
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     self._mute_solo_is_flipped = False
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
示例#17
0
 def __init__(self, num_tracks, num_returns=0, device_select=None, device_encoders=None):
     self.devices = []
     self.eqs = []
     self.active_track = 0
     self.device_select = device_select
     MixerComponent.__init__(self, num_tracks, num_returns)
     self.encoders = [DynamicEncoder(cc, None) for cc in device_encoders]
     for i in range(len(self._channel_strips)):
         dev = {
             "cb": None,
             "component": DeviceComponent(),
             "track": None,
             "params": [],
             "toggle": None,
         }
         self.devices.append(dev)
         self.register_components(dev["component"])
         eq = {
             "component": DeviceComponent(),
             "cb": None,
             "track": None
         }
         self.eqs.append(eq)
         self.register_components(eq["component"])
     self._reassign_tracks()
     if device_select:
         for i, b in enumerate(device_select):
             b.add_value_listener(partial(self.on_device_select_push, i))
示例#18
0
    def __init__(self, num_tracks):
        self._tracks_to_use_callback = None
        self._serato_interface = None
        MixerComponent.__init__(self, num_tracks)
        for index in range(num_tracks):
            self._channel_strips[index].set_index(index)

        return
 def __init__(self, num_tracks, num_returns, EQ, Filter):
     MixerComponent.__init__(self, num_tracks, num_returns, EQ, Filter)
     # SENDS
     self.sends_index = 0
     self.send_button_up = None
     self.send_button_down = None
     self.send_controls = []
     self.send_reset = []
 def __init__(self, num_tracks, num_returns, EQ, Filter):
     MixerComponent.__init__(self, num_tracks, num_returns, EQ, Filter)
     # SENDS
     self.sends_index = 0
     self.send_button_up = None
     self.send_button_down = None
     self.send_controls = []
     self.send_reset = []
 def __init__(self, parent, num_tracks):
     self._is_locked = False #added
     self._parent = parent #added
     MixerComponent.__init__(self, num_tracks)
     self._shift_button = None #added
     self._pedal = None
     self._shift_pressed = False #added
     self._pedal_pressed = False #added
示例#22
0
 def __init__(self, parent, num_tracks):
     self._is_locked = False  #added
     self._parent = parent  #added
     MixerComponent.__init__(self, num_tracks)
     self._shift_button = None  #added
     self._pedal = None
     self._shift_pressed = False  #added
     self._pedal_pressed = False  #added
示例#23
0
 def __init__(self, num_tracks):
     self._shift_button = None
     self._selected_mute_solo_button = None
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
     return
 def __init__(self, num_tracks):
     self._shift_button = None
     self._selected_mute_solo_button = None
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
     return
 def __init__(self, num_tracks, c_instance):
     self.c_instance = c_instance
     self._selected_mute_solo_button = None
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
     self._shift_pressed = False
     self._mute_solo_raw_value = 127
示例#26
0
 def __init__(self,
              num_tracks,
              num_returns=0,
              with_eqs=False,
              with_filters=False):
     MixerComponent.__init__(self, num_tracks, num_returns, with_eqs,
                             with_filters)
     self._unarm_all_button = None
     self._unsolo_all_button = None
     self._unmute_all_button = None
 def __init__(self, num_tracks, c_instance):
     self.c_instance = c_instance
     self._selected_mute_solo_button = None
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
     self._shift_pressed = False
     self._mute_solo_raw_value = 127
 def __init__(self, parent, num_tracks, c_instance):
     self.parent = parent
     self.c_instance = c_instance
     self.log("mixer.init")
     self._selected_mute_solo_button = None
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
     self._mute_solo_raw_value = 127
 def __init__(self, parent, num_tracks, c_instance):
     self.parent = parent
     self.c_instance = c_instance
     self.log("mixer.init")
     self._selected_mute_solo_button = None
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
     self._mute_solo_raw_value = 127
示例#30
0
 def __init__(self, num_tracks, num_returns=0):
     self._osd = None
     MixerComponent.__init__(self, num_tracks, num_returns)
     self._unarm_all_button = None
     self._unsolo_all_button = None
     self._unmute_all_button = None
     self.sendOffset = 0
     self.sendOffsetPatternValue = 0
     self.sendOffsetPattern = [2, 0, 2, 1, 2, 3, 2]
     self.sendOffsetBPattern = [3, 0, 3, 1, 3, 2, 3]
     self.sendOffsetCurrentPattern = []
 def __init__(self, control_surface, num_tracks, num_returns, EQ, Filter):
     self._tracks_to_use_callback = None
     MixerComponent.__init__(self, num_tracks, num_returns, EQ, Filter)
     # SENDS
     self._sends_index = 0
     self._control_surface = control_surface
     self._button_up = None
     self._button_down = None
     self._send_controls = []
     self._send_reset = []
     self._knobs = []
    def __init__(self, num_tracks, parent):
        MixerComponent.__init__(self, num_tracks)
        self._parent = parent
        self._volume_encoder_control = None
        self._vu_meters = []
        for index in self.song().visible_tracks:
            if index.has_midi_output != True:
                self._vu_meters.append(self._create_vu_meter())
            else:
                None

        self.on_selected_track_changed()
示例#33
0
    def __init__(self, num_tracks, parent):
        MixerComponent.__init__(self, num_tracks)
        self._parent = parent
        self._volume_encoder_control = None
        self._vu_meters = []
        for index in self.song().visible_tracks:
            if index.has_midi_output != True:
                self._vu_meters.append(self._create_vu_meter())
            else:
                None

        self.on_selected_track_changed()
示例#34
0
	def __init__(self,top_buttons,side_buttons,parent):
		self._clip_up_button = None
		self._clip_down_button = None
		self._overdub_button = None
		self._play_button = None
		self._stop_button = None
		self._mute_button = None
		self._solo_button = None
		self._arm_button = None
		self._selected_track = self.song().view.selected_track
		self._parent=parent
		MixerComponent.__init__(self,8)
		self._set_buttons(side_buttons[0],side_buttons[1],side_buttons[2],side_buttons[3],side_buttons[4],side_buttons[5],side_buttons[6],side_buttons[7])
示例#35
0
    def __init__(self, name_display, value_display, num_tracks, num_returns=0):
        MixerComponent.__init__(self, num_tracks, num_returns=0)
        self._name_display = name_display
        self._value_display = value_display
        for index in range(num_tracks):
            self._channel_strips[index].set_name_display(self._name_display)
            self._channel_strips[index].set_value_display(self._value_display)

        for index in range(num_returns):
            self._return_strips[index].set_name_display(self._name_display)
            self._return_strips[index].set_value_display(self._value_display)

        self._selected_strip.set_name_display(self._name_display)
        self._selected_strip.set_value_display(self._value_display)
示例#36
0
 def __init__(self):
     MixerComponent.__init__(self, NUM_TRACKS)
     self._strips = [AbletonChannelStrip(i) for i in range(NUM_TRACKS)]
     self._sliders = [
         SliderElement(CC_TYPE, MIDI_CHANNEL, (FADER_START + i))
         for i in range(NUM_TRACKS)
     ]
     self._buttons = [
         toggle_cc_button(BUTTON_START + i) for i in range(NUM_TRACKS * 2)
     ]
     self._strip_offset = 0
     self._assigned_tracks = []
     self.song().add_tracks_listener(self.__on_tracks_added_or_deleted)
     self._reassign_strips()
示例#37
0
    def __init__(self, name_display, value_display, num_tracks, num_returns = 0):
        MixerComponent.__init__(self, num_tracks, num_returns=0)
        self._name_display = name_display
        self._value_display = value_display
        for index in range(num_tracks):
            self._channel_strips[index].set_name_display(self._name_display)
            self._channel_strips[index].set_value_display(self._value_display)

        for index in range(num_returns):
            self._return_strips[index].set_name_display(self._name_display)
            self._return_strips[index].set_value_display(self._value_display)

        self._selected_strip.set_name_display(self._name_display)
        self._selected_strip.set_value_display(self._value_display)
示例#38
0
 def __init__(self, top_buttons, side_buttons, parent):
     self._clip_up_button = None
     self._clip_down_button = None
     self._overdub_button = None
     self._play_button = None
     self._stop_button = None
     self._mute_button = None
     self._solo_button = None
     self._arm_button = None
     self._selected_track = self.song().view.selected_track
     self._parent = parent
     MixerComponent.__init__(self, 8)
     self._set_buttons(side_buttons[0], side_buttons[1], side_buttons[2],
                       side_buttons[3], side_buttons[4], side_buttons[5],
                       side_buttons[6], side_buttons[7])
示例#39
0
	def __init__(self, num_tracks):
		MixerComponent.__init__(self, num_tracks)
		self._sliders = []                                       
		self.sends = []
		self._active = False
		self.select_buttons = []
		self._rotaries = []
		self._master_fader = self.encoder(CHANNEL,MASTER_SLIDER)
		self._master_select = self.button(CHANNEL,MASTER_BUTTON)
		##self.setup(num_tracks)
		for track in range(num_tracks):
			self._sliders.append(self.encoder(CHANNEL,SLIDERS[track]))

		for index in range(4):
			self._rotaries.append(self.encoder(CHANNEL,ROTARIES[index]))

		for track in range(num_tracks):
			self.select_buttons.append(self.button(CHANNEL,SELECT_BUTTONS[track]))
示例#40
0
    def __init__(self,
                 num_tracks,
                 num_returns=3,
                 with_eqs=False,
                 with_filters=False):
        MixerComponent.__init__(self, num_tracks, num_returns, with_eqs,
                                with_filters)

        self._master_stopall_button = None
        self._master_stopall_pressed = None

        self._master_mute_button = None
        self._master_mute_pressed = None

        self._master_solo_button = None
        self._master_solo_pressed = None

        self._master_arm_button = None
        self._master_arm_pressed = None
	def __init__(self, num_tracks, num_returns = 0, with_eqs = False, with_filters = False):
		MixerComponent.__init__(self, num_tracks, num_returns, with_eqs, with_filters)
		self._unarm_all_button = None
		self._unsolo_all_button = None
		self._unmute_all_button = None
	def __init__(self, num_tracks, num_returns = 0):
		self._osd = None
		MixerComponent.__init__(self, num_tracks, num_returns)
		self._unarm_all_button = None
		self._unsolo_all_button = None
		self._unmute_all_button = None
示例#43
0
 def __init__(self, matrix):
   MixerComponent.__init__(self, 8)
   self.sends = []
   self.matrix = matrix
   self.setup()
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     self._mute_solo_is_flipped = False
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
示例#46
0
 def __init__(self, num_tracks, num_returns, with_EQs, with_FILTERs):
     self._is_locked = False  #added
     MixerComponent.__init__(self, num_tracks, num_returns, with_EQs,
                             with_FILTERs)
 def __init__(self, num_tracks, num_returns = 0, with_eqs = False, with_filters = False):
     MixerComponent.__init__(self, num_tracks, num_returns, with_eqs, with_filters)
示例#48
0
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
     self._selected_tracks = []
     self._register_timer_callback(self._on_timer)
 def __init__(self, num_tracks, parent):
     MixerComponent.__init__(self, num_tracks) # init mixer
     self._parent = parent #gain access to super class methods/etc
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
     self._strip_mute_solo_buttons = None
     self._mute_solo_flip_button = None
     self._mute_solo_is_flipped = False
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)
示例#52
0
 def __init__(self, num_tracks, num_returns=0):
     MixerComponent.__init__(self, num_tracks, num_returns)
     self._unarm_all_button = None
     self._unsolo_all_button = None
     self._unmute_all_button = None
	def __init__(self, num_tracks, num_returns, with_EQs, with_FILTERs):
		self._is_locked = False #added
		MixerComponent.__init__(self, num_tracks, num_returns, with_EQs, with_FILTERs)
 def __init__(self, *a, **k):
     MixerComponent.__init__(self, *a, **k)
     self._send_select_buttons = []
 def __init__(self, num_tracks):
     self._update_callback = None
     MixerComponent.__init__(self, num_tracks)
     self._bank_display = None
 def __init__(self, num_tracks):
     self._meter_cache = [ 0 for i in range(num_tracks * 2 + 2) ]
     self._pos_cache = [ 0 for i in range(num_tracks) ]
     MixerComponent.__init__(self, num_tracks)
     self._register_timer_callback(self._update_lemur)
     self._selected_strip = None
示例#57
0
 def __init__(self, num_tracks):
     self._update_callback = None
     MixerComponent.__init__(self, num_tracks)
     self._bank_display = None
示例#58
0
 def __init__(self, num_tracks):
     MixerComponent.__init__(self, num_tracks)