EasyManua.ls Logo

Commodore 128D - Page 310

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...
The
SOUND
command
can
sweep
through
a.series
of
frequencies
which
allows
sound
effects
to
pass
through
a
range
of
notes.
Specify
the
direction
of
the
sweep
with the
DIR
parameter.
Set
the
minimum
frequency
of
the
sweep
with
M
and
the
step value
of
the
sto^ep
with
S.
Select
the
appropriate
waveform
with
W
and
specify
P
as
the
width
of
the
variable
pulse
waveform
if
selected
in
W.
NOTE:
The
BASIC
program
continues
execution
after
the
sound
statement,
without
waiting
for
the
sound
to
finish.
EXAMPLES:
SOUND
1,40960,60
SOUND
2,20000,50,0,2000,100
Play
a
SOUND
at
frequency
40960
in
voice
1
for
1
second.
Output
a
sound
by
sweeping
through
frequencies
starting
at
2000
and
incrementing
upward
in
units
of
100
up
to
20,000.
Each
.
frequency
is
played
for
50
jiffies.
SOUND
3,5000,90,2,3000,500,1
This
example
outputs
a
range
of
sounds
starting
at
a
minimum
frequency
of
3000,
through
5000,
in
increments
of
500.
The
direction
of
the
sweep
is
back
and
forth
(oscillating).
The
selected
waveform
is
sawtooth
and
the
voice
selected
is
3.
SOUND
1,0,0
Stops
the
sound
being
output
on
voice
1.
SPRCOLOR
—Set
multicolor
1
and/or
multicolor
2
colors
for
all
sprites
SPRCOLOR
[smcr-1][,smcr-2]
where:
smcr-1
Sets
multicolor
1
for
all
sprites.
smcr-2
Sets
multicolor
2
for
all
sprites.
Either
of
these
parameters
may
be
any
color
from
1
through
16.
EXAMPLES:
SPRCOLOR
3,7
Sets
sprite
multicolor
1
to
red
and
multicolor
2
to
blue.
SPRCOLOR
1,2
Sets
sprite
multicolor
1
to
black
and
multicolor
2
to
white.
302
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals