mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
- Tweaked tuning.
svn-id: r15930
This commit is contained in:
parent
077d19f500
commit
39817f91b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user