Nice, I like simple projects like this.
However, Wikipedia has a better diagram and explanation of ADSR:
However, Wikipedia has a better diagram and explanation of ADSR:
I needed that image to explain the parameters in the ADSR configuration I used in the project. Mainly the slevel1 and slevel2 which captures the slow decay during sustain. Most ADSR diagrams show sustain as a constant which didn't really sound that natural when I tested for my projects.