Example
Note
specification
The symbols used to specify notes within each range are
as
follows:
CDEFGAB#R
The relationship between the 8-note scale (do, re, mi, fa, so, la, ti,
do)
and these
symbols are
as
shown below. The sharp symbol
(#)
is
used to specify
half
notes
.
Silent intervals are specified with
"R".
I
I I
I I I
I
c
D E
F G A
B
#C
#D
#F#G#A
R - Rest
Duration specification
The duration specification determines the length
of
the specified note. The dura-
tions from 1/32
to
whole are specified
as
numbers from 0 to 9. (When R
is
specified,
this determines the length
of
the
silent interval.)
'
t
:;
1·
"!
7·
t
~.
..-.·
I
Dotted
1/8
rest
Dotted
1/4
rest
Dotted
1
/2
rest
Dotted
Whole rest
'
1
32
rest 1
/16
rest
1116
rest
1/8
rest
1/4
rest
1/2
rest
)
~
).
}'
)1
J
J.
J
J.
0
1/32
note
1/16
-
note
~~~~e~ote
1/8
note
Dotted
1/4
note
Dotted
1/2
note
Dotted
Whole
note
1/8
note
1/4
note
1/2
note
0 1 2 3
4 5 6
7
8 9
i.
When sucessive notes have the same duration, the duration specification can be
omitted
for the second and following notes.
If
no
duration is specified for the first
note,
1/4 notes are assumed.
Sound volume
The volume
of
·sound produced cannot be controlled
by
the program,
but
can be
adjusted with the computer's external volume control.
Let's
·try assigning a string to SR$
to
play the theme from the beginning
of
Beethoven's Serenade in D major (Opus 25).
SR$=
"
+A3+
#
F1+
A+B3A+D+#F1A+D3A+O
+#F1A+D3+#F1A+O+E+#F+G+A3R
"
66------
------------
------------------------------------------------------