News for hackers. Stuff that matters.
Re:Show HN: Koelsynth – a simple FM synthesis library by tempodox on Sunday November 12, 2023 @02:33AM (#38238164)
Nice, I like simple projects like this.

However, Wikipedia has a better diagram and explanation of ADSR:

https://en.wikipedia.org/wiki/Envelope_(music)

Re:Show HN: Koelsynth – a simple FM synthesis library by graphitout on Sunday November 12, 2023 @07:10AM (#38239475)
You are right.

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.