MUSIC
Format: MUSIC (X, Y, Z)
Supported by: COMX BASIC V1.00
Similar commands:
COMX BASIC V1.00: TONE
Floating Point BASIC 2.2: TONE / FREQ
Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0: TONE
Telmac SBASIC v 24.3: BEEP
The MUSIC command is in the form, MUSIC (X, Y, Z), where X, Y and Z are numeric expressions. X determines the music note and can vary from 1,2 ... to 7. Thus
- DO
- RAY
- MI
- FA
- SO
- LA
- TI
Y determines the Octave and can vary from 1, 2, ... to 8 with 8 being the octave with the highest upper frequency.
Z determines the amplitude and can vary from 0, 1, to 15 with 15 being the loudest.
Now, try
MUSIC (1, 1, 1)
followed by pressing CR to get a weak "DO" over the lowest octave.
Try
MUSIC (1, 1,2)
and note the increase in volume.
Try
MUSIC (2, 1,2)
and note the change to a "RAY".
Try
MUSIC (2,2,2)
and note the change to a higher octave.
Notice that once a music command is issued, the note will continue until it is replaced by another music command. To turn-off the music note, type
MUSIC (0,0,0)
Of course, always remember to terminate a command by pressing CR.