shithub: leaf

Download patch

ref: f42ea7f0f61c638d45eaa92782798c69f0d7b86c
parent: 20bdada1161b9065829a209cd9b3858e55c7cbd7
author: Matthew Wang <Matthew@nat-oitwireless-inside-vapornet100-10-9-128-35.princeton.edu>
date: Wed Nov 20 10:48:25 EST 2019

optimize talkbox free

--- a/LEAF/Src/leaf-effects.c
+++ b/LEAF/Src/leaf-effects.c
@@ -44,13 +44,11 @@
 
 void tTalkbox_free(tTalkbox* const v)
 {
-    leaf_free(v->car0);
-    leaf_free(v->car1);
-
-    leaf_free(v->buf0);
     leaf_free(v->buf1);
-    
+    leaf_free(v->buf0);
     leaf_free(v->window);
+    leaf_free(v->car1);
+    leaf_free(v->car0);
 }
 
 void tTalkbox_update(tTalkbox* const v) ///update internal parameters...
--- a/LEAF_JUCEPlugin/Source/MyTest.cpp
+++ b/LEAF_JUCEPlugin/Source/MyTest.cpp
@@ -70,6 +70,8 @@
     float a2 = autotuneOut[7];
     sample = a1 + a2;
     
+    sample = tTalkbox_tick(&test, tNoise_tick(&noise), input);
+    
     return sample * 0.25f;
 }