[sdiy] Atmel AVR midi controller examples?

Byron G. Jacquot thescum at surfree.com
Thu Feb 26 05:28:45 CET 2004


>I'm playing around with making a midi controller out of my Atmel Mega 16 
>microcontroller.  Has anyone else done this?  I would love to see some 
>example code.  I seem to be sending out messages, but it seems like the 
>numbers I intend to send are not the numbers that are reaching the computer.

A couple of thoughts on this:

I don't know anything about your basic compiler.  Are you using the correct
notation for decimal and/or hex?  If the 31250 is correct, then that 90
isn't a status message.

Also, an endless loop sending only note ons might confuse some MIDI
applications, if they're expecting the input to be somewhat sensible.  Try
interleaving some note off messages.

Finally, those "waitms" calls are probably redundant, if the serout command
will buffer or block until it can send the byte.

Byron Jacquot



More information about the Synth-diy mailing list