The intent is for the adsr_live() parameters to range between zero and one, and likewise the output should be in that same range. To ensure that the output is in this range, even if exceedingly large parameters are passed in, I added a call to clamp01 to wrap the output value.
The intent is for the
adsr_live()
parameters to range between zero and one, and likewise the output should be in that same range. To ensure that the output is in this range, even if exceedingly large parameters are passed in, I added a call toclamp01
to wrap the output value.