mainloop/* moved to root

This commit is contained in:
2022-09-27 20:01:14 +02:00
parent 8e211fd8fb
commit 5dd7f4a277
40 changed files with 895 additions and 35 deletions

29
filter.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* Copyright 2022 Oleg Borodin <borodin@unix7.org>
*/
#ifndef FILTER_H_QWERTY
#define FILTER_H_QWERTY
typedef struct {
double x0;
double x1;
double rc;
} lpf2_t;
void lpf2_init(lpf2_t *lpf, double freq);
double lpf2_apply(lpf2_t *lpf, double x, double dt);
typedef struct {
double x1;
double x2;
double x3;
double rc;
} lpf3_t;
void lpf3_init(lpf3_t *lpf, double freq);
double lpf3_apply(lpf3_t *lpf, double x, double dt);
#endif