예제 #1
0
 def midi_event(self, event):
     has_on_note = self.has_on_note
     Midi_Callback.midi_event(self, event)
     if not has_on_note and self.has_on_note and self.do_key_up:
         # note on
         self.owner.do_key_callbacks(self.key)
     elif has_on_note and not self.has_on_note:
         # note off
         self.owner.do_key_callbacks(self.key, keydict="KEYUP")
예제 #2
0
파일: Midi_To_Key.py 프로젝트: bcorfman/pug
 def midi_event(self, event):
     has_on_note = self.has_on_note
     Midi_Callback.midi_event(self, event)
     if not has_on_note and self.has_on_note and self.do_key_up:
         # note on
         self.owner.do_key_callbacks( self.key)
     elif has_on_note and not self.has_on_note:
         # note off
         self.owner.do_key_callbacks( self.key, keydict="KEYUP")
예제 #3
0
 def on_start(self):
     "Get the sound object and set it to play when key is pressed"
     Midi_Callback.on_scene_start(self)
예제 #4
0
파일: Midi_To_Key.py 프로젝트: bcorfman/pug
 def on_start(self):
     "Get the sound object and set it to play when key is pressed"
     Midi_Callback.on_scene_start(self)