27 #ifndef CSL_SndFile_Instrument_H
28 #define CSL_SndFile_Instrument_H
46 void setParameter(
unsigned selector,
int argc,
void **argv,
const char *types);
49 void playOSC(
int argc,
void **argv,
const char *types);
50 void playNote(
float ampl = 1,
float rate = 1,
float pos = 0,
int start = -1,
int stop = -1,
51 float attack = 0.0,
float decay = 0.0);
52 void playMIDI(
int chan,
int key,
int vel);
87 void addSample(SoundFile & sndFile,
unsigned midi = 0,
double freq = 0.0,
double minRatio = 0.75);
90 void playOSC(
int argc,
void **argv,
const char *types);
91 void playNote(
float ampl = 1,
float rate = 1,
float pos = 0,
int start = -1,
int stop = -1,
92 float attack = 0.0,
float decay = 0.0);
StaticVariable mRate
plugs playback rate (ignored for now)
void playNote(float ampl=1, float rate=1, float pos=0, int start=-1, int stop=-1, float attack=0.0, float decay=0.0)
Sample bank player instrument.
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
void playMIDI(int chan, int key, int vel)
These are the UGens of the DSP graph (i.e., the sndfile player instrument)
int mStop
start/stop sample indices
StaticVariable – he static external variable (plug) class. This is a kind of variable that holds ont...
SndFileInstrument(string path, int start=-1, int stop=-1)
Panner mPanner
stereo panner
void playNote(float ampl=1, float rate=1, float pos=0, int start=-1, int stop=-1, float attack=0.0, float decay=0.0)
void addSample(SoundFile &sndFile, unsigned midi=0, double freq=0.0, double minRatio=0.75)
void setParameter(unsigned selector, int argc, void **argv, const char *types)
Plug functions.
SoundFile mPlayer
sample player
Instrument class (abstract)
void initialize(string path)
void playOSC(int argc, void **argv, const char *types)
Sound file player instrument.
AR = 3-segment attack/release envelope class.
The CSL mono-to-stereo L/R panner class.
void playOSC(int argc, void **argv, const char *types)