示例#1
0
	def __init__(self, c_instance, *a, **k):
		self.log_message = logger.info
		super(Morph, self).__init__(c_instance, *a, **k)
		self._skin = Skin(MorphColors)
		with self.component_guard():
			self._setup_controls()
			self._setup_background()
			#self._setup_button_background()
			self._setup_drum_group()
			self._setup_keys_group()
			self._setup_piano_group()
			self._setup_autoarm()
			self._setup_device()
			self._setup_session()
			self._setup_session2()
			self._setup_mixer()
			self._setup_transport()
			self._setup_viewcontrol()
			self._setup_recorder()
			self._setup_translations()
			self._setup_modes()
		self._on_device_changed.subject = self._device_provider
		self.log_message('<<<<<<<<<<<<<<<<<<<<<<<<< Morph log opened >>>>>>>>>>>>>>>>>>>>>>>>>')
		self.show_message('Morph Control Surface Loaded')
		self.schedule_message(2, self._init_surface)
示例#2
0
 def __init__(self, *a, **k):
     self.log_message = logger.warning
     super(MonoFCBE3, self).__init__(*a, **k)
     self._monomod_version = 'b996'
     self._codec_version = 'b996'
     self._cntrlr_version = 'b996'
     self._cntrlr = None
     self._host_name = 'MonoFCBE3'
     self._color_type = 'Monochrome'
     self.hosts = []
     self._timer = 0
     self.flash_status = 1
     self._touched = 0
     self._last_main_mode = 'looper'
     self._skin = Skin(MONOFCBColors)
     with self.component_guard():
         self._setup_monobridge()
         self._setup_controls()
         self._setup_looper()
         #self._setup_undo()
         self._setup_delete_actions()
         #self._setup_autoarm()
         self._setup_viewcontrol()
         self._setup_session_recording_component()
         self._setup_mixer()
         self._setup_modes()
     #self._on_device_changed.subject = self._device_provider
     self.schedule_message(1, self._open_log)
     self._on_device_changed.subject = self._device_provider
     self._on_selected_track_changed.subject = self.song.view
示例#3
0
 def __init__(self, c_instance, *a, **k):
     self.log_message = logger.info
     super(Morph, self).__init__(c_instance, *a, **k)
     self._skin = Skin(MorphColors)
     with self.component_guard():
         self._setup_controls()
         self._setup_background()
         #self._setup_button_background()
         self._setup_percussion_instrument_finder()
         self._setup_drum_group()
         self._setup_drum_group2()
         self._setup_keys_group()
         self._setup_piano_group()
         self._setup_autoarm()
         self._setup_device()
         self._setup_session()
         self._setup_session2()
         self._setup_session3()
         self._setup_mixer()
         self._setup_transport()
         self._setup_viewcontrol()
         self._setup_recorder()
         self._setup_translations()
         self._setup_modes()
     self.log_message('<<<<<<<<<<<<<<<<<<<<<<<<< Morph ' + VERSION +
                      ' log opened >>>>>>>>>>>>>>>>>>>>>>>>>')
     self.show_message('Morph ' + VERSION +
                       ' Control Surface Loaded, Autoarm is: ' +
                       ('ON' if AUTOARM else 'OFF'))
     self.schedule_message(2, self._init_surface)
示例#4
0
 def __init__(self, c_instance, *a, **k):
     super(Minim, self).__init__(c_instance, *a, **k)
     self._shift_latching = LatchingShiftedBehaviour if SHIFT_LATCHING else ShiftedBehaviour
     self._skin = Skin(MinimColors)
     with self.component_guard():
         self._define_sysex()
         self._setup_monobridge()
         self._setup_controls()
         self._setup_background()
         self._setup_autoarm()
         self._setup_viewcontrol()
         self._setup_session()
         self._setup_mixer()
         self._setup_transport()
         self._setup_recorder()
         self._setup_instrument()
         self._setup_modes()
         self._setup_m4l_interface()
     self.log_message(
         '<<<<<<<<<<<<<<<<<<<<<<<<< Minim log opened >>>>>>>>>>>>>>>>>>>>>>>>>'
     )
     self.show_message('Minim Control Surface Loaded')
     self._background.set_enabled(True)
        NotePressed = MaschineIndexedColor.WARMYELLOW
        Natural = MaschineIndexedColor.YELLOWDim
        Sharp = MaschineIndexedColor.BLUEDim

    class DrumGroup:
        NotePressed = MaschineIndexedColor.WARMYELLOW
        PadEmpty = MaschineIndexedColor.BLACK
        PadFilled = MaschineIndexedColor.YELLOWDim
        PadSelected = MaschineIndexedColor.YELLOW
        PadMuted = MaschineIndexedColor.ORANGEDim
        PadMutedSelected = MaschineIndexedColor.ORANGE
        PadSoloed = MaschineIndexedColor.BLUEDim
        PadSelectedNotSoloed = MaschineIndexedColor.YELLOW
        PadSoloedSelected = MaschineIndexedColor.BLUE
        PadQuadrant0 = MaschineIndexedColor.BLUEDim
        PadQuadrant1 = MaschineIndexedColor.GREENDim
        PadQuadrant2 = MaschineIndexedColor.YELLOWDim
        PadQuadrant3 = MaschineIndexedColor.PURPLEDim
        PadQuadrant4 = MaschineIndexedColor.ORANGEDim
        PadQuadrant5 = MaschineIndexedColor.CYANDim
        PadQuadrant6 = MaschineIndexedColor.PLUMDim
        PadQuadrant7 = MaschineIndexedColor.WARMYELLOWDim


"""
eventually after  mixer component iscompleted, this should be called
from the main control surface for song injection, which is a dependency
for using dynamic colors for tracks and clips.
"""
maschine_skin = Skin(Colors)