Beispiel #1
0
 def receive_midi(self, midi_bytes):
     if midi_bytes[0] == 159:
         for s in get_control_surfaces():
             if hasattr(s, 'activate_pad_control'):
                 s.activate_pad_control(midi_bytes[1], midi_bytes[2] - 36)        
     if midi_bytes[0] == 143:
         for s in get_control_surfaces():
             if hasattr(s, 'deactivate_pad_control'):
                 s.deactivate_pad_control()        
     ControlSurface.receive_midi(self, midi_bytes)           
Beispiel #2
0
    def receive_midi(self, midi_bytes):
        ControlSurface.receive_midi(self, midi_bytes)
        if (midi_bytes[0] == 10 | 0x90) or (midi_bytes[0] == 10 | 0x80):
            if midi_bytes[1] >= 8 and midi_bytes[1] <= 24:
                track_id = midi_bytes[1] - 8
                if (track_id < 8):
                    self.song().view.selected_track = self.song(
                    ).tracks[track_id]
                elif (track_id < 10):
                    self.song().view.selected_track = self.song().tracks[
                        9 + track_id]
                elif (track_id < 12):
                    self.song().view.selected_track = self.song(
                    ).return_tracks[track_id - 10]
                else:
                    self.song().view.selected_track = self.song().master_track

                self._should_update_tracks = 2
 def receive_midi(self, midi_bytes):
     #self.log_message("Received midi! " + str(midi_bytes))
     self.requestLoop()
     ControlSurface.receive_midi(self, midi_bytes)
Beispiel #4
0
 def receive_midi(self, midi_bytes):
     if self._del_pressed and self._delete_clip(midi_bytes):
         return
     else:
         ControlSurface.receive_midi(self, midi_bytes)
Beispiel #5
0
 def receive_midi(self, midi_bytes):
     """ Receive user-specified messages and send to control script """
     ControlSurface.receive_midi(self, midi_bytes)
     self._control_component.receive_midi(midi_bytes)
 def receive_midi(self, midi_bytes):
     if self._del_pressed and self._delete_clip(midi_bytes):
         return
     else:
         ControlSurface.receive_midi(self, midi_bytes)
Beispiel #7
0
 def receive_midi(self, midi_bytes):
     """ Receive user-specified messages and send to control script """
     ControlSurface.receive_midi(self, midi_bytes)
     self._control_component.receive_midi(midi_bytes)
 def receive_midi(self, midi_bytes):
     # Hack to get a faster update loop. Call our update function each time we receive
     # a midi message
     self.request_loop()
     ControlSurface.receive_midi(self, midi_bytes)
 def receive_midi(self, midi_bytes):
     #self.log_message("Received midi! " + str(midi_bytes))
     self.requestLoop()
     ControlSurface.receive_midi(self, midi_bytes)
Beispiel #10
0
 def receive_midi(self, midi_bytes):
     ControlSurface.receive_midi(self, midi_bytes)
     self.log_message("receive"+ str(midi_bytes) )