ref: b464e520d4564729572649948ad1eb40c11ade97
parent: 26986d7344ffd2cfde8a00d32a230c90880884b1
author: spiricom <jeff@snyderphonics.com>
date: Mon Feb 3 10:56:43 EST 2020
not sure but making sure its synced with current version being used in vocodec and genera eurorack module
binary files a/.DS_Store b/.DS_Store differ
--- a/LEAF/Src/leaf-delay.c
+++ b/LEAF/Src/leaf-delay.c
@@ -187,7 +187,7 @@
else if (delay < 0.0f) d->delay = 0.0f;
else d->delay = delay;
- d->buff = (float*) leaf_alloc(sizeof(float) * maxDelay);
+ d->buff = (float*) leaf_allocAndClear(sizeof(float) * maxDelay);
d->gain = 1.0f;
@@ -902,6 +902,7 @@
if (d->idx >= d->maxDelay) d->idx = 0.0f;
+ if (d->lastOut)
return d->lastOut;
}
--- a/LEAF/Src/leaf.c
+++ b/LEAF/Src/leaf.c
@@ -26,7 +26,7 @@
leaf_pool_init(memory, memorysize);
leaf.sampleRate = sr;
-
+
leaf.blockSize = blocksize;
leaf.invSampleRate = 1.0f/sr;