different
durations,
(as
in
most
songs)
you
would
change
fine
30
to:
READ
D1
,N1
,D2,N2,D3P-
N3
and
put
matching
dura-
tion'note
pairs
in
the
DATA
statements.
This
is
how
you
achieve
3-voice
harmony.
Notice
also
in
Example
2
that
the
simple tune
is
played
with
a!l
similar
notes,
then
speeded
up by
shortening
the
duration
values.
The
duration
values
may
be
any
number,
including
decimal
numbers
like
the
"67.5"
in
line
110
which
is
included
as
an
example.
The
note
values
may
be
any
number
between
128
and
255,
with
notes
corresponding
to
the
note
value
chart
earlier
in
this
chapter.
Another
parameter
which
you
might
consider
changing
is
volume.
An
example
of
how
volume
may
be
changed
is
found
in
ihe
"OCEAN
WAVES"
sound
effect
program
on
page
137
of
the
VIC
20
Personal
Computer
Guide
(owner's
manual).
If
you
want
to
get
even
more
sophisticated
in
your
music/sound
effects
programming,
try
frequency
modulation,
which
entails
rapidly
switching
back
and
forth
between
two
notes
to
achieve
the
illusion
of
a
"middle"
note
between
the
two
values.
Exampfe
3
illustrates
this
technique
and
plays
a
"true11
scale.
EXAMPLE
3:
TRUE
NOTE SCALE
USING
FREQUENCY
MODULATION
READY.
MUSE
READY.
90
S1-36874:S2-S1
-f
1:S3
=
S1
-2:V=S1
+4
100
DIMN(37J):FORI
=
0TO37:READN(lF0),N(t,1):NEXT
200
FOR!
=
0TO37:POKEVJ5:FORJ
=
0TO49:POKES1,N(l,0):
POKES1,N(l,1):NEXTJ;POKEV.0:NEXTI
9000
DATA131,131,140,140.145.145,151,151,158.158,161,162.
166,167,173,174.178,178,181,182
9010
DATA135.186,169,190,192,195,197,197,200,200,203,203,
206,207,203,209,211,212,214,214
9020
DATA216,216,218,219,220,221,222,223,224.224.226,226,
227,228,299,229,231,231.232,232
9030
DATA233.233,234,235!235,236,237,237,237.238,239,239,
239,240,240.241
READY.
101