mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
14 lines
289 B
C
14 lines
289 B
C
#pragma once
|
|
|
|
#include "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); |