u
Here's an example of the PLAY statement using
the SID chip control characters within a string.
Add this line to your program and notice the
[ )
difference between this statement and the
PLAY statement in line 40.
-
)
50 PLAY "V2 05 T7 U5 X0 C D E F G A B" L~J
This statement PLAYS the same notes as in line
j '1
40, but voice 2 is selected, the notes are played
—
one octave higher (5) than line 40, the volume
setting is turned down to 5 and the FILTER is
i
j
specified as off. For now, leave the filter off.
1—
When you learn about FILTERing in the next
section, you can come back and turn the filter
\
i
on to see how it affects the notes being played.
k—'
Notice line 50 selects a new instrument, the
organ envelope, with the T7 control character.
s
)
Now your program PLAYS two different instru-
—'
ments in two of the independent voices. Add
this statement to PLAY the third voice:
^ j
60 PLAY "V3 06 T6 U7 XO C D E F G A B"
Here's how line 60 controls the synthesizer. The \^"i
V3 selects the third voice, 06 places voice 3 one ^—'
octave higher (6) than voice two, T6 selects the
harpsichord envelope, U7 sets the volume to 7
\
I
and XO leaves the filter off for all three voices.
*—'
Now your program PLAYS all three voices, each
one octave higher than the other, in three sepa-
?
!
rate instruments, piano, organ and harpsichord. ^
'
So far, your PLAY statements only played whole
\
')
notes. Add notes of different duration by placing i—'
duration control characters in your PLAY string
as follows:
f f
70 PLAY "V2 06 TO U7 XO H C D Q E F I G ^
ASB»
(
Line 70 PLAYs voice 2 in octave 6 at volume
{—j
level 7 with the redefined piano envelope (0) on
and filter turned off. This statement PLAYs the
\
)
notes C and D as half notes, E and F as quarter
i—)
notes, G and A as eighth notes and B as a six
teenth note. Notice the difference between the
i
t
146
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