mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-30 00:09:16 +02:00
15 lines
379 B
C
15 lines
379 B
C
#include <stdlib.h>
|
|
#include "constants.h"
|
|
|
|
#define D_SIZE 256
|
|
#define NZEROS 200
|
|
|
|
typedef struct {
|
|
float* delay;
|
|
int dptr;
|
|
float coeffs[NZEROS]
|
|
} HilbertTransformer;
|
|
|
|
void init_hilbert(HilbertTransformer *hilbert);
|
|
void apply_hilbert(HilbertTransformer *hilbert, float sample, float *output_0deg, float *output_90deg);
|
|
void exit_hilbert(HilbertTransformer *hilbert); |