mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
try to add a lpf
This commit is contained in:
@@ -15,4 +15,14 @@ typedef struct
|
||||
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate);
|
||||
float apply_preemphasis(ResistorCapacitor *filter, float sample);
|
||||
|
||||
float hard_clip(float sample, float threshold);
|
||||
float hard_clip(float sample, float threshold);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
float b0, b1, b2;
|
||||
float a1, a2;
|
||||
float x1, x2;
|
||||
float y1, y2;
|
||||
} Biquad;
|
||||
void init_butterworth_lpf(Biquad *filter, float cutoff_freq, float sample_rate);
|
||||
float biquad(Biquad *filter, float input);
|
||||
Reference in New Issue
Block a user