+class PlayingScreen(_PlayingScreenBase) :
+ "fenêtre de jeu pour improvisation"
+ scale = [55, 57, 59, 60, 62, 64, 65, 67, 69, 71, 72]
+
+ def __init__(self, synth) :
+ distinctNotes = []
+ for midi in self.scale :
+ tone = Tone(midi)
+ distinctNotes.append(tone)
+
+ super(PlayingScreen, self).__init__(synth, distinctNotes)
+
+ @event_handler(events.NOTEON)
+ def noteon(self, evt) :
+ tone = evt.tone
+ self.synth.noteon(0, tone.midi, 64)
+
+ @event_handler(events.NOTEOFF)
+ def noteoff(self, evt) :
+ tone = evt.tone
+ self.synth.noteoff(0, tone.midi)
+