CHAPTER 11: MELODY ASSEMBLER
272
EPSON
S5U1C63000A MANUAL
(S1C63 FAMILY ASSEMBLER PACKAGE)
(2) Main data
For the main part of the score such as pitches and the duration should be described in the main data
field as follows:
MAIN
Start mark of main data (It cannot be omitted.)
:
; mX data
A comment should be described for easy reading.
0 1 7 G6 0 0
1 1 6 F5 0 0
2 1 5 D5# 0 0
3 2 4 RR 1 0
4 0 3 E5 0 1
5 1 2 E5 0 1
6 1 1 D5 0 1
7 1 0 C5 0 1
8 3 0 RR 1 1
Tempo No.
Jump bit
Pitch data
Note data
Control bit
Main data No.
END
End mark (It cannot be omitted.)
(2-1) Main data No.
Assign numbers of main data sequentially from 0 regardless of the melody number. Data can be set
from 0 to 494.
(2-2) Control bit
The control bit specifies attack (separating notes), rest or the end of melody. The control bit values (0
to 3) mean as below.
Table 11.4.4.2 Control Bit
0
1
2
3
Attack is disabled. When the next note has the same pitch, the current note and the next one will be played as
tied notes. In the above main data example, two E5 at the main data No. 4 and 5 will be played as one note.
Attack is enabled. Notes will be played independently even if the next note has the same pitch.
Indicates a rest. When the control bit is set to 2, the melody data in the line is regarded as a rest even if a
pitch is specified. When the control bit is set to 0 or 1 for a rest, an error will occur even if the pitch is set to
"RR" (rest).
Indicates the end of a melody. The control bit in the last data of each melody must be set to 3. When two or
more control bits that are set to 3 are described, the first control bit is effective and the melody ends at that
point.
(2-3) Note data
Note data sets duration of notes or rests. Eight types of notes or rests are available as shown in Table
11.4.4.3. To specify a note that is not available, tie two or more available notes by setting the control bit
to 0. For a rest, tie two or more rests by setting control bit to 2.
Table 11.4.4.3 Notes
Note data
Note
Rest
0
1
2
3
4
5
6
7
Содержание S5U1C63000A
Страница 1: ...MF910 06 CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C63 Family Assembler Package S5U1C63000A Manual ...
Страница 4: ......
Страница 14: ......
Страница 304: ......
Страница 305: ...S1C63 Family Assembler Package Quick Reference ...