ref: afed9908a7dd428324cac0048ed3d94451022b44
parent: ef64cc0ce4d535dbb14178d069d459f91fbc4301
author: Matthew Wang <mjw7@princeton.edu>
date: Tue Sep 22 10:07:31 EDT 2020
tape delay tick fix
--- a/leaf/Src/leaf-delay.c
+++ b/leaf/Src/leaf-delay.c
@@ -796,7 +796,9 @@
d->idx += d->inc;
- if (d->idx >= d->maxDelay) d->idx = 0.0f;
+ int i = (int)d->idx;
+ float f = d->idx - (float)i;
+ if (d->idx >= d->maxDelay) d->idx = f;
if (d->lastOut)
return d->lastOut;