#include <Instrument.h>

Public Member Functions | |
| Instrument () | |
| Constructors. | |
| ~Instrument () | |
| UnitGenerator * | graph () |
| Accessors. | |
| UGenMap * | genMap () |
| my UGen graph | |
| UGenVector * | envelopes () |
| the map of ugens in the graph by name | |
| const string | name () |
| the vector of envelopes to query or trigger | |
| UnitGenerator * | genNamed (string name) |
| answer the number of channels | |
| AccessorVector | getAccessors () |
| Accessor management. | |
| unsigned | numAccessors () |
| answer the accessor vector | |
| virtual void | setParameter (unsigned selector, int argc, void **argv, const char *types) |
| answer the number of accessors | |
| virtual void | nextBuffer (Buffer &outputBuffer) throw (CException) |
| set a named parameter | |
| virtual bool | isActive () |
| Envelope query and re-trigger. | |
| virtual void | play () |
| virtual void | playOSC (int argc, void **argv, const char *types) |
| virtual void | playNote (int argc, void **argv, const char *types) |
| Play a note via a direct fcn call (subclasses refine this). | |
| virtual void | release () |
Protected Attributes | |
| UnitGenerator * | mGraph |
| Caches. | |
| 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 |
| the accessor vector | |
| Instrument::Instrument | ( | ) |
Constructors.
| Instrument::~Instrument | ( | ) |
| UnitGenerator* csl::Instrument::graph | ( | ) | [inline] |
| UGenVector* csl::Instrument::envelopes | ( | ) | [inline] |
| const string csl::Instrument::name | ( | ) | [inline] |
| UnitGenerator * Instrument::genNamed | ( | string | name | ) |
| AccessorVector csl::Instrument::getAccessors | ( | ) | [inline] |
| unsigned csl::Instrument::numAccessors | ( | ) | [inline] |
| virtual void csl::Instrument::setParameter | ( | unsigned | selector, | |
| int | argc, | |||
| void ** | argv, | |||
| const char * | types | |||
| ) | [inline, virtual] |
answer the number of accessors
Reimplemented in csl::AdditiveInstrument, csl::BasicFMInstrument, csl::FancyFMInstrument, and csl::SndFileInstrument.
Referenced by floatParamSetter(), intParamSetter(), paramSetter(), and stringParamSetter().
| void Instrument::nextBuffer | ( | Buffer & | outputBuffer | ) | throw (CException) [virtual] |
set a named parameter
get a UGen from the graph
Sample creation
Reimplemented from csl::UnitGenerator.
| bool Instrument::isActive | ( | ) | [virtual] |
Envelope query and re-trigger.
Reimplemented from csl::UnitGenerator.
References FALSE, csl::UnitGenerator::isActive(), mEnvelopes, mGraph, and TRUE.
| void Instrument::play | ( | ) | [virtual] |
Reimplemented in csl::SndFileInstrument, and csl::SampleBankInstrument.
References mEnvelopes.
Referenced by playNote(), csl::BasicFMInstrument::playNote(), csl::AdditiveInstrument::playNote(), csl::FancyFMInstrument::playOSC(), csl::BasicFMInstrument::playOSC(), and csl::AdditiveInstrument::playOSC().
| virtual void csl::Instrument::playOSC | ( | int | argc, | |
| void ** | argv, | |||
| const char * | types | |||
| ) | [inline, virtual] |
Reimplemented in csl::AdditiveInstrument, csl::BasicFMInstrument, csl::FancyFMInstrument, csl::SndFileInstrument, and csl::SampleBankInstrument.
Referenced by playWithArgs().
| virtual void csl::Instrument::playNote | ( | int | argc, | |
| void ** | argv, | |||
| const char * | types | |||
| ) | [inline, virtual] |
Play a note via a direct fcn call (subclasses refine this).
| void Instrument::release | ( | ) | [virtual] |
References mEnvelopes.
UnitGenerator* csl::Instrument::mGraph [protected] |
Caches.
my UGen graph
Referenced by csl::AdditiveInstrument::AdditiveInstrument(), csl::BasicFMInstrument::BasicFMInstrument(), graph(), csl::SndFileInstrument::initialize(), and isActive().
string csl::Instrument::mName [protected] |
UGenMap csl::Instrument::mUGens [protected] |
the map of ugens in the graph by name
Referenced by csl::AdditiveInstrument::AdditiveInstrument(), csl::BasicFMInstrument::BasicFMInstrument(), csl::FancyFMInstrument::FancyFMInstrument(), genMap(), genNamed(), and csl::SndFileInstrument::initialize().
UGenVector csl::Instrument::mEnvelopes [protected] |
the vector of envelopes to query or trigger
Referenced by csl::AdditiveInstrument::AdditiveInstrument(), csl::BasicFMInstrument::BasicFMInstrument(), envelopes(), csl::FancyFMInstrument::FancyFMInstrument(), isActive(), play(), and release().
AccessorVector csl::Instrument::mAccessors [protected] |
the accessor vector
Referenced by csl::AdditiveInstrument::AdditiveInstrument(), csl::BasicFMInstrument::BasicFMInstrument(), getAccessors(), csl::SndFileInstrument::initialize(), and numAccessors().
1.5.8