#ifndef ADSR_H #define ADSR_H typedef struct adsr_t { float a; float peak; float d; float s; float r; unsigned long long elapsed; } adsr_t; float adsr_amplitude(adsr_t *adsr, float noteOn, float noteOff, unsigned long long elapsed); #endif /* ADSR_H */