23#include "EnvelopeFollower.h"
86 void updateEnvelope();
ADSR envelope.
Definition ADSR.h:40
auto isActive() const -> bool
Returns true if the envelope is currently in a non-idle state.
Definition ADSR.cpp:27
void setSampleRate(double)
Set the sample rate in Hz.
Definition ADSR.cpp:103
auto getNextValue() -> double
Compute the envelope's next value.
Definition ADSR.cpp:32
void noteOn()
Start the envelope's attack phase.
Definition ADSR.cpp:85
void noteOff()
Trigger the envelope's release phase.
Definition ADSR.cpp:91
void reset()
Reset the envelope to its idle state.
Definition ADSR.cpp:97
void setParams(const Params &)
Set the envelope's parameters.
Definition ADSR.cpp:108
Smoothed value tracking with separate attack/decay times.
Definition EnvelopeFollower.h:44
Envelope parameters.
Definition ADSR.h:44
double attack
attack time in milliseconds
Definition ADSR.h:45
double sustain
sustain level in [0, 1]
Definition ADSR.h:47
double release
release time in milliseconds
Definition ADSR.h:48
double decay
decay time in milliseconds
Definition ADSR.h:46