FM II—Constant Definitions
B-9
FM Synthesis
B.4 FM II—Constant Definitions
***************************************************
* FM II
***************************************************
*
Constant Definitions
*
DC,BA98:7654,3210
*
––,––––:––––,––––
BIT0
equ #0001
;00,0000:0000,0001
BIT1
equ #0002
;00,0000:0000,0010
BIT2
equ #0004
;00,0000:0000,0100
BIT3
equ #0008
;00,0000:0000,1000
BIT4
equ #0010
;00,0000:0001,0000
BIT5
equ #0020
;00,0000:0010,0000
BIT6
equ #0040
;00,0000:0100,0000
BIT7
equ #0080
;00,0000:1000,0000
BIT8
equ #0100
;00,0001:0000,0000
BIT9
equ #0200
;00,0010:0000,0000
BIT10
equ #0400
;00,0100:0000,0000
BIT11
equ #0800
;00,1000:0000,0000
BIT12
equ #1000
;01,0000:0000,0000
BIT13
equ #2000
;10,0000:0000,0000
*
Initialization defaults
*
default gain value
MAXGAIN
equ 24
;default value, also MAX. do not exceed!
*
default Master Modulation Index Scale values
DEFSCLMIX equ 96
;like a tone control...
*
Song interval delay values
ONESEC
equ 1*10
TWOSECS
equ 2*10
THREESECS equ 3*10
FOURSECS
equ 4*10
FIVESECS
equ 5*10
TENSECS
equ 10*10
*
FM channel Automated Fader calculations
*
Coded as:
*
BYTE
FADER, CurrFader, ((DestFader–CurrFader) * 16) / #Events
*
Init Fader with Start Gain * 16 = 384
*
So, when each new event comes along, Add FaderInc to Fader
*
(EXTSG ON) and Update Fader.
*
When calculating Loudness, use Fader / 16 * Current Signal.
*
My standard fader values
f100p
equ 63
f94p
equ 60
f87p
equ 56
f75p
equ 48
f62p
equ 40
f50p
equ 32
f37p
equ 24
f25p
equ 16
f18p
equ 12
Summary of Contents for MSP53C691
Page 1: ...MSP53C691 Speech Synthesizer December 2000 MSDS Speech User s Guide SPSU020 ...
Page 22: ...2 10 ...
Page 96: ...C 6 ...