176 User's
Handbook
to
the Atari 400/ 800
Computers
SOUND
CONFIGURATION
X =
SIN
(a)
EXAMPLE
10
DEG
20
X =
SIN
(90)
30
PRINT X
RUN
1
The
SOUND
statement
is
used to
output
sound
via
the television
set
or
monitor's
speaker.
The
SOUND
statement
is
used
with
the
following
configuration.
SOUND
voice, pitch, distortion,
volume
Together these
four
arguments
determine
the sound
produced.
voice
sets
one
of
four
voices available
with
the Atari. These are
numbered
from
0 to
3.
These
four
voices are
independent
of
each other. In
other
words,
as
many
as
four
voices can be
sounded at the same time.
pitch
sets
the
pitch
of
the sound
produced
by the
SOUND
statement. The pitch can range
from
0
to
255
. The highest pitch
begins
at
0 and the lowest at
255.
The
SOUND
statement can
produce
either
pure
or
distorted
tones.
distortion can range between 0 and
15.
A distortion value
of
10
or
14
will
produce
a pure tone. Any
of
the
other
even
distortion
values
(0
,
2,4,6,8
,
10
, and
12)
will generate a
different
amount
of
noise
into
the
tone
produced.
The
amount
of
this
noise
will
depend
upon
the distortion and pitch values specified.
The
odd
numbered
distortion values
(1
, 3,
5,
7,
9,
11,
13)
cause
the
voice indicated in the SOUND statement to be silenced. If
the voice
is
on,
an
odd-numbered
distortion value
will
result in
its bei ng
sh
ut
off.