@AlgoMotion
  @AlgoMotion
AlgoMotion | Algorithmically Generated MIDI Art Plays Giant Steps Changes with 9 Different Images @AlgoMotion | Uploaded February 2024 | Updated October 2024, 14 hours ago.
Images of Coltrane, Paul Chambers, Art Taylor, and some textual images get converted into MIDI that plays its own rendition of the Giant Steps changes.

Sometimes the result is actually somewhat musical! Other times not so much...

For a more pronounced visual effect, use a small viewer (don't use fullscreen or an enlarged view). Back away from the screen if necessary to help your brain interpret the pixels of the MIDI image.

The algorithm for generating a MIDI file from a given image is roughly:

1. Run Canny 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.

I'll explain the algorithm in greater detail in a future video if there's interest (in particular, the details of step 4).

________
Photo credits (where known/available):
Picture #1: John Coltrane (Ted Williams/Corbis)
Picture #2: Art Taylor (1963 advertisement for Gretsch, Photographer Unknown)
Picture #3: John Coltrane (Esmond Edwards)
Picture #4: Paul Chambers (Francis Wolff, Cosaic Images)
Picture #5: John Coltrane (Charles Vlen/Bettmann/Corbis)
Picture #6: (Text image in "Bebas Neue" font)
Picture #7: John Coltrane (Prestige Records, Photographer Unknown)
Picture #8: (Text image in "Lobster Two" font)
Picture #9: John Coltrane (johncoltrane.com)
________

Interested in learning more about algorithms and how to program? Here are some useful and/or classic textbooks that I recommend (these are affiliate links, if you buy one, I get a small commission):

▶ “Algorithms” (4th Edition) by Robert Sedgewick & Kevin Wayne: amzn.to/3uo25xR
▶ “Effective Java” (3rd Edition) by Joshua Bloch: amzn.to/3HOnYJL
▶ “Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming” by Eric Matthes: amzn.to/481jQ43
▶ “Design Patterns: Elements of Reusable Object-Oriented Software” by Erich Gamma, Richard Helm, Ralph Johnson, & John Vlissides: amzn.to/49fpr7R
▶ “Discrete Algorithmic Mathematics” by Stephen B. Maurer & Anthony Ralston: amzn.to/4bmsOvG

#midiart #music #algorithm #computervision #midi #computermusic #giantsteps #coltrane #jazz #code #programming #images #visualization #visuals #drums #sax #bass
Algorithmically Generated MIDI Art Plays Giant Steps Changes with 9 Different ImagesArt Taylor MIDI Art Plays Giant Steps Changes #midiart #music #algorithm #giantsteps #coltraneBogosort Music Machine (ChomboSort) 🎵 | Change the Chords by Typing Commands in ChatC Harmonic Minor | Interactive YouTube Scales: Play Piano With Your Computer Keyboard(Livestream) Making YouTube Videos with Code: Bouncing Ball Polyrhythm Visualization Pt. 43 over 8 Polyrhythm: Try Tapping Along! #music #math #visualizationC Melodic Minor | Interactive YouTube Scales: Play Piano With Your Computer KeyboardPentadecathlon Pattern in Conways Game of Life Generates Music #computermusic #cellularautomata3 over 4 Polyrhythm: Try Tapping Along! #music #math #visualizationC Major Scale | Interactive YouTube Scales: Play Piano With Your Computer Keyboard

Algorithmically Generated MIDI Art Plays Giant Steps Changes with 9 Different Images @AlgoMotion

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER