History

fixed filter.h

spiricom committed 6 years ago

Commit a9497521 parent af9f02f1 file · +6 −5Browse files

Unified · Split

LEAF/Inc/leaf-filters.h+6−5
@@ -232,7 +232,7 @@ extern "C" { · 231 unmodified lines
232232
233233 //==============================================================================
234234
235− /* State Variable Filter, algorithm from Andy Simper. */
235+/* State Variable Filter, algorithm from Andy Simper. */
236236 typedef enum SVFType
237237 {
238238 SVFTypeHighpass = 0,
@@ -240,8 +240,8 @@ extern "C" { · 1 unmodified line
240240 SVFTypeBandpass,
241241 SVFTypeNotch,
242242 SVFTypePeak,
243− SVFTypeLowShelf,
244− SVFTypeHighShelf
243+ SVFTypeLowShelf,
244+ SVFTypeHighShelf
245245 } SVFType;
246246
247247 typedef struct _tSVF
@@ -249,7 +249,8 @@ extern "C" { · 1 unmodified line
249249 SVFType type;
250250 float cutoff, Q;
251251 float ic1eq,ic2eq;
252− float g,k,a1,a2,a3,cH,cB,cL, kAmount;
252+ float g,k,a1,a2,a3,cH,cB,cL,cBK;
253+
253254
254255 } _tSVF;
255256
@@ -263,7 +264,7 @@ extern "C" { · 7 unmodified lines
263264 float tSVF_tick (tSVF* const, float v0);
264265 void tSVF_setFreq (tSVF* const, float freq);
265266 void tSVF_setQ (tSVF* const, float Q);
266−
267+ void tSVF_setFreqAndQ (tSVF* const svff, float freq, float Q);
267268 //==============================================================================
268269
269270 /* Efficient State Variable Filter for 14-bit control input, [0, 4096). */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t