FM Synthesis Format and Data Preparation
B-5
FM Synthesis
B.2.8 Command Summary
Table B–1 summarizes the several valid commands.
Table B–1.Command Summary
Command and Format
Description
Music Notes:
Note: Is the music note. It can range form C0 to C6.
Format:
BYTE Note,TimeValue,Duration,Velocity
TimeValue: Total length of the note. n4 is 1/4 note.
Example:
BYTE C1, n4, n4, 127
Duration: Length of tone generate
Velocity: Note volume from 0 to 127
Tempo control the speed of music:
TEMPO: Tempo command. Set the song tempo in
channel 1 only.
Format:
BYTE TEMPO,BPM,TimeSig,EnvelopeLen
BPM: Beats per minutes.
Example: TEMPO,BPM116,TS44,ENVOK
TimeSig: Beats per measure. TS44 sets the time
signature to 4/4.
EnvelopLen: Envelop time. ENVOK sets the envelope
length to normal.
Transpose:
Format: BYTE ATRNS, NUM
Example:
BYTE ATRNS,–12
(–12 = Transpose Down an Octave)
ATRANS: Transpose command.
NUM: Set the channel transpose to a signed offset.
Transpose:
Format: BYTE RTRNS,NUM
Example:
BYTE RTRNS,7
(Add 7 Semitones to the channel’s transpose
offset)
RTRNS: Transpose command.
NUM: Add a signed offset to the channel transpose
value.
Fade control:
Format: BYTE
FADER,InitialFaderValue,FaderInc
Example:
BYTE FADER,f100p, –32 (word)
FADER: Fader command
InitalFaderValue: Set initial fader value from 0 to 63.
F100p is defined in FmequM2.inc
FadInc: Fader increment, which is a 16-bit value.
Calculate as follows:
(End Fader Value
*
Start Fader Value)
16
# of Events
Mix control:
Format: BYTE MixLevel
Example:
MIX8
MixLevel: Set the modulation index value by lookup
table from MIX0 to MIX15
Mix control:
Format: BYTE MIXUP
Example:
MIXUP
MIXUP: Increment the current modulation index as set
by MIXn.
Mix control
Format: BYTE MIXDN
Example:
BYTE MIXDN
MIXDN: Decrement the current modulation index as
set by MIXn.
End of the song:
Format: StopSong
Example:
StopSong
StopSong: Stop playing the song.
Содержание MSP53C691
Страница 1: ...MSP53C691 Speech Synthesizer December 2000 MSDS Speech User s Guide SPSU020 ...
Страница 22: ...2 10 ...
Страница 96: ...C 6 ...