Sharp MZ-80A Owner's Manual page 79

Hide thumbs Also See for MZ-80A:
Table of Contents

Advertisement

89
|
Music Library
Kept on Tapes
This data tile
is
indispensable
to
generate
a
"Music
Library" as discussed
in
the paragraph "MUSIC
State¬
ment".
Data for
tunes is string
data
consisting
of
various
symbol
groups. If a data group
is named
per
tune,
any
tune
can be picked
out of those recorded on the tape
when its
name
is
designated.
For example, a
tune
can be picked up from this
music library for use in the music box of your timer,
with
some modifications.
The
tunes
in the
music
library
can
also be used
for programs of games
and graphics,
providing
a number of applications.
To
write the etude
of F.
Kroepsch used on
page
79
into
a
data file, tb»* following changes must be made:
300
WOPEN/T
"ETUDE"
310
PRINT/T
J1S,
J2S. J3S.
N1S,
N2S. N3S
320
CLOSE/T
Attention is required
to
the
fact
that the character
count
for data
writing should be within
255 characters. If
written
as
follow;
305 MAS
=
J1S
+
J2S
+
J3S
:
MBS
=
N1S
+ N2$ +
N3S
310
PRINT/T
MAS. MBS
the contents
of
string variables
MAS
and
MBS
exceed
255
characters, which make data writing
incomplete.
Mol
to
Vivace
F.
Chopin " Puppy Waltz
The length of
string
data may vary with each
tune,
therefore
it is neccessary
to write data
indicating the end
of
each tune
so
that
a
data
error does
not
occur
in data readouts. End mark of
tune "
I
",
for example makes
each tune consist of string data within 100 characters for execution give below:
500
ROPEN/T
"PUPPY WALTZ"
510 FOR
A= 1
TO 100
520
INPUT/T
MS
(A)
530 IF MS (A)
=
"
IB
"
THEN 550
540
NEXT
A
550
CLOSE/T
This can read the "Puppy Waltz" completely.

Advertisement

Table of Contents
loading

Table of Contents