Marsyas  0.5.0-beta1
Public Member Functions
ADSR Class Reference

Attack-Decay-Sustain-Release envelope. More...

#include <ADSR.h>

Inherits MarSystem.

Public Member Functions

 ADSR (std::string name)
MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
void myUpdate (MarControlPtr sender)
 Updates internal state due to a control change.
 ~ADSR ()

Detailed Description

Attack-Decay-Sustain-Release envelope.

Multiplies each sample of the input realvec with the value of the envelope at the corresponding time.

Definition at line 34 of file ADSR.h.


Constructor & Destructor Documentation

ADSR ( std::string  name)

Definition at line 26 of file ADSR.cpp.

~ADSR ( )

Definition at line 31 of file ADSR.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 36 of file ADSR.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 134 of file ADSR.cpp.

void myUpdate ( MarControlPtr  sender) [virtual]

Updates internal state due to a control change.

Parameters:
senderThe control that triggered the update; more precisely, any control passed to the update() method - could be an invalid one.

Implement this method in subclass to define specific response to control changes.

Reimplemented from MarSystem.

Definition at line 82 of file ADSR.cpp.


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