예제 #1
0
 def onCueCopy(self, evt):
     cues = QLiveLib.getVar("CuesPanel")
     current = cues.getCurrentCue()
     if current == 0:
         QLiveLib.PRINT("Can't copy cue number 0.")
         return
     cues.onCopyCue()
예제 #2
0
 def onCuePaste(self, evt):
     cues = QLiveLib.getVar("CuesPanel")
     current = cues.getCurrentCue()
     if current == 0:
         QLiveLib.PRINT("Can't paste on cue number 0.")
         return
     cues.onPasteCue()
예제 #3
0
 def _midirecv(self, status, data1, data2):
     QLiveLib.PRINT("midirecv: ", status, data1, data2)
     if status & 0xF0 == 0x90 and data2 != 0: # noteon
         midichnl = status - 0x90 + 1
         if self.noteonscan_callback is not None:
             self.noteonscan_callback(data1, midichnl)
             self.noteonscan_callback = None
         elif data1 in self.bindings["noteon"]:
             for callback in self.bindings["noteon"][data1]:
                 callback(data1, data2)
     if status & 0xF0 == 0xB0: # control change
         midichnl = status - 0xB0 + 1
         if self.ctlscan_callback is not None:
             self.ctlscan_callback(data1, midichnl)
             self.ctlscan_callback = None
         if data1 in self.bindings["ctls"]:
             for callback in self.bindings["ctls"][data1]:
                 callback(data2)