EasyManua.ls Logo

Commodore Plus 4 - Page 99

Commodore Plus 4
464 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...
BASIC
Version
3.5
Commands,
Functions,
and
System
Variables
87
1
X
is
positive
0
X
is
zero
-1
X
is
negative
These
are
the
only
possible
outcomes;
they
reflect
the
number's
sign,
not
its
value.
SIN
Abbr.
si
SIN
(number)
The
numeric
function
that
finds
the
sine
of
the
angle
in
parentheses.
The
angle
must
be
expressed
in
radians.
For
more
information,
see
the
Mathematical
Calculations
section
of
Chapter
3.
Parameter:
any
number
or
numeric
expression
Examples:
PRINT
SIHT(7r/S)
Prints
the
sine
of
an
angle
of
n
over
2
radians
1
.
(90
degrees).
PRINT
SIlT(30*7r/180)
Prints
the
sine
of
an
angle
of
30
degrees.
.5
SOUND
Abbr.
sO
SOUND
voice,
frequency
value,
duration
Plays
a
sound
after
the
VOL
command
turns
on
the
volume.
There
are
two
voices
in
the
computer,
so
you
can
play
two-voice
harmonies.
One
of
the voices
can
be
set
to
make
a
range
of
nonmusical
noise.
The
SOUND
command
selects
the
voice,
the
note
to
be
played,
and
the
length
of
time
the
note
will
last.
Parameters:
voice
number,
note
value,
sound
duration
1.
There
are
three
possible
values
for
voice
number:
1
plays
notes
in
voice
1
2
plays
notes
in
voice
2
3
plays noise
in
voice
2
The
notes
played
by
voice
settings
1
and
2
are
the
same
set.
If
you
play
different
notes
in
voices
1
and
2
together,
the
notes
play
simultaneously,
producing
harmony.
If
you
play
notes
in
the
same
voice,
they
play
one
at
a
time.

Other manuals for Commodore Plus 4

Related product manuals