mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
remove lpf
This commit is contained in:
@@ -16,17 +16,6 @@ float apply_pre_emphasis(ResistorCapacitor *rc, float sample) {
|
||||
return audio;
|
||||
}
|
||||
|
||||
void init_low_pass_filter(ResistorCapacitor *rc, float cutoff_frequency, float sample_rate) {
|
||||
float RC = 1.0f / (M_2PI * cutoff_frequency);
|
||||
init_rc(&rc, 1.0f / (1.0f + sample_rate * RC));
|
||||
}
|
||||
|
||||
float apply_low_pass_filter(ResistorCapacitor *rc, float sample) {
|
||||
float output = rc->alpha*sample+(1.0f-rc->alpha)*rc->prev_sample;
|
||||
rc->prev_sample = output;
|
||||
return output;
|
||||
}
|
||||
|
||||
void init_delay_line(DelayLine *delay_line, int max_delay) {
|
||||
delay_line->buffer = (float *)calloc(max_delay, sizeof(float));
|
||||
delay_line->size = max_delay;
|
||||
|
||||
Reference in New Issue
Block a user