#include <Envelope.h>

Public Member Functions | |
| AR () | |
| Various Constructors. | |
| AR (LineMode mode, float t, float a, float r) | |
| Minimal version - AR. | |
| AR (LineMode mode, float t, float i, float a, float r) | |
| with initial delay - IAR | |
| AR (float t, float a, float r) | |
| Minimal version - AR. | |
| AR (float t, float i, float a, float r) | |
| with initial delay - IAR | |
| ~AR () | |
| void | setAttack (float attack) |
| Special accessors. | |
| void | setRelease (float release) |
| void | setAll (float d, float a, float r) |
| void | release (void) |
| Operations. | |
Most of this is inherited from Envelope. This design is an extended AR envelope with an initial constant segment and offset (default = 0; this can be used to make an attack delay as on ARP ARs), attack time and max. val (default = 1.0), and release time and final value (default = 0.0). All times are assumed to be given in seconds. Note that there are many variations on the constructor. The line segments used internally look something like the following
| | /--------------- . | / \ . |---/ \ . | \----- . ------------------------------------
Note that, internally, the breakpoints are kept with cumulative times, whereas the line segments only have start/stop Y values and durations (i.e., no absolute time reference).
| csl::AR::AR | ( | ) | [inline] |
Various Constructors.
| AR::AR | ( | LineMode | mode, | |
| float | t, | |||
| float | a, | |||
| float | r | |||
| ) |
| AR::AR | ( | LineMode | mode, | |
| float | t, | |||
| float | i, | |||
| float | a, | |||
| float | r | |||
| ) |
with initial delay - IAR
with initial delay - I-AR
| AR::AR | ( | float | t, | |
| float | a, | |||
| float | r | |||
| ) |
Minimal version - AR.
| AR::AR | ( | float | t, | |
| float | i, | |||
| float | a, | |||
| float | r | |||
| ) |
with initial delay - IAR
with initial delay - I-AR
| csl::AR::~AR | ( | ) | [inline] |
| void AR::setAttack | ( | float | attack | ) |
Special accessors.
Operations.
References csl::Envelope::calculateSegments(), csl::Envelope::mSegmentMap, and csl::Envelope::mValues.
Referenced by csl::SndFileInstrument::playNote(), csl::SndFileInstrument::playOSC(), and csl::SndFileInstrument::setParameter().
| void AR::setRelease | ( | float | release | ) |
| void AR::setAll | ( | float | d, | |
| float | a, | |||
| float | r | |||
| ) |
| void AR::release | ( | void | ) |
Operations.
trigger the release segment
trigger the release segment
References csl::Envelope::mCurrentMark, and csl::Envelope::mValues.
1.5.8