csl::AR Class Reference

AR = 3-segment attack/release envelope class. More...

#include <Envelope.h>

Inheritance diagram for csl::AR:

csl::Envelope csl::UnitGenerator csl::Scalable csl::Model csl::Controllable

List of all members.

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.


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


Constructor & Destructor Documentation

csl::AR::AR (  )  [inline]

Various Constructors.

AR::AR ( LineMode  mode,
float  t,
float  a,
float  r 
)

Minimal version - AR.

~~~~~~~ Atack / Release Envelope ~~~~~~~~~~~

Minimal version - AR

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]


Member Function Documentation

void AR::setAttack ( float  attack  ) 

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.


The documentation for this class was generated from the following files:

Generated on Thu Sep 17 23:14:17 2009 for CSL by  doxygen 1.5.8