type t = {attack : float;decay : float;sustain : float;release : float;
}val percussive : attack:float -> decay:float -> tval level : t -> held:float -> float -> floatval duration : t -> held:float -> floattype curve = | Linear| Exponential
type stage = | Idle| Attack| Decay| Sustain| Release