Shop OBEX P1 Docs P2 Docs Learn Events
how to get tones for my Boe-Bot? — Parallax Forums

how to get tones for my Boe-Bot?

fisheaterfisheater Posts: 6
edited 2008-03-31 00:43 in BASIC Stamp
Hi everyone I'm new to the forum.
I had a question about how to get tones for my Boe-Bot. I'm using my piezospeaker, i understand that i have to use different frequencies, but I'm not sure where do i get the music notes. I have a project i have to do and think it would be cool to play " "back in black" by ac/dc on my Boe-Bot. haha

[noparse][[/noparse]Edit:· Subject Added By Moderator]

Post Edited By Moderator (Chris Savage (Parallax)) : 3/28/2008 7:32:40 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-28 18:44
    Look at the FREQOUT statement in the Parallax Basic Stamp Manual (or in the Stamp Editor's help window).
  • fisheaterfisheater Posts: 6
    edited 2008-03-28 19:13
    Thank you,but i know how to write the program, i was just wondering how i get the different frequencies for a desired song.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-03-28 20:06
    On the What's a Microcontroller? product page, there's a link to an RTTTL program. This can be used to play ringtones that you can download from the internet. (Search "RTTTL" with Google, and you'll find them.)

    -Phil
  • fisheaterfisheater Posts: 6
    edited 2008-03-28 20:42
    thanks, on the way back from class a friend told me about it. haha
  • fisheaterfisheater Posts: 6
    edited 2008-03-28 22:10
    Phil Pilgrim (PhiPi) said...
    On the What's a Microcontroller? product page, there's a link to an RTTTL program. This can be used to play ringtones that you can download from the internet. (Search "RTTTL" with Google, and you'll find them.)

    -Phil

    The program on that link is way over my head is there an easier way to decode this:

    Back In Black:d=8,o=6,b=180:4e5, 2p, d, d, 4d, 2p, c#, c#, 4c, 2p, f, e, d, b5, b5, a5, g5, 4e5
  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-28 22:14
    You have to decode it yourself by hand (or find or write a program to do it). The notes need to be translated into frequencies (in Hz) and durations (in milliseconds) and the pauses need to be in milliseconds. The program mentioned by Phil should be able to do this for you and play the tune.

    Post Edited (Mike Green) : 3/28/2008 10:19:34 PM GMT
  • fisheaterfisheater Posts: 6
    edited 2008-03-29 01:14
    Mike Green said...
    You have to decode it yourself by hand (or find or write a program to do it). The notes need to be translated into frequencies (in Hz) and durations (in milliseconds) and the pauses need to be in milliseconds. The program mentioned by Phil should be able to do this for you and play the tune.

    ok thanks ill mess with it tonight
  • DJSandbergDJSandberg Posts: 56
    edited 2008-03-31 00:43
    Fisheater,

    This site give you the frequencies of musical notes.

    http://www.phy.mtu.edu/~suits/notefreqs.html

    If you have sheet music, you can convert most tunes into something that you can recognize with a Stamp, but don't expect perfect notes.

    Daryl

    ·
Sign In or Register to comment.