Anonymous user
$MORSE.REX: Difference between revisions
added comments concerning the use of the DELAY subroutine.
Thundergnat (talk | contribs) (Move to REXX library routines category) |
(added comments concerning the use of the DELAY subroutine.) |
||
Line 1:
The following is the '''$MORSE.REX''' (REXX) program.
<br><br>This program supports the ''International Morse code'' as well as the ''USA Morse code'' (the later being primarily used by the North American Railroads). ▼
▲
<br>This REXX program normally shows Morse code words one word to a line before sounding.▼
<br><br>This REXX programs only works for Regina and PC/REXX, but other REXXes (specifically R4) will only display the Morse code, but not sound it.▼
<br>The '''LINESIZE.REX''' REXX program is included here ──► [[LINESIZE.REX]].▼
<br><br>The '''$MORSE.REX''' REXX program makes use of '''$T.REX''' REXX program which is used to display text and/or write the text to a file. ▼
<br>The '''$T.REX''' REXX program is included here ──► [[$T.REX]].▼
▲
<br><br>The '''$MORSE.REX''' REXX program makes use of '''$ERR.REX''' REXX program which is used to display error messages (via '''$T.REX'''). ▼
<br>The '''$ERR.REX ''' REXX program is included here ──► [[$ERR.REX]].▼
<br>The '''SOUND.REX''' REXX program is included here ──► [[SOUND.REX]].▼
▲
▲
The '''$T.REX''' REXX program makes use of '''DELAY.REX''' REXX program which is used to delay (sleep) a specified amount time.
▲
▲
▲
The '''$MORSE.REX''' REXX program makes use of '''SOUND.REX''' REXX program which is used to express sound (via the internal speaker).
▲
Some older REXXes don't have a '''changestr''' BIF, so one is included here ──► [[CHANGESTR.REX]].
<lang rexx>/*REXX program sounds out (on the PC speaker) Morse code for (almost) any given text.*/
trace off /*suppress non-zero return code message*/
|