RTX/RTTTL ringtone to SoundPAL code converter.
Phil Pilgrim (PhiPi)
Posts: 23,514
I've created a web service that converts RTX and RTTTL ringtones to PBASIC code for the Parallax SoundPAL. You can access it by clicking the image below:
········
It will handle most of the RTX extensions to RTTTL, including looping and commands interspersed with the notes. (The volume command is ignored, since the SoundPAL plays everything LOUD. Also, since the SoundPAL has a limited number of tempos, it will only be able to match a ringtone's specified tempo within a power of two, with limits on both minimum and maximum tempos.) The converted ringtones can be played using the play_ringtone.bs2 program, available on the same site.
Ringtones longer than the maximum that the SoundPAL can buffer at once are broken up into blocks and played in sequence. Using a primitive heuristic, breaks are inserted with greater probability after rests than in other locations, thereby being not as obvious during playback. Even so, in tunes played marcato or staccato, breaks at any location will not be as noticeable as those inserted into tunes played legato. In any event, breaks are never inserted between like notes that are tied.
RTX and RTTTL ringtones are available in abundance on the internet. Just Google rtttl ringtone, and stand back! If you have a song title in mind, you can include that in the Google search. Not all ringtones available on the 'net are well-transcribed — or even valid RTX/RTTTL for that matter. I've tried to compensate for the most common errors (e.g. improperly-located periods in dotted notes), but it's not possible to catch and correct them all. If the program reports an error, you may be able to edit it out, after hitting the "Back" button in your browser.
The online conversion program is very beta, so I'm sure it's far from perfect. If you encounter a ringtone that doesn't convert like you think it should, please post it here with a note indicating what went wrong, and I'll try to fix the problem.
Thanks,
Phil
Post Edited (Phil Pilgrim (PhiPi)) : 11/16/2007 8:49:50 PM GMT
········
It will handle most of the RTX extensions to RTTTL, including looping and commands interspersed with the notes. (The volume command is ignored, since the SoundPAL plays everything LOUD. Also, since the SoundPAL has a limited number of tempos, it will only be able to match a ringtone's specified tempo within a power of two, with limits on both minimum and maximum tempos.) The converted ringtones can be played using the play_ringtone.bs2 program, available on the same site.
Ringtones longer than the maximum that the SoundPAL can buffer at once are broken up into blocks and played in sequence. Using a primitive heuristic, breaks are inserted with greater probability after rests than in other locations, thereby being not as obvious during playback. Even so, in tunes played marcato or staccato, breaks at any location will not be as noticeable as those inserted into tunes played legato. In any event, breaks are never inserted between like notes that are tied.
RTX and RTTTL ringtones are available in abundance on the internet. Just Google rtttl ringtone, and stand back! If you have a song title in mind, you can include that in the Google search. Not all ringtones available on the 'net are well-transcribed — or even valid RTX/RTTTL for that matter. I've tried to compensate for the most common errors (e.g. improperly-located periods in dotted notes), but it's not possible to catch and correct them all. If the program reports an error, you may be able to edit it out, after hitting the "Back" button in your browser.
The online conversion program is very beta, so I'm sure it's far from perfect. If you encounter a ringtone that doesn't convert like you think it should, please post it here with a note indicating what went wrong, and I'll try to fix the problem.
Thanks,
Phil
Post Edited (Phil Pilgrim (PhiPi)) : 11/16/2007 8:49:50 PM GMT
Comments
····www.phipi.com/ringtone
-Phil