one program line in length. (This is equivalent to
four screen lines in 40-column mode, and two
screen lines in 80-column mode.) By doing this,
you will produce PLAY command strings that
are easier to understand and use.
To play musical notes, enclose the letter of the
note you want to play within quotes. For exam
ple, here's how to play the musical scale:
40 PLAY "C D E F G A B"
This plays the notes C, D, E, F, G, A and B in the
piano envelope, which is envelope 0. After each
time you RUN this example program you are
creating, hold down the RUN/STOP key and
press the RESTORE key to reset the synthesizer
chip.
You have the option of specifying the duration of
the note by preceding it in quotes with one of
the following letters:
W-Whole note
H -Half note
Q-Quarter note
I -Eighth note
S -Sixteenth note
The default setting, if the duration is not speci
fied, is for Whole (W) notes.
You can PLAY a rest by including the following in
the PLAY string:
R-Rest
You can instruct the computer to wait until all
voices currently playing reach the end of a mea
sure by including the following in quotes:
M-Wait for end of measure
The Commodore 128 also has synthesizer con
trol characters you can enclose within quotes in
a PLAY string. This gives you absolute control
over each note and allows you to change syn
thesizer controls within a string of notes. Follow
144
USING C128 MODE—Sound and Music in C128 Mode
Need help?
Do you have a question about the 128D and is the answer not in the manual?
Questions and answers