temp-cortex filter dump
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
float cutoff;
|
||||||
|
float res;
|
||||||
|
float Q;
|
||||||
|
} FilterParameters;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
float a1;
|
||||||
|
float a2;
|
||||||
|
float b0;
|
||||||
|
float b1;
|
||||||
|
float b2;
|
||||||
|
} NormalCoefficients;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
float x[2]; // Previous inputs
|
||||||
|
float y[2]; // Previous outputs
|
||||||
|
float fb; // Feedback value for resonance
|
||||||
|
} FeedbackLine;
|
||||||
Reference in New Issue
Block a user