コード例 #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)