Keyboard Composes Its Own Music

Summer is right around the corner and all the final projects from electronic design classes are rolling into the tip line. This time, we’ve got [Chaorong] and [Siyu]’s auto-composing keyboard from their time in ECE4760 at Cornell.

The keyboard has two modes: a ‘happy’ mode and a ‘tender’ mode, the difference being the tender mode is slower and sounds a little like a lullaby. After two keys are pressed, the ATMega644 figures out what key it should play in and starts generating a random-ish sounding song using a Markov probability matrix.

There’s a third option for the keyboard as well: play a short melody and the software will loop through a few permutations of the melody. After the break, you can see [Siyu] play Ode to Joy and have the autocomposer improvise around the tune. Very, very nice work and we can’t wait to see more senior design projects hit the tip line.

[youtube=http://www.youtube.com/watch?v=Fttsc25U5tQ&w=470]

5 thoughts on “Keyboard Composes Its Own Music

  1. Wasn’t there something a while back about a program that composed poetry?

    Getting more into “Nineteen Eighty-Four” land…

    Press Start to Stop. Where have we seen that before? ;)

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.