Data Preparation of FM Synthesis
B-6
B.3 Data Preparation of FM Synthesis
According to the discussion on FM data format, a song can be coded following
the predefined command and formats. Alternatively, software utilities are
available for converting a song from musical instrument digital interface (MIDI)
formatted files to a format accepted by MSP53C691. MD2FM.exe is available
for the conversion. The process for the conversion is shown in Figure B–1:
Figure B–1.FM Conversion Process
MIDI Song (
songt1.mid
)
Channel 1 FM Data (
songt1_1.inc
)
Place Channel 1 FM Data Into the
Microcontroller Program
md2fm songt1 songt1_2 –c1 –t1
By using MD2FM, the channel 1 data of a MIDI file (.mid) can be extracted and
converted to FM format (.inc). Then it can be put into the MCU program for FM
synthesis.
B.3.1 MD2FM Software
MD2FM converts a MIDI format file to FM data accepted by MSP53C691. With
this routine users can compose or translate music base on the MIDI format.
This routine runs under the DOS environment and uses the following syntax:
md2fm songt1 songt1_1 –c1 –t1
input : songt1.mid (MIDI format)
output
: songt1_1.inc (FM format)
–c1
: channel #1 to be decoded
†
–t1
: track #1 to be decoded
†
† Specify the number of tracks and channels to be extracted and converted. Only one channel
within one track can be converted on the MIDI file at any one time.
Assuming that the songt1.mid contains two tracks and each has one channel
music data, the FM data can be extracted as follows:
md2fm songt1 songt1_1 –c1 –t1
The output file songt1_1.inc is the track 1 data in FM format.
Note that more than one note appearing on the same track and channel may
cause error in the conversion. Thus, a song with one note is recommend for
the conversion.
Содержание MSP53C691
Страница 1: ...MSP53C691 Speech Synthesizer December 2000 MSDS Speech User s Guide SPSU020 ...
Страница 22: ...2 10 ...
Страница 96: ...C 6 ...