+ EventDispatcher.dispatchEvents()
+ dirty = self.draw(pygame.display.get_surface())
+ pygame.display.update(dirty)
+ clock.tick(FRAMERATE)
+
+ @event_handler(pygame.KEYDOWN)
+ def handleKeyDown(self, event) :
+ if event.key == pygame.K_q:
+ self._running = False
+
+
+ @event_handler(pygame.MOUSEMOTION)
+ def handleMouseMotion(self, event) :
+ pass
+
+
+class PlayingScreen(_PlayingScreenBase) :
+ "fenêtre de jeu pour improvisation"
+ scale = [55, 57, 59, 60, 62, 64, 65, 67, 69, 71, 72]
+
+ def __init__(self) :
+ distinctNotes = []
+ for midi in self.scale :
+ tone = Tone(midi)
+ distinctNotes.append(tone)
+
+ super(PlayingScreen, self).__init__(distinctNotes)
+