forked from klang-modular/synthapp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
331 B
23 lines
331 B
#ifndef __VOICE_H__
|
|
#define __VOICE_H__
|
|
|
|
#include "preset.h"
|
|
|
|
#include "dsp/oscillator.h"
|
|
#include "dsp/svf.h"
|
|
#include "dsp/adsr.h"
|
|
|
|
class Voice {
|
|
public:
|
|
static const int NUM_OSCS = 2;
|
|
|
|
void usePreset(Preset* preset);
|
|
|
|
private:
|
|
ADSR adsrAmp;
|
|
ADSR adsrFlt;
|
|
Oscillator oscs[NUM_OSCS];
|
|
SVF filter;
|
|
};
|
|
|
|
#endif |