Shop OBEX P1 Docs P2 Docs Learn Events
SoundPAL Christmas Music — Parallax Forums

SoundPAL Christmas Music

Fe2o3FishFe2o3Fish Posts: 170
edited 2007-12-08 05:40 in General Discussion
Attached is a little something I've been playing with, off and on, since
Thanksgiving -- playing music on the SoundPAL with my Prop-SX.

It got a touch interestingbecause all 256 byte values, EXCEPT the
zero, can be sent to the SoundPAL. The zero serves two purposes:
  • Separate sections of the entire score to acts as flow control.
  • Two consecutive zeroes demark the end of the song
The two Christmas songs are straight from the sheet music so any
"odd" sounding parts are ENTIRELY due to the sheet music. lol.gif
Two other songs are included in the source, commented out.
"Auld Lang Syne" and "If I Only Had A Brain". Both of these came
from sheet music and were converted years ago. A.L.S. seems to have
a few problems in it so I'll update the source code when I find the
sheet music.

Hopefully someone will find this useful and/or helpful. Enjoy!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = AE5AE = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-12-02 16:34
    Your DATA statements are compatible with the ones produced by my online ringtone-to-SoundPAL converter. As a consequence, you might be able to save time transcribing sheet music if you're able to find the songs you want as ringtones on the various free websites that host them. For example, the RTTTL file for "We Wish You a Merry Christmas" can be found here. When run through my converter, you'll get the DATA statements to play it with the SoundPAL. To find these songs on the web, Google "RTTTL" with the name of the song.

    -Phil
  • Fe2o3FishFe2o3Fish Posts: 170
    edited 2007-12-02 18:35
    Thanks Phil!

    I've tried a few of the free Christmas ringtones from that website and was
    a little disappointed. Guess I'm just picky.

    Frosty the Snowman wouldn't convert -- something about a malformed note, 8h.
    Carol of the Bells was stripped down (which is good 'cause a monotonic, full-length
    version is boringly repetitious) and out of tune in a spot.
    White Christmas seemed like it had a few notes dropped here and there.

    I 'preciate suggestion but I think I'll stick to converting sheet music as I'll have
    the complete song and the original data I convert will server for other music programs
    I've written (or intend to write, say for the Soundgin or RC Systems speech synth).

    Thanks again!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Rusty-
    --
    Rusty Haddock = AE5AE = rusty@fe2o3.lonestar.org
    **Out yonder in the Van Alstyne (TX) Metropolitan Area**
    Microsoft is to software what McDonalds is to gourmet cooking
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-12-02 19:50
    Rusty,

    I'm surprised the 8h didn't trip me up before now. The note h in RTTTL notation is actually a substitute for the note b — why, I don't have a clue. But I've fixed the code on the website to accommodate either b or h, so Frosty should convert okay if you want to try it again.

    You're right, though, there are a lot of poorly transcribed ringtones out there; so it may be easier, if you have the sheet music handy, just to do it yourself.

    -Phil
  • mparkmpark Posts: 1,306
    edited 2007-12-04 00:28
    This could explain the h:
    In most of continental Europe

    B is used to mean what above is called B flat and H is used to mean what above is called B.

    http://en.wikipedia.org/wiki/H_%28musical_note%29
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-12-04 04:15
    Wow! Now that's interesting. And kinda spooky, too, since I had just turned on my Squeezebox to Otto's Baroque Musick before checking this thread. B-A-C-H rules!

    -Phil
  • Fe2o3FishFe2o3Fish Posts: 170
    edited 2007-12-08 05:40
    FWIW, here's an updated/corrected version of "Auld Lang Syne":
    AuldLangSyne:
        data tmp0, q+C_0, dq+F_0, e+F_0, q+F_0, dq+A_0, dq+G_0, e+F_0, q+G_0
        data q+A_0, dq+F_0, e+F_0, q+A_0, q+C_1, dh+D_1, q+D_1, dq+C_1
        data e+A_0, q+A_0, q+F_0, dq+G_0, e+F_0, q+G_0, q+A_0, dq+F_0
        data e+D_0, q+D_0, q+C_0, dh+F_0
        data 0
        data tmp0, q+D_1, dq+C_1, slur, e+A_0, q+A_0, slur, q+F_0, dq+G_0, e+F_0
        data q+G_0, q+D_1, dq+C_1, slur, e+A_0, q+A_0, slur, q+C_1, dh+D_1
        data q+D_1, dq+C_1, e+A_0, q+A_0, q+F_0, dq+G_0, e+F_0, q+G_0
        data q+A_0, dq+F_0, slur, e+D_0, q+D_0, slur, q+C_0, dh+F_0
        data 0, 0
    
    



    heh heh heh... while I'm at it -- something for the next version of ROM:
    ShaveAndAHairCut:
        data q+gf1, e+cs1, e+cs1, q+ds1, q+cs1, q+zzz, q+f_1, q+gf1, 0, 0
    



    Enjoy!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Rusty-
    --
    Rusty Haddock = AE5AE = rusty@fe2o3.lonestar.org
    **Out yonder in the Van Alstyne (TX) Metropolitan Area**
    Microsoft is to software what McDonalds is to gourmet cooking

    Post Edited (Fe2o3Fish) : 12/8/2007 6:30:57 AM GMT
Sign In or Register to comment.