- @event_handler(events.NOTEON)
- def noteon(self, evt) :
- tone = evt.tone
- self.synth.noteon(0, tone.midi, 96)
-
- @event_handler(events.NOTEOFF)
- def noteoff(self, evt) :
- tone = evt.tone
- self.synth.noteoff(0, tone.midi)
+ @event_handler(events.COLDOWN)
+ def noteon(self, event) :
+ col = event.column
+ col.update(True)
+ self.currentColumn = col
+ self.playnote(col, event.pos)