#include <SndFileInstrument.h>

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) |
| 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 | ( | ) |
| void SndFileInstrument::setParameter | ( | unsigned | selector, | |
| int | argc, | |||
| void ** | argv, | |||
| const char * | types | |||
| ) | [virtual] |
Plug functions.
Reimplemented from csl::Instrument.
References csl::kLogError, csl::logMsg(), mEnvelope, mPanner, mPlayer, mRate, set_amplitude_f, set_attack_f, set_decay_f, set_file_f, set_position_f, set_rate_f, set_start_f, set_stop_f, csl::AR::setAttack(), csl::Envelope::setDuration(), csl::Panner::setPosition(), csl::AR::setRelease(), csl::Scalable::setScale(), and csl::StaticVariable::setValue().
| 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] |
Reimplemented from csl::Instrument.
Reimplemented in csl::SampleBankInstrument.
References csl::kLogError, csl::logMsg(), mEnvelope, mPanner, mPlayer, mRate, csl::AR::setAttack(), csl::Envelope::setDuration(), csl::Panner::setPosition(), csl::AR::setRelease(), csl::Scalable::setScale(), csl::StaticVariable::setValue(), and csl::Envelope::trigger().
| 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 | |||
| ) |
These are the UGens of the DSP graph (i.e., the sndfile player instrument).
Reimplemented in csl::SampleBankInstrument.
References mEnvelope, mPanner, mPlayer, mRate, csl::AR::setAttack(), csl::Envelope::setDuration(), csl::Panner::setPosition(), csl::AR::setRelease(), csl::Scalable::setScale(), csl::StaticVariable::setValue(), and csl::Envelope::trigger().
| void SndFileInstrument::initialize | ( | string | path | ) | [protected] |
References CSL_FLOAT_TYPE, CSL_INT_TYPE, CSL_STRING_TYPE, testkiss::e, csl::kLogError, csl::logMsg(), csl::Instrument::mAccessors, mEnvelope, csl::Instrument::mGraph, csl::CException::mMessage, csl::Instrument::mName, csl::UnitGenerator::mNumChannels, mPanner, mPlayer, mRate, csl::Instrument::mUGens, set_amplitude_f, set_attack_f, set_decay_f, set_file_f, set_position_f, set_rate_f, set_start_f, set_stop_f, and csl::Scalable::setScale().
Referenced by SndFileInstrument().
| SoundFile csl::SndFileInstrument::mPlayer |
plugs playback rate (ignored for now)
Referenced by initialize(), playNote(), playOSC(), and setParameter().
start/stop sample indices
1.5.8