Data Preparation
A-5
Editing Tools and Data Preparation
A.2.4 FM
Music can be coded manually or can be converted from MIDI (musical instru-
ment digital interface) files. For manual coding, please refer to Appendix B for
the data format of FM synthesis. If the song is composed in MIDI format (.mid),
it can be converted to FM by a DOS executable routine MD2FM.EXE. There
are several limitations on the MIDI files, which the MD2FM program pro-
cesses.
1) The MSP53C391 and MSP53C392 support a maximum of two channels
of FM synthesis music. The MD2FM can convert only one track or channel
at a time. Two passes through the program are required to convert the two
channels into two separate output file. The two files are combined later into
a single file using the FM2MERGE program.
2) The timebase of the file should be 48.
3) The MD2FM program does not understand the instrument definition of the
MIDI file. The instruments will need to be added to the output file in a sepa-
rate step.
As an example, assume that a MIDI file named midi_t1.mid contains two tracks
and each track contains a single channel. Execute the MD2FM program twice:
>MD2FM midi_t1 midi_t11 –c1 –t1
>MD2FM midi_t1 midi_t12 –c1 –t2
The first pass extracts channel 1 of track 1 from the file and stores it into the
file midi_t11.inc. The second pass extracts channel 1 of track 2 from the file
and stores it into the file midi_t12.inc.
The two files are combined into a single file using the program FM2MERGE
as follows:
>FM2MERGE midi_t11.inc midi_t12.inc midi_t1.inc
The FM2MERGE program combines the midi_t11.inc and the midi_t12.inc
files into a single output file called midi_t1.inc.
Summary of Contents for MSP53C391
Page 4: ...iv ...
Page 62: ...C 1 Appendix A Listing of FMequM2 inc Topic Page C 1 Listing of FMequM2 inc C 2 Appendix C ...
Page 78: ...E 1 Appendix A Listing of FM2INTR1 inc Topic Page E 1 Listing of FM2INTR1 inc E 2 Appendix E ...
Page 99: ...MSP53C31 and MSP53C32 Data Sheet F 2 F 1 MSP53C31 and MSP53C32 Data Sheet ...