mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 11:22:00 +01:00
14 lines
296 B
C
14 lines
296 B
C
#pragma once
|
|
|
|
#include "../dsp/oscillator.h"
|
|
|
|
typedef struct
|
|
{
|
|
float frequency;
|
|
float deviation;
|
|
float osc_phase;
|
|
float sample_rate;
|
|
} FMModulator;
|
|
|
|
void init_fm_modulator(FMModulator *fm, float frequency, float deviation, float sample_rate);
|
|
float modulate_fm(FMModulator *fm, float sample); |