need to see if anyone got notes and durations for the Star Spangled Banner
I want to use a stamp to play star spangled banner· through a speaker but I can find the song with the notes and durations. I can't use the RTTTL format because all RTTTL program has return, instead of next, so·I can't put it in a subroutine·this causes the stamp to stop after it is played.·I need some help.·

Comments
If you have the RTTTL script, you can modify Parallax's rtttl_convert.bs2 to output code you can cut and paste into your program. Just change the subroutine PlayNote as follows:
' -----[noparse][[/noparse] Subroutine - Find Comma and Play Note/Duration ]----------------- PlayNote: ' Find last comma in the ' current note entry. Then, READ RTTTL_File + counter, char ' fetch the note frequency SELECT char ' from data, and play it, or CASE "," ' pause if frequency = 0. counter = counter + 1 READ Octave8 + (index * 2), Word noteFreq noteOctave = 8 - noteOctave noteFreq = noteFreq / (DCD noteOctave) IF noteFreq = 0 THEN DEBUG "PAUSE ", DEC duration, CR ELSE DEBUG "FREQOUT iopin, ", DEC duration, ",", DEC noteFreq, CR ENDIF ENDSELECT RETURNRather than performing the PAUSEs and FREQOUTs, it will output them to the DEBUG screen as PBASIC statements.
-Phil
Rich Green
The RTTTL program is supposed to be on this page. Unfortunately, the link to the code is dead, so I'll attach it here.
-Phil
Rich Green