#include "synth/dsp/adsr.h"
void ADSR::assign(Envelope const * env) {
this->env = env;
}
void ADSR::noteOn() {
state = ATTACK;
t = 0;
void ADSR::noteOff() {
state = RELEASE;
t = 1;