From 2149e0fc785f63ea7ce04db63c3295a2fcfd9c94 Mon Sep 17 00:00:00 2001 From: Jerome Fisher Date: Sun, 28 Nov 2004 06:03:23 +0000 Subject: - Cleanup. Still waiting for a real MT-32 to check PCM tuning. svn-id: r15931 --- backends/midi/mt32/synth.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3