melody_player

this file defines a utility class that can be used in writing melodies

its main target is to play melodies defined in static.melodies NB: the sound-engine has to be on to hear the melody usage:

  1. create an instance of melody player.
  2. set its melody attribute
  3. call play()
class roqba.utilities.melody_player.MelodyPlayer(speed=0.1)[source]
play(real_scale, start=0)[source]

plays the melody given in the self.melody attribute

by sending the necessary messages to the roqba-sound-engine

roqba.utilities.melody_player.extract_modified_move(move)[source]