csl::Instrument Class Reference

#include <Instrument.h>

Inheritance diagram for csl::Instrument:

csl::UnitGenerator csl::BasicFMInstrument csl::BasicWhiteNoiseInstrument csl::SndFileInstrument List of all members.

Detailed Description

Instrument class (abstract)


Public Member Functions

 Instrument ()
 Constructors.
 ~Instrument ()
UnitGeneratorgraph ()
 Accessors.
UGenMapgenMap ()
 my UGen graph
UGenVectorenvelopes ()
 the map of ugens in the graph by name
const string name ()
 the vector of envelopes to query or trigger
UnitGeneratorgenNamed (string name)
 answer the number of channels get a UGen from the graph
AccessorVector getAccessors ()
 Accessor management.
unsigned numAccessors ()
 answer the accessor vector
virtual void setParameter (unsigned selector, void *value)
 answer the number of accessors
virtual void nextBuffer (Buffer &outputBuffer) throw (CException)
 Sample creation.
virtual bool isActive ()
 Envelope query and re-trigger.
virtual void play ()
virtual void playOSC (const char *types, void *args)
virtual void playNote (void *args)
virtual void release ()
 Play a note via a direct fcn call (subclasses refine this).

Protected Attributes

UnitGeneratormGraph
 Caches my UGen graph.
string mName
 my name
UGenMap mUGens
 the map of ugens in the graph by name
UGenVector mEnvelopes
 the vector of envelopes to query or trigger
AccessorVector mAccessors


Constructor & Destructor Documentation

Instrument::Instrument  ) 
 

Constructors.

Instrument::~Instrument  ) 
 


Member Function Documentation

UnitGenerator* csl::Instrument::graph  )  [inline]
 

Accessors.

UGenMap* csl::Instrument::genMap  )  [inline]
 

my UGen graph

UGenVector* csl::Instrument::envelopes  )  [inline]
 

the map of ugens in the graph by name

const string csl::Instrument::name  )  [inline]
 

the vector of envelopes to query or trigger

UnitGenerator * Instrument::genNamed string  name  ) 
 

answer the number of channels get a UGen from the graph

answer my name

AccessorVector csl::Instrument::getAccessors  )  [inline]
 

Accessor management.

unsigned csl::Instrument::numAccessors  )  [inline]
 

answer the accessor vector

virtual void csl::Instrument::setParameter unsigned  selector,
void *  value
[inline, virtual]
 

answer the number of accessors

Reimplemented in csl::BasicFMInstrument, and csl::SndFileInstrument.

void Instrument::nextBuffer Buffer outputBuffer  )  throw (CException) [virtual]
 

Sample creation.

bool Instrument::isActive  )  [virtual]
 

Envelope query and re-trigger.

void Instrument::play  )  [virtual]
 

Reimplemented in csl::SndFileInstrument.

virtual void csl::Instrument::playOSC const char *  types,
void *  args
[inline, virtual]
 

Reimplemented in csl::BasicFMInstrument, and csl::SndFileInstrument.

virtual void csl::Instrument::playNote void *  args  )  [inline, virtual]
 

void Instrument::release  )  [virtual]
 

Play a note via a direct fcn call (subclasses refine this).


Member Data Documentation

UnitGenerator* csl::Instrument::mGraph [protected]
 

Caches my UGen graph.

string csl::Instrument::mName [protected]
 

my name

UGenMap csl::Instrument::mUGens [protected]
 

the map of ugens in the graph by name

UGenVector csl::Instrument::mEnvelopes [protected]
 

the vector of envelopes to query or trigger

AccessorVector csl::Instrument::mAccessors [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:17 2007 for CSL by  doxygen 1.4.5-20051010