Generative Flamenco

An experiment in generative music creation

(Processing, Ableton Live)


Generative Flamenco analyzes an image of a couple dancing to flamenco music pixel by pixel and translating it into MIDI signals, filtered by range, scale and key.


The small white square indicates the current position. The square loops through the picture line by line horizontally from left to right and top to bottom. Clicking anywhere in the picture will move the square.

Pixel to MIDI

The brightness value will be mapped to pitch and duration, saturation to velocity. The MIDI signals are sent to Ableton Live and output with a layer of filters and effects. Tempo, and transport control (Play, Stop) can be controlled from within Generative Flamenco.


In Action


Download the Processing sketch and Ableton Project on github.




One thought on “Generative Flamenco

  1. Hi, Tobias! Great example. Can you help me here? I downloaded your project and got some problems. I’m able to “talk” with Ableton (play, stop, tempo…) but i can’t load the notes. Your code has an “test song”. Can i comment it? And another question: why RWMidi is commented?
    Thanks, Herbert

    [WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.

Leave a Reply