Now
reset
the
computer
[CONTROL]
[SHIFT]
[ESC] ,
and
type in:
10
sound
1,239
run
You will
hear
a
short
note which is middle c
lasting
0.2 second.
If
you don't
hear
anything,
make
sure
that
the
VOLUME
control on
the
computer is
not
set
to zero,
then
type
RUN
again.
Duration
This
parameter
sets
the
length
of
the
sound,
in
other words, 'how long
it
lasts'. The
parameter
works
in
units
of 0.01 (one hundredth)
ofa
second,
and
if
you don't specify
the
<duration>,
the
computer will assume a figure of
20,
which is why
the
note you
just
heard
lasted 0.2 second, i.e. 0.01 multiplied by 20.
To
make
the
note
last
for 1 second, a <duration> of 1
00
would be be used; to make
it
last
2 seconds,
200
would be used. Type in:
10
sound
1,239,200
run
You will
hear
the
note middle c
lasting
2 seconds.
Volume
This
parameter
specifies
the
starting
volume of a note. The number is
in
the
range 0
to 1 5. A
<volume>
figure of 0 is minimum, while 1 5 is maximum.
If
no number is
used,
1 2 is assumed. Type in:
10
sound
1,239,200,5
run
Note
the
volume of
this
sound. Now type
it
in
using a
higher
volume number:
\
10
sound
1,239,200,15
}
run
You will
hear
that
this
is much louder.
foundation Course
Chapter 1
Page
69