The Tooba
 All Data Structures Namespaces Files Functions Variables Macros Pages
Public Member Functions | Private Attributes
ADSR Class Reference

#include <voice.h>

Public Member Functions

 ADSR ()
 
void setA (float a)
 
void setD (float d)
 
void setS (float s)
 
void setR (float r)
 
uint32_t state ()
 
uint32_t output ()
 
void keydown (uint32_t down)
 
void step (void)
 

Private Attributes

uint32_t _state
 
uint32_t _value
 
uint32_t attack
 
uint32_t decay
 
uint32_t sustain
 
uint32_t release
 
uint64_t gap
 

Detailed Description

Definition at line 12 of file voice.h.

Constructor & Destructor Documentation

ADSR::ADSR ( )
inline

Definition at line 18 of file voice.h.

Member Function Documentation

void ADSR::keydown ( uint32_t  down)
inline

Definition at line 45 of file voice.h.

Referenced by Voice::keydown().

Here is the caller graph for this function:

uint32_t ADSR::output ( )
inline

Definition at line 42 of file voice.h.

Referenced by Voice::output().

Here is the caller graph for this function:

void ADSR::setA ( float  a)
inline

Definition at line 21 of file voice.h.

Referenced by Voice::Voice().

Here is the caller graph for this function:

void ADSR::setD ( float  d)
inline

Definition at line 27 of file voice.h.

Referenced by Voice::Voice().

Here is the caller graph for this function:

void ADSR::setR ( float  r)
inline

Definition at line 34 of file voice.h.

Referenced by Voice::Voice().

Here is the caller graph for this function:

void ADSR::setS ( float  s)
inline

Definition at line 31 of file voice.h.

Referenced by Voice::Voice().

Here is the caller graph for this function:

uint32_t ADSR::state ( )
inline

Definition at line 39 of file voice.h.

void ADSR::step ( void  )
inline

Definition at line 52 of file voice.h.

Referenced by Voice::step().

Here is the caller graph for this function:

Field Documentation

uint32_t ADSR::_state
private

Definition at line 13 of file voice.h.

Referenced by state().

uint32_t ADSR::_value
private

Definition at line 13 of file voice.h.

Referenced by output(), and step().

uint32_t ADSR::attack
private

Definition at line 14 of file voice.h.

Referenced by step().

uint32_t ADSR::decay
private

Definition at line 14 of file voice.h.

Referenced by step().

uint64_t ADSR::gap
private

Definition at line 15 of file voice.h.

Referenced by step().

uint32_t ADSR::release
private

Definition at line 14 of file voice.h.

Referenced by step().

uint32_t ADSR::sustain
private

Definition at line 14 of file voice.h.

Referenced by step().


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