BS2 PB2.5 Tones
johnags
Posts: 7
in BASIC Stamp
Does anybody know where I can find a list of the tone codes? There are a few in some documents related to some specific project. I would like a complete list to work from.
Comments
By "tone code" do you mean the frequency for each musical note?
The FREQOUT command uses Hertz (Hz) for the frequency and milliseconds (ms) for the duration of the tone.
I think this is what you are looking for:
https://en.wikipedia.org/wiki/Piano_key_frequencies
I believe the EEPROM that the BS2 uses is rated for 1,000,000 writes so you are no where near wearing it out.
Have you looked at Chapter 8 in What's a Microcontroller since it shows how to make sound and music on the BS2.
https://www.parallax.com/sites/default/files/downloads/28123-Whats-a-Micro-v3.0.pdf
Also look at these tutorials which all deal with music on the BS2:
http://learn.parallax.com/tutorials/projects/playing-sheet-music-piezo-speaker
http://learn.parallax.com/tutorials/projects/christmas-caroling-device-light-display
http://learn.parallax.com/tutorials/projects/basic-stamp-tilt-tones