0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 11:33:54 +01:00
Files
fm95/lib/hilbert.h
2025-01-01 02:06:57 +01:00

16 lines
397 B
C

#include <stdlib.h>
#include <math.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);