aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Fisher2004-11-28 06:03:23 +0000
committerJerome Fisher2004-11-28 06:03:23 +0000
commit2149e0fc785f63ea7ce04db63c3295a2fcfd9c94 (patch)
tree2205f3843d99fa18d4cb4fcf2140fef6307070d4
parent39817f91b3400f75265a0a4e9f3dbd6c1c77b98a (diff)
downloadscummvm-rg350-2149e0fc785f63ea7ce04db63c3295a2fcfd9c94.tar.gz
scummvm-rg350-2149e0fc785f63ea7ce04db63c3295a2fcfd9c94.tar.bz2
scummvm-rg350-2149e0fc785f63ea7ce04db63c3295a2fcfd9c94.zip
- Cleanup. Still waiting for a real MT-32 to check PCM tuning.
svn-id: r15931
-rw-r--r--backends/midi/mt32/synth.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/mt32/synth.cpp b/backends/midi/mt32/synth.cpp
index 6ea63cf151..8ad61f3f2b 100644
--- a/backends/midi/mt32/synth.cpp
+++ b/backends/midi/mt32/synth.cpp
@@ -314,8 +314,8 @@ void Synth::initPCMList() {
Bit8u rFlag = tps[i].len & 0x0F;
Bit16u rTuneOffset = (tps[i].pitchMSB << 8) | tps[i].pitchLSB;
//FIXME:KG: Pick a number, any number. The one below sounded best to me in listening tests, but needs to be confirmed.
- double STANDARDFREQ = 261.6255653005986346778499935233; // A below Middle C of 440Hz
- float rTune = (float)(STANDARDFREQ * pow(2.0, (0x5000 - rTuneOffset) / 4096.0));
+ double STANDARDFREQ = 440.0;
+ float rTune = (float)(STANDARDFREQ * pow(2.0, (0x5000 - rTuneOffset) / 4096.0 - 9.0 / 12.0));
//printDebug("%f,%d,%d", pTune, tps[i].pitchCoarse, tps[i].pitchFine);
PCMList[i].addr = rAddr;
PCMList[i].len = rLen;