0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00

remove tilt, and add a non-mpx output

This commit is contained in:
Kuba
2025-10-11 10:22:36 +02:00
parent 53d5d8ec6b
commit 8d00202869
4 changed files with 46 additions and 53 deletions

View File

@@ -11,14 +11,4 @@ typedef struct
} ResistorCapacitor;
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate, float ref_freq);
float apply_preemphasis(ResistorCapacitor *filter, float sample);
typedef struct {
float a0, a1; // lowpass coeffs
float lp; // lowpass state
float low_gain; // gain for low frequencies
float high_gain; // gain for high frequencies
} TiltCorrectionFilter;
void tilt_init(TiltCorrectionFilter* f, float correction_strength, float sr);
float tilt(TiltCorrectionFilter *f, float in);
float apply_preemphasis(ResistorCapacitor *filter, float sample);