#include <BasicFMInstrument.h>

Public Member Functions | |
| BasicFMInstrument () | |
| Constructor. | |
| ~BasicFMInstrument () | |
| virtual void | setParameter (unsigned selector, int argc, void **argv, const char *types) |
| Plug functions. | |
| void | parseArgs (int argc, void **argv, const char *types) |
| Play functions. | |
| virtual void | playOSC (int argc, void **argv, const char *types) |
| void | playNote (float dur=1, float ampl=1, float c_fr=110, float m_fr=110, float ind=1, float pos=0, float att=0.1, float dec=0.1, float sus=0.5, float rel=0.1, float i_att=0.1, float i_dec=0.1, float i_sus=0.5, float i_rel=0.1) |
| These are the UGens of the DSP graph (i.e., the FM instrument). | |
Public Attributes | |
| ADSR | mAEnv |
| ADSR | mIEnv |
| amplitude & modulation index envelopes | |
| Sine | mCar |
| Sine | mMod |
| 2 sine oscillators, carrier and modulator | |
| Panner | mPanner |
| stereo panner | |
| BasicFMInstrument::BasicFMInstrument | ( | ) |
Constructor.
References BASE_FREQ, CSL_FLOAT_TYPE, csl::Instrument::mAccessors, mAEnv, mCar, csl::Instrument::mEnvelopes, csl::Instrument::mGraph, mIEnv, mMod, csl::Instrument::mName, csl::UnitGenerator::mNumChannels, mPanner, csl::Instrument::mUGens, set_amplitude_f, set_attack_f, set_c_freq_f, set_decay_f, set_duration_f, set_iattack_f, set_idecay_f, set_index_f, set_irelease_f, set_isustain_f, set_m_freq_f, set_position_f, set_release_f, set_sustain_f, csl::Phased::setFrequency(), csl::Scalable::setOffset(), and csl::Scalable::setScale().
| BasicFMInstrument::~BasicFMInstrument | ( | ) |
| void BasicFMInstrument::setParameter | ( | unsigned | selector, | |
| int | argc, | |||
| void ** | argv, | |||
| const char * | types | |||
| ) | [virtual] |
Plug functions.
Reimplemented from csl::Instrument.
Reimplemented in csl::FancyFMInstrument.
References csl::kLogError, csl::logMsg(), mAEnv, mIEnv, mMod, mPanner, set_amplitude_f, set_attack_f, set_c_freq_f, set_decay_f, set_duration_f, set_iattack_f, set_idecay_f, set_index_f, set_irelease_f, set_isustain_f, set_m_freq_f, set_position_f, set_release_f, set_sustain_f, csl::ADSR::setAttack(), csl::ADSR::setDecay(), csl::Envelope::setDuration(), csl::Phased::setFrequency(), csl::Scalable::setOffset(), csl::Panner::setPosition(), csl::ADSR::setRelease(), csl::Scalable::setScale(), and csl::ADSR::setSustain().
| void BasicFMInstrument::parseArgs | ( | int | argc, | |
| void ** | argv, | |||
| const char * | types | |||
| ) |
Play functions.
References csl::kLogError, csl::logMsg(), mAEnv, mIEnv, mMod, mPanner, csl::ADSR::setAttack(), csl::ADSR::setDecay(), csl::Envelope::setDuration(), csl::Phased::setFrequency(), csl::Scalable::setOffset(), csl::Panner::setPosition(), csl::ADSR::setRelease(), csl::Scalable::setScale(), and csl::ADSR::setSustain().
Referenced by csl::FancyFMInstrument::playOSC(), and playOSC().
| void BasicFMInstrument::playOSC | ( | int | argc, | |
| void ** | argv, | |||
| const char * | types | |||
| ) | [virtual] |
Reimplemented from csl::Instrument.
Reimplemented in csl::FancyFMInstrument.
References parseArgs(), and csl::Instrument::play().
| void BasicFMInstrument::playNote | ( | float | dur = 1, |
|
| float | ampl = 1, |
|||
| float | c_fr = 110, |
|||
| float | m_fr = 110, |
|||
| float | ind = 1, |
|||
| float | pos = 0, |
|||
| float | att = 0.1, |
|||
| float | dec = 0.1, |
|||
| float | sus = 0.5, |
|||
| float | rel = 0.1, |
|||
| float | i_att = 0.1, |
|||
| float | i_dec = 0.1, |
|||
| float | i_sus = 0.5, |
|||
| float | i_rel = 0.1 | |||
| ) |
These are the UGens of the DSP graph (i.e., the FM instrument).
References mAEnv, mIEnv, mMod, mPanner, csl::Instrument::play(), csl::ADSR::setAttack(), csl::ADSR::setDecay(), csl::Envelope::setDuration(), csl::Phased::setFrequency(), csl::Scalable::setOffset(), csl::Panner::setPosition(), csl::ADSR::setRelease(), csl::Scalable::setScale(), and csl::ADSR::setSustain().
Referenced by BasicFMInstrument(), parseArgs(), playNote(), and setParameter().
amplitude & modulation index envelopes
Referenced by BasicFMInstrument(), parseArgs(), playNote(), and setParameter().
Referenced by BasicFMInstrument(), and csl::FancyFMInstrument::FancyFMInstrument().
2 sine oscillators, carrier and modulator
Referenced by BasicFMInstrument(), csl::FancyFMInstrument::FancyFMInstrument(), parseArgs(), playNote(), csl::FancyFMInstrument::playOSC(), csl::FancyFMInstrument::setParameter(), and setParameter().
1.5.8