commit 84bcb5c035434013ba4129e4cc9f171dc2ac2325
parent 4437679a9f6a18a7a2c94bc91569ec83fda76b59
Author: Matt Demanett <matt@demanett.net>
Date: Fri, 15 Nov 2019 17:16:29 -0500
Fix modulation rate at every 2.5ms regardless of sample rate. Before, this was every 100 steps, ignoring sample rate. One release went out with this at 10ms, which may have affected the sound of e.g. FM-OP. #82
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/module.cpp b/src/module.cpp
@@ -9,7 +9,7 @@ void BGModule::onReset() {
}
void BGModule::onSampleRateChange() {
- _modulationSteps = 100; // APP->engine->getSampleRate() / 100.0f;
+ _modulationSteps = APP->engine->getSampleRate() * (2.5f / 1000.0f); // modulate every ~2.5ms regardless of sample rate.
_steps = _modulationSteps;
sampleRateChange();
}