#include <synth.h>
Public Member Functions | |
| ADSR () | |
| void | setA (float a) |
| void | setD (float d) |
| void | setS (float s) |
| void | setR (float r) |
| uint32_t | state () |
| void | quiet (void) |
| int32_t | output () |
| void | keydown (void) |
| void | keyup (void) |
| void | step (void) |
Private Member Functions | |
| void | rare_step (void) |
Private Attributes | |
| uint32_t | _value |
| int32_t | dvalue |
| uint32_t | count |
| uint8_t | _state |
| float | attack |
| float | decay |
| float | sustain |
| float | release |
| void ADSR::keydown | ( | void | ) |
Definition at line 253 of file synth.cpp.
Referenced by SimpleVoice::keydown(), TwoSquaresVoice::keydown(), and NoisyVoice::keydown().

| void ADSR::keyup | ( | void | ) |
Definition at line 258 of file synth.cpp.
Referenced by SimpleVoice::keyup(), TwoSquaresVoice::keyup(), and NoisyVoice::keyup().

|
inline |
Definition at line 203 of file synth.h.
Referenced by SimpleVoice::output(), TwoSquaresVoice::output(), NoisyVoice::output(), and NoisyVoice::step().

|
inline |
Definition at line 198 of file synth.h.
Referenced by SimpleVoice::quiet(), TwoSquaresVoice::quiet(), and NoisyVoice::quiet().

|
private |
| void ADSR::setA | ( | float | a | ) |
Definition at line 237 of file synth.cpp.
Referenced by NoisyVoice::NoisyVoice(), SimpleVoice::SimpleVoice(), and TwoSquaresVoice::TwoSquaresVoice().

| void ADSR::setD | ( | float | d | ) |
Definition at line 241 of file synth.cpp.
Referenced by NoisyVoice::NoisyVoice(), SimpleVoice::SimpleVoice(), and TwoSquaresVoice::TwoSquaresVoice().

| void ADSR::setR | ( | float | r | ) |
Definition at line 249 of file synth.cpp.
Referenced by NoisyVoice::NoisyVoice(), SimpleVoice::SimpleVoice(), and TwoSquaresVoice::TwoSquaresVoice().

| void ADSR::setS | ( | float | s | ) |
Definition at line 245 of file synth.cpp.
Referenced by NoisyVoice::NoisyVoice(), SimpleVoice::SimpleVoice(), and TwoSquaresVoice::TwoSquaresVoice().

|
inline |
Definition at line 195 of file synth.h.
Referenced by SimpleVoice::idle(), TwoSquaresVoice::idle(), and NoisyVoice::idle().

| void ADSR::step | ( | void | ) |
Definition at line 262 of file synth.cpp.
Referenced by SimpleVoice::step(), TwoSquaresVoice::step(), and NoisyVoice::step().


|
private |
|
private |
|
private |
Definition at line 181 of file synth.h.
Referenced by rare_step(), and setA().
|
private |
|
private |
Definition at line 181 of file synth.h.
Referenced by rare_step(), and setD().
|
private |
|
private |
Definition at line 181 of file synth.h.
Referenced by rare_step(), and setR().
|
private |
Definition at line 181 of file synth.h.
Referenced by rare_step(), and setS().
1.8.6