3 #ifndef SPECTMORPH_ADSR_ENVELOPE_HH
4 #define SPECTMORPH_ADSR_ENVELOPE_HH
12 enum class State { ATTACK, DECAY, SUSTAIN, RELEASE, DONE };
14 State state = State::DONE;
31 size_t process_params (
size_t len,
float *values);
32 void compute_slope_params (
int len,
float start_x,
float end_x, State param_state);
34 void set_config (
float attack,
float decay,
float sustain,
float release,
float mix_freq);
38 void process (
size_t n_values,
float *values);
41 void test_decay (
int len,
float start_x,
float end_x);
Definition: smadsrenvelope.hh:11