32 lines
576 B
C
32 lines
576 B
C
/*
|
|
* Filename: fm_core.h
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
* Version:
|
|
* Created: Thu Oct 31 02:06:11 2019
|
|
* Revision: None
|
|
* Author: Rachel Fae Fox (foxiepaws),fox@foxiepa.ws
|
|
*
|
|
*/
|
|
|
|
#ifndef _H_FM_CORE
|
|
#define _H_FM_CORE
|
|
#include "../common.h"
|
|
#include "../utils/envelope.h"
|
|
|
|
typedef struct Operator {
|
|
float level;
|
|
Envelope e;
|
|
bool gate;
|
|
float freq;
|
|
float mul;
|
|
float feedback_level;
|
|
float feedback_buffer;
|
|
float(*run)(struct Operator*,EngineState *,float);
|
|
} Operator;
|
|
float core_fm_run(Operator*, EngineState *,float);
|
|
|
|
#endif
|