#include <AdditiveInstrument.h>

Public Member Functions | |
| AdditiveInstrument () | |
| Constructor. | |
| ~AdditiveInstrument () | |
| void | setParameter (unsigned selector, int argc, void **argv, const char *types) |
| Plug functions. | |
| void | playOSC (int argc, void **argv, const char *types) |
| Play functions. | |
| void | playNote (float dur=1, float ampl=1, float c_fr=110, float pos=0, float att=0.1, float dec=0.1, float sus=0.5, float rel=0.1) |
Public Attributes | |
| ADSR | mAEnv |
| amplitude envelope | |
| SumOfSines | mSOS |
| sum-of-sine oscillator | |
| Panner | mPanner |
| stereo panner | |
| AdditiveInstrument::AdditiveInstrument | ( | ) |
Constructor.
References CSL_FLOAT_TYPE, csl::Instrument::mAccessors, mAEnv, csl::Instrument::mEnvelopes, csl::Instrument::mGraph, csl::Instrument::mName, csl::UnitGenerator::mNumChannels, mPanner, mSOS, csl::Instrument::mUGens, set_amplitude_f, set_attack_f, set_decay_f, set_duration_f, set_frequency_f, set_partial_f, set_partials_f, set_position_f, set_release_f, set_sustain_f, and csl::Scalable::setScale().
| AdditiveInstrument::~AdditiveInstrument | ( | ) |
| void AdditiveInstrument::setParameter | ( | unsigned | selector, | |
| int | argc, | |||
| void ** | argv, | |||
| const char * | types | |||
| ) | [virtual] |
Plug functions.
Reimplemented from csl::Instrument.
References csl::SumOfSines::addPartial(), csl::SumOfSines::addPartials(), csl::kLogError, csl::logMsg(), mAEnv, mPanner, mSOS, set_amplitude_f, set_attack_f, set_decay_f, set_duration_f, set_frequency_f, set_partial_f, set_partials_f, set_position_f, set_release_f, set_sustain_f, csl::ADSR::setAttack(), csl::ADSR::setDecay(), csl::Envelope::setDuration(), csl::Phased::setFrequency(), csl::Panner::setPosition(), csl::ADSR::setRelease(), csl::Scalable::setScale(), and csl::ADSR::setSustain().
| void AdditiveInstrument::playOSC | ( | int | argc, | |
| void ** | argv, | |||
| const char * | types | |||
| ) | [virtual] |
Play functions.
OSC note formats (4 or 8 arguments): dur, ampl, c_fr, pos dur, ampl, c_fr, pos, att, dec, sus, rel
Reimplemented from csl::Instrument.
References csl::kLogError, csl::logMsg(), mAEnv, mPanner, mSOS, csl::Instrument::play(), csl::ADSR::setAttack(), csl::ADSR::setDecay(), csl::Envelope::setDuration(), csl::Phased::setFrequency(), csl::Panner::setPosition(), csl::ADSR::setRelease(), csl::Scalable::setScale(), and csl::ADSR::setSustain().
| void AdditiveInstrument::playNote | ( | float | dur = 1, |
|
| float | ampl = 1, |
|||
| float | c_fr = 110, |
|||
| float | pos = 0, |
|||
| float | att = 0.1, |
|||
| float | dec = 0.1, |
|||
| float | sus = 0.5, |
|||
| float | rel = 0.1 | |||
| ) |
sum-of-sine oscillator
Referenced by AdditiveInstrument(), playNote(), playOSC(), and setParameter().
1.5.8