- @event_handler(pygame.MOUSEBUTTONUP)
- def onMouseUp(self, event) :
- self.update(False)
- self.raiseNoteOff()
-
- def raiseNoteOn(self) :
- evt = pygame.event.Event(events.NOTEON, tone=self.tone)
- pygame.event.post(evt)
-
- def raiseNoteOff(self) :
- evt = pygame.event.Event(events.NOTEOFF, tone=self.tone)