Compare commits

..

No commits in common. "38ddbf91b1c8f54cd20bb10d1a38add15ad5d047" and "7d60cac40738992a8f4577665f60db36a2c75212" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -139,8 +139,8 @@ void Chorus::setHpf(uint8_t mode) {
hpGain = 0; hpGain = 0;
break; break;
case 0x18: case 0x18:
hpCut = 1 - exp(-6.283 * 85 / sampleRate); hpCut = 1 - exp(-M_PI * 85 / sampleRate);
hpGain = 1.0; hpGain = 1.707;
break; break;
} }
} }

View File

@ -46,7 +46,7 @@ void Module::genNoise() {
for (uint32_t i = 0; i < bufferSize; i++) { for (uint32_t i = 0; i < bufferSize; i++) {
noiseRNG *= 0x8088405; noiseRNG *= 0x8088405;
noiseRNG++; noiseRNG++;
noiseBuf[i] = 1 - (noiseRNG & 0xffff) / 32768.0f; noiseBuf[i] = 2 - (noiseRNG & 0xffff) / 16384.0f;
} }
} }