An image of Duke Ellington gets converted into MIDI art that plays his tune "Take the 'A' Train".
The algorithm for generating a MIDI file from a given image is roughly:
1. Run edge detection on the original image.
2. Dilate the grayscale edge image.
3. Downsample the image to a height matching the number of notes in the desired range.
4. Convert the downsampled image to MIDI by constraining the notes to certain pitches over time.
#midiart #music #algorithm #computervision #midi #computermusic #dukeellington #taketheatrain #atrain #jazz #code #programming #images #visualization #visuals #art #piano