shithub: leaf

Download patch

ref: 2cda77e338e31d657e55450915a4915dbf5f34c2
parent: ca5234ca4dc13b93df01f2ca18117445a68871b6
author: Matthew Wang <mjw7@princeton.edu>
date: Tue Feb 4 11:44:24 EST 2020

fix error in dattorro init

--- a/LEAF/Src/leaf-reverb.c
+++ b/LEAF/Src/leaf-reverb.c
@@ -416,7 +416,7 @@
 {
     _tDattorroReverb* r = *rev = (_tDattorroReverb*) leaf_alloc(sizeof(_tDattorroReverb));
     float size_max = 2.0f;
-    r->t = r->size * leaf.sampleRate * 0.001f;
+    r->t = leaf.sampleRate * 0.001f;
     // INPUT
     tTapeDelay_init(&r->in_delay, 0.f, SAMP(200.f));
     tOnePole_init(&r->in_filter, 1.f);
@@ -502,7 +502,7 @@
     _tMempool* m = *mp;
     _tDattorroReverb* r = *rev = (_tDattorroReverb*) mpool_alloc(sizeof(_tDattorroReverb), &m->pool);
     float size_max = 2.0f;
-    r->t = r->size * leaf.sampleRate * 0.001f;
+    r->t = leaf.sampleRate * 0.001f;
     // INPUT
     tTapeDelay_initToPool(&r->in_delay, 0.f, SAMP(200.f), mp);
     tOnePole_initToPool(&r->in_filter, 1.f, mp);