In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Here's another take on Rodney's original program; this moves the note timing into the interrupt as well so you can simply start a note and move on to something else. Ultimately, I'd like to add a note buffer so that you could queue up a few notes to play while your foreground is doing something else. Note: I recalculated the pitch values based on a 4 uS interrupt cycle for better accuracy, and used a slightly different strategy than Rodney. My pitch calculations are based on a standard formula for converting MIDI note values to frequency. My Excel file is attached, too. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=283554#m283951 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)