synththing-plusplus/src/synths/fm/core.h

34 lines
542 B
C++

/*
* Filename: core.h
*
* Description:
*
*
* Version:
* Created: Fri Nov 1 01:34:36 2019
* Revision: None
* Author: Rachel Fae Fox (foxiepaws),fox@foxiepa.ws
*
*/
#ifndef _H_FM_CORE
#define _H_FM_CORE
#include "../../utils/envelope.h"
class FM::Operator {
public:
float level;
float mul;
float freq;
float feedback_level;
bool gate;
Envelope env;
float run(float);
FM::Operator();
private:
float feedback_buffer;
unsigned int t;
unsigned int sample_rate;
}
#endif