shithub: leaf

Download patch

ref: 154beb466e8073f8e2bc0d332fcb23eb7eb17ec8
parent: 677746b688a08a63d3204052ae1998f648ba5c44
author: mulshine <mulshine@princeton.edu>
date: Thu Feb 7 13:45:35 EST 2019

Fixed counter.

--- a/LEAF/Src/leaf-math.c
+++ b/LEAF/Src/leaf-math.c
@@ -121,12 +121,12 @@
 
 // reduce sample resolution
 float hold = 0.f;
-int count = 0;
+int reduct_count = 0;
 
 float LEAF_reduct (float input, int st)
 {
-    count++;
-    if (count > st)
+    reduct_count++;
+    if (reduct_count > st)
     {
         hold = input;
         count = 0;