From 39817f91b3400f75265a0a4e9f3dbd6c1c77b98a Mon Sep 17 00:00:00 2001 From: Jerome Fisher Date: Sun, 28 Nov 2004 05:42:12 +0000 Subject: - Tweaked tuning. svn-id: r15930 --- backends/midi/mt32/synth.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backends/midi/mt32/synth.cpp b/backends/midi/mt32/synth.cpp index 28d09f4d4d..6ea63cf151 100644 --- a/backends/midi/mt32/synth.cpp +++ b/backends/midi/mt32/synth.cpp @@ -313,9 +313,8 @@ void Synth::initPCMList() { bool rLoop = (tps[i].len & 0x80) != 0; Bit8u rFlag = tps[i].len & 0x0F; Bit16u rTuneOffset = (tps[i].pitchMSB << 8) | tps[i].pitchLSB; - //FIXME:KG: Pick a number, any number. 260.1f sounded best to me in listening tests, but needs to be confirmed. - //double STANDARDFREQ = 261.6255653005986346778499935233; // A below Middle C of 440Hz - double STANDARDFREQ = 260.1f; + //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)); //printDebug("%f,%d,%d", pTune, tps[i].pitchCoarse, tps[i].pitchFine); PCMList[i].addr = rAddr; -- cgit v1.2.3