Example #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")
Example #2
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")
Example #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)
Example #4
0
 def on_start(self):
     "Get the sound object and set it to play when key is pressed"
     Midi_Callback.on_scene_start(self)