23 #ifndef INCLUDE_ADDITIVE_Instrument_H
24 #define INCLUDE_ADDITIVE_Instrument_H
45 void setParameter(
unsigned selector,
int argc,
void **argv,
const char *types);
47 void playOSC(
int argc,
void **argv,
const char *types);
49 void playNote(
float dur = 1,
float ampl = 1,
50 float c_fr = 110,
float pos = 0,
51 float att = 0.05,
float dec = 0.05,
float sus = 0.5,
float rel = 0.5);
52 void playMIDI(
float dur,
int chan,
int key,
int vel);
77 void setParameter(
unsigned selector,
int argc,
void **argv,
const char *types);
79 void playOSC(
int argc,
void **argv,
const char *types);
81 void playNote(
float dur = 1,
float ampl = 1,
82 float c_fr = 110,
float pos = 0,
83 float att = 0.05,
float dec = 0.05,
float sus = 0.5,
float rel = 0.5);
84 void playMIDI(
float dur,
int chan,
int key,
int vel);
void playOSC(int argc, void **argv, const char *types)
Play functions.
Panner mPanner
stereo panner
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
void playOSC(int argc, void **argv, const char *types)
Play functions.
VAdditiveInstrument()
Constructor.
AR mXEnv
cross-fade envelope, AR with init delay
void playMIDI(float dur, int chan, int key, int vel)
void playNote(float dur=1, float ampl=1, float c_fr=110, float pos=0, float att=0.05, float dec=0.05, float sus=0.5, float rel=0.5)
ADSR mAEnv
amplitude envelope
SumOfSines mSOS
sum-of-sine oscillator
Panner mPanner
stereo panner
ADSR mAEnv
amplitude envelope
ADSR = 4-segment attack/decay/sustain/release envelope class.
Instrument class (abstract)
void setParameter(unsigned selector, int argc, void **argv, const char *types)
Plug functions.
void setParameter(unsigned selector, int argc, void **argv, const char *types)
Plug functions.
void playMIDI(float dur, int chan, int key, int vel)
AdditiveInstrument()
Constructor.
void playNote(float dur=1, float ampl=1, float c_fr=110, float pos=0, float att=0.05, float dec=0.05, float sus=0.5, float rel=0.5)
AR = 3-segment attack/release envelope class.
The CSL mono-to-stereo L/R panner class.
VAdditiveInstrument = vector-additive - cross-fade between 2 SOS spectra Envelope mXEnv(dur...
SumOfSines mSOS2
2 sum-of-sine oscillators