- @event_handler(events.NOTEON)
- def noteon(self, evt) :
- tone = evt.tone
- self.synth.noteon(0, tone.midi, DEFAULT_MIDI_VELOCITY)
-
- @event_handler(events.NOTEOFF)
- def noteoff(self, evt) :
- tone = evt.tone
- self.synth.noteoff(0, tone.midi)
+ @event_handler(events.KEYUP)
+ def handleKeyUp(self, event) :
+ self.synth.noteoff(0, self.currentColumn.tone.midi)
+ self.displayNext()
+
\ No newline at end of file