0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00

tilt correction? (yes, ai wrote it, you hate me because of that? find a tilt filter yourself then that you can copy the code of)

This commit is contained in:
2025-07-08 19:54:15 +02:00
parent 8932a9a24d
commit 52f2f61a9a
3 changed files with 64 additions and 1 deletions

View File

@@ -12,3 +12,14 @@ typedef struct
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate, float ref_freq);
float apply_preemphasis(ResistorCapacitor *filter, float sample);
typedef struct {
float b0, b1;
float a1;
float x_prev;
float y_prev;
} TiltCorrectionFilter;
void tilt_init(TiltCorrectionFilter *filter, float correction_strength);
float tilt(TiltCorrectionFilter *filter, float input_sample);