22 if ( t < decay_start )
26 if ( t < decay_start +
decay() )
28 return 1 - ( t - decay_start ) /
decay();
double attack() const noexcept
Definition: envelope.hpp:38
double decay() const noexcept
Definition: envelope.hpp:58
#define SEQUENCER_ASSERT(cond)
Definition: assert.hpp:8
void set_decay(double decay) noexcept
Definition: envelope.hpp:53
Definition: envelope.hpp:11
void set_sustain(double sustain) noexcept
Definition: envelope.hpp:43
void set_attack(double attack) noexcept
Definition: envelope.hpp:33
double operator()(double t) const noexcept
Definition: envelope.hpp:14
double sustain() const noexcept
Definition: envelope.hpp:48