Sunday, August 28, 2011

Lyrasynth: a super-easy way to make MUSIC on an Arduino!

Hi All!

I just wanted to share something I slapped together fairly quickly that I think has a lot of potential if more time were taken to flesh it out and add more features. It's a simple Processing sketch that responds to serial MIDI "note on" messages, producing a sine wave of a frequency corresponding to the MIDI note triggered. It's about as simple as a program can be, but that's part of why I love it. Anyone who's hacked the ATmega8u2 knows what a pain it is to add class compliant USB MIDI functionality to your Arduino, and programs that respond to non-class compliant serial MIDI are few. This way, there's just 1 program in your signal path with no drivers or configuration to mess with. You just plug in your Arduino, and (hopefully) it just works!  :?)  So far, I've tested it with an AirHarp and an Apple MacBook Pro with no problems, but please let me know how it works with other OSes!



BTW, I'd recommend plugging in the Arduino ~before~ loading Lyrasynth, 'cause if it doesn't see the serial device when it boots, it will gag.

Anyway, just thought I'd share. Feel free to hack, mod, redistribute, etc.

Yours in tinkering,
~ Peter

No comments:

Post a Comment