csl::SndFileInstrument Class Reference

#include <SndFileInstrument.h>

Inheritance diagram for csl::SndFileInstrument:

csl::Instrument csl::UnitGenerator csl::Model csl::SampleBankInstrument

List of all members.

Public Member Functions

 SndFileInstrument (string path, int start=-1, int stop=-1)
 SndFileInstrument (string folder, string path, int start=-1, int stop=-1)
 ~SndFileInstrument ()
void setParameter (unsigned selector, int argc, void **argv, const char *types)
 Plug functions.
void play ()
 play note
void playOSC (int argc, void **argv, const char *types)
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)
 These are the UGens of the DSP graph (i.e., the sndfile player instrument).

Public Attributes

SoundFile mPlayer
 sample player
AR mEnvelope
 AR envelope.
Panner mPanner
 stereo panner
StaticVariable mRate
 plugs playback rate (ignored for now)
int mStart
int mStop
 start/stop sample indices

Protected Member Functions

void initialize (string path)


Detailed Description

Sound file player instrument

Constructor & Destructor Documentation

SndFileInstrument::SndFileInstrument ( string  path,
int  start = -1,
int  stop = -1 
)

References initialize().

SndFileInstrument::SndFileInstrument ( string  folder,
string  path,
int  start = -1,
int  stop = -1 
)

References initialize().

SndFileInstrument::~SndFileInstrument (  ) 


Member Function Documentation

void SndFileInstrument::setParameter ( unsigned  selector,
int  argc,
void **  argv,
const char *  types 
) [virtual]

void SndFileInstrument::play (  )  [virtual]

play note

Reimplemented from csl::Instrument.

Reimplemented in csl::SampleBankInstrument.

References mEnvelope, mPlayer, csl::Envelope::setDuration(), and csl::Envelope::trigger().

void SndFileInstrument::playOSC ( int  argc,
void **  argv,
const char *  types 
) [virtual]

void SndFileInstrument::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 SndFileInstrument::initialize ( string  path  )  [protected]


Member Data Documentation

sample player

Referenced by initialize(), play(), playNote(), playOSC(), and setParameter().

AR envelope.

Referenced by initialize(), play(), playNote(), playOSC(), and setParameter().

stereo panner

Referenced by initialize(), playNote(), playOSC(), and setParameter().

plugs playback rate (ignored for now)

Referenced by initialize(), playNote(), playOSC(), and setParameter().

start/stop sample indices


The documentation for this class was generated from the following files:

Generated on Thu Sep 17 23:14:17 2009 for CSL by  doxygen 1.5.8