I’ll try to do a write up at some point, however with work and stuff I struggle to find the time these days. I’m simply using a timer to trigger the notes at the moment and the ADSR envelope is simply a case of feeding attack, decay and release with a time value in milliseconds and the sustain is a sustain gain amount within the range of 0-1. I’m setting the envelope at runtime on tick as the values get changed dynamically, however you could set it in the construction script or on create if you don’t plan on changing the values at all.
