csl::AR Class Reference

#include <Envelope.h>

Inheritance diagram for csl::AR:

csl::Envelope csl::UnitGenerator csl::Scalable List of all members.

Detailed Description

AR = 3-segment attack/release envelope class.

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).


Public Member Functions

 AR ()
 Various Constructors.
 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 trigger the release segment.


Constructor & Destructor Documentation

csl::AR::AR  )  [inline]
 

Various Constructors.

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

csl::AR::~AR  )  [inline]
 


Member Function Documentation

void AR::setAttack float  attack  ) 
 

Special accessors.

void AR::setRelease float  release  ) 
 

void AR::setAll float  d,
float  a,
float  r
 

void AR::release void   ) 
 

Operations trigger the release segment.


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:20 2007 for CSL by  doxygen 1.4.5-20051010