FEDL2215-01
Semiconductor
ML2215
1
Table 8.4 Musical Notes and Corresponding Note Codes
Note Code
Musical Note
L5
1
L4
1
L3
1
L2
1
L1
1
L0
1
L5 to L0
3FH
2FH
1FH
17H
0FH
0BH
07H
05H
1
0
1
1
1
1
0
1
1
1
1
1
0
1
0
1
1
1
0
0
1
1
1
1
0
0
1
0
1
1
0
0
0
1
1
1
0
0
0
1
0
1
When N6 to N0 are set to “0” in scale code definition, the code means “Rest”. Table 8.5 shows rests and their
corresponding rest codes (L5 to L0).
Table 8.5 Rests and Corresponding Rest Codes
Rest Code
Rest
L5
L4
L3
L2
L1
L0
L5 to L0
1
0
1
1
1
1
1
1
1
1
1
1
3FH
1FH
0
0
1
0
0
1
1
1
1
1
1
1
17H
0FH
0
0
0
0
0
0
1
0
1
1
1
1
07H
03H
The following formula can be used to calculate the duration or beat of a musical note (including rest), that is
defined by a note code and tempo code.
1.5 × (TP+1) × (L+1) msec (Where TP is integer between 1 to 31, and L is integer between 4 to 63)
TP is a numerical value defined in the Phrase Control Table and its bit correspondence to tempo data can be
calculated as follows:
TP = 24TP4 + 23TP3 + 22TP2 + 21TP1 + 20TP0
Meanwhile, L is defined by a musical note code, and its bit correspondence to the musical note code can be
calculated as follows:
L = 25L5 + 24L4 + 23L3 + 22L2 + 21L1 + 20L0
19/26