diff options
author | Jerome Fisher | 2004-11-28 05:42:12 +0000 |
---|---|---|
committer | Jerome Fisher | 2004-11-28 05:42:12 +0000 |
commit | 39817f91b3400f75265a0a4e9f3dbd6c1c77b98a (patch) | |
tree | 1d64fccf84a528bf88c1af730b801b8298d9711b /backends/midi/mt32 | |
parent | 077d19f5008e5cb911b1291f59b63fc46da18cc8 (diff) | |
download | scummvm-rg350-39817f91b3400f75265a0a4e9f3dbd6c1c77b98a.tar.gz scummvm-rg350-39817f91b3400f75265a0a4e9f3dbd6c1c77b98a.tar.bz2 scummvm-rg350-39817f91b3400f75265a0a4e9f3dbd6c1c77b98a.zip |
- Tweaked tuning.
svn-id: r15930
Diffstat (limited to 'backends/midi/mt32')
-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; |