Basic
NOISE
source,volume, duration
Generates noise through a TV monitor’s speaker (external speaker).
You
must execute a SOUND ON statement before using NOISE.
Source
selects the type of noise and may be an integer in the range
0
to
7.
0-3
selects periodic noise and
4-7
selects white noise.
Volume
is
an integer in the range
0
to 15 where
0
is the quietest
and 15 is the loudest. Default
=
8.
Duration
may be in the range
0
to 65536.
A
duration
of 18.2 equals
1
second.
NOISE
0,15,20
OCT$(number)
Returns a string that represents the octal value of a decimal
number.
PRINTOCT$(30) S$=OCT$(90)
ON
COM(channel)
GOSUB
Line
Transfers program control to a subroutine beginning at
Line
when
activity occurs
on
the specified communications channel.
Channel
specifies communications channel
1
or 2.
Line
is the subroutine line at which execution begins when activity
occurs on the communications channel. Specifying Line
0
turns off
communications trapping.
ON
COM(1)
GOSUB
1000
ON
ERROR
GOTO
line
Transfers control to
line
if an error occurs.
You
must execute an
ON
ERROR GOTO before the error occurs. Specifying Line
0
turns
off error trapping.
ON
ERROR
GOT01500
46
Tandy
1000