shithub: leaf

Download patch

ref: a949752fa9be02fff8f446e7454e6c87163a7da9
parent: af9f02fa0616c2d0001fb9d8c8b65f151de34ff8
author: spiricom <jeff@snyderphonics.com>
date: Thu May 7 07:10:24 EDT 2020

fixed filter.h

--- a/LEAF/Inc/leaf-filters.h
+++ b/LEAF/Inc/leaf-filters.h
@@ -232,7 +232,7 @@
     
     //==============================================================================
     
-    /* State Variable Filter, algorithm from Andy Simper. */
+/* State Variable Filter, algorithm from Andy Simper. */
     typedef enum SVFType
     {
         SVFTypeHighpass = 0,
@@ -240,8 +240,8 @@
         SVFTypeBandpass,
         SVFTypeNotch,
         SVFTypePeak,
-		SVFTypeLowShelf,
-		SVFTypeHighShelf
+        SVFTypeLowShelf,
+        SVFTypeHighShelf
     } SVFType;
     
     typedef struct _tSVF
@@ -249,7 +249,8 @@
         SVFType type;
         float cutoff, Q;
         float ic1eq,ic2eq;
-        float g,k,a1,a2,a3,cH,cB,cL, kAmount;
+        float g,k,a1,a2,a3,cH,cB,cL,cBK;
+
         
     } _tSVF;
     
@@ -263,7 +264,7 @@
     float   tSVF_tick           (tSVF* const, float v0);
     void    tSVF_setFreq        (tSVF* const, float freq);
     void    tSVF_setQ           (tSVF* const, float Q);
-    
+    void    tSVF_setFreqAndQ    (tSVF* const svff, float freq, float Q);
     //==============================================================================
     
     /* Efficient State Variable Filter for 14-bit control input, [0, 4096). */