diff --git a/software/src/AudioDelayExt.h b/software/src/AudioDelayExt.h index f59e60807..ff6069817 100644 --- a/software/src/AudioDelayExt.h +++ b/software/src/AudioDelayExt.h @@ -77,7 +77,7 @@ class AudioDelayExt : public AudioStream { // karplus-strong. Also, delay times that short will produce higher // harmonics that crossfades of that length (that's kinda the point). // Just maxing here seems to work pretty well for KS. - target.phase += max(crossfade_dt, 1.0f / target.target); + target.phase += max(crossfade_dt, 1.0f / (target.target * AUDIO_SAMPLE_RATE)); if (target.phase >= 1.0f) { target.phase = 0.0f; delay_secs[tap] = target.target;