Ejemplo n.º 1
0
 def __init__(self, identifier, *a, **k):
     super(BaseButtonElement, self).__init__(True,
                                             MIDI_NOTE_TYPE,
                                             CHANNEL,
                                             identifier,
                                             skin=pad_skin(),
                                             is_rgb=True,
                                             *a,
                                             **k)
Ejemplo n.º 2
0
 def __init__(self, *a, **k):
   super(BaseSequencerComponent, self).__init__(clip_creator = ClipCreator(),
       grid_resolution = self.control_surface.grid,
       is_enabled = False,
       skin = pad_skin(),
       *a, **k)
   self._setup_drum_group_finder()
   self.on_selected_track_changed()
   self.patch_note_editor()
   self.configure_playhead()
   self.update()
Ejemplo n.º 3
0
 def __init__(self, *a, **k):
     super(BaseSequencerComponent,
           self).__init__(clip_creator=ClipCreator(),
                          grid_resolution=self.control_surface.grid,
                          is_enabled=False,
                          skin=pad_skin(),
                          *a,
                          **k)
     self._setup_drum_group_finder()
     self.on_selected_track_changed()
     self.patch_note_editor()
     self.configure_playhead()
     self.update()
 def __init__(self):
   super(BaseMelodicComponent, self).__init__(skin=pad_skin(), is_enabled=True, 
       name='Melodic_Component', 
       layer=Layer(),
       grid_resolution = self.control_surface.grid,
       instrument_play_layer = self._create_instrument_layer())
   self._init_scales()
   self._instrument.__class__ = BaseInstrumentComponent
   self._instrument.position = FIRST_NOTE 
   self._on_octave_changed.subject = self._instrument._slider._slideable
   self._on_notes_changed.subject = self._instrument
   self._on_selected_modus.subject = self._instrument.scales._modus_list.scrollable_list
   self.reset_controlled_track()
Ejemplo n.º 5
0
 def __init__(self):
     super(BaseMelodicComponent, self).__init__(
         skin=pad_skin(),
         is_enabled=True,
         name='Melodic_Component',
         layer=Layer(),
         grid_resolution=self.control_surface.grid,
         instrument_play_layer=self._create_instrument_layer())
     self._init_scales()
     self._instrument.__class__ = BaseInstrumentComponent
     self._instrument.position = FIRST_NOTE
     self._on_octave_changed.subject = self._instrument._slider._slideable
     self._on_notes_changed.subject = self._instrument
     self._on_selected_modus.subject = self._instrument.scales._modus_list.scrollable_list
     self.reset_controlled_track()
Ejemplo n.º 6
0
 def _on_session_record_changed(self):
   status = self.song().session_record
   feedback_color = int(pad_skin()['Instrument.FeedbackRecord'] if status else pad_skin()['Instrument.Feedback'])
   self._c_instance.set_feedback_velocity(feedback_color)
Ejemplo n.º 7
0
 def __init__(self, identifier, *a, **k):
   super(BaseButtonElement, self).__init__(True, MIDI_NOTE_TYPE, 
       CHANNEL, identifier, skin = pad_skin(), is_rgb = True,
       *a, **k)