EasyManua.ls Logo

Commodore 128D - Page 141

Commodore 128D
427 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
I
\
This
program
segment
plays
the
variable
pulse
waveform
in
the
range
of
frequencies
from
1
through
65535,
in
increments
of
100,
from
lowest
frequency
to
highest.
If
you
don't
specify
the
waveform,
the
computer
selects
the
default
value
of
waveform
2,
the
variable
pulse
waveform.
Now
change
the
waveform
with
the
following
program
line
(60)
and
try
the
program
again:
60
SOUND
1,1,1,0,
0,0,
0,0
Now
the
program
plays
voice
1,
using
the
triangle
waveform,
for
the
range
of
frequencies
between
1
and
65535
in
increments
of
100.
This
sounds
like
a
typical
sound
effect
in
popular
arcade
games.
Try
waveform
1,
the
sawtooth
waveform,
and
see
how
it
sounds
wi.th
this
line:
60
SOUND
1,1,1,
0,
0,
0,1,
0
The
sawtooth
waveform
sounds
similar
to
the
triangle
waveform
though
it
has
less
buzz.
Finally,
try
the
white
noise
waveform
(3).
Substitute
line
60
for
this
line:
60
SOUND
1,1,1,
0, 0, 0,
3,
O
Now
the
program
loop
plays
the
white
noise
generator
for
the
entire
range
of
frequencies.
At
first,
there
is
a
low-pitched
rumbling
sound.
As
the
frequency
increases
in
the
loop,
the
pitch
increases
and
sounds
like
a
rocket
taking
off.
133
USING
C128
MODE—Sound
and
Music
in
C128
Mode

Table of Contents

Other manuals for Commodore 128D

Related product manuals