Skip to content

Commit

Permalink
Delay: Fix crossfade delay noise
Browse files Browse the repository at this point in the history
  • Loading branch information
qiemem committed Oct 14, 2024
1 parent 0910a6a commit 05f1535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/src/AudioDelayExt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 05f1535

Please sign in to comment.