An Application of the Actor Model of Concurrency in Python: A Euclidean Rhythm Music Sequencer

We present a real-time sequencer, implementing the Euclidean rhythm algorithm, for creative generation of drum sequences by musicians or producers. We use the Actor model of concurrency to simplify the communication required for interactivity and musical timing, and generator comprehensions and higher-order functions to simplify the implementation of the Euclidean rhythm algorithm. The resulting application sendsMusical InstrumentDigital Interface (MIDI) data interactively to another application for sound generation.