diff options
-rw-r--r-- | backends/midi/mt32/synth.cpp | 5 |
1 files 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; |