Musical Sorting Algorithms

Ever wonder how your computer can sort lists of data that you give it? No? Well, there is a whole field of research dedicated to what are appropriately called sorting algorithms. They can be a pretty dry (but important!) subject to study, but it turns out that they have a better use: making cool music!

Ryan Compton, a graduate student at UCLA, created some nifty videos to explore the acoustic properties of a few common sorting algorithms. The one featured above is the insertion sort.

If you are interested in how the algorithms work, Aldo Cortesi has created some pretty visualizations to show how the process works. In his drawings, lines varying shades of gray are sorted from lightest to darkest, starting in a random order at the left of the drawing and ending up sorted on the right hand side of the graph. Each time the lines switch places represents an individual step that the algorithm takes to achieve it's goal. For example, here is a graph the list insertion sort featured in the above video:

musical_algorithms_listinsertion.jpg

Ok, I fully expect to see a new synthesizer based on this technique. Perhaps it could use a digital camera to capture a pattern, then play back the steps needed to sort the colors into a recognizable pattern?


Recent Entries

Comments

Oldest comments listed first.

Posted by: Collin Cunningham on August 12, 2009 at 6:14 AM

def worth investigating!

I do believe this could work quite awesomely - I've spent some time toying with my algorithms for music, but didn't quite know what to aim for pattern-wise. The sorting process sure seems a good way to go …


Posted by: fremde.org on August 12, 2009 at 12:52 PM

Change Ringing

If this sort of thing interests you, read this: http://en.wikipedia.org/wiki/Change_ringing
It's the first thing I thought of looking at the diagram: an old method of playing algorithmic music on church* or other heavy-duty bells that lack the ability to ring with arbitrary timing (as is the case with most manually-rung bells) by ringing successive permutations of a predefined bell sequence. There's got to be a steampunk build in there somewhere...

-Leander

*Don't be afraid to seek out a performance. The churches that still do it are pretty well guaranteed to be the sort *without* crazy high pressure proselytes stationed at every door.


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television




Check out more videos from MAKE.

MZ_Jameco-RobotBuild_RR.gif
MZ_DIYMovieMaking-RR.gif
Maker SHED

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter



    MAKE Archives

    Make: Money

    Make: Science Room
    Subscribe to MAKE Magazine!

    Make: Online editors and authors!

    Gareth BranwynGareth Branwyn
    Editor-in-Chief


    Phillip TorronePhillip Torrone
    Senior Editor
    | Web | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter


    John BaichtalJohn Baichtal
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Current Podcast

    itunesdl.gif Weekend Project: Pinhole Panoramic Camera A sturdy, panoramic design pinhole camera that uses 120 film. Thanks go to Ross Orr for the original article in MAKE Volume 09. To download The Pinhole Panoramic Camera video video click here and subscribe in iTunes. Check out... More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    Sign up for the Make: Newsletter

    Our Make: Newsletter covers news from maker Media, has original columns, Shed deals, and more! You can also read the archives of past issues.


     



    MAKE Fascination video series brought to you by Dow

    Make: Education
    MAKE: en Español MAKE: Japan
    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog