Coding 2026-05-30

Tags:
By Max Woerner Chase

Okay, I once again let things get away from me. Let's sketch out how ADSR is going to have to work with my design.

My current setup is focused around "sounds", which can either have a specified duration, or can be playing indefinitely until something changes. ADSR requires a relatively simple formula for a sound envelope, which is applied to an underlying sound. I feel like it would be easy to create the ADSR sound as a function of a "regular" sound, in which the "R" section of the new sound starts when the original sound is set to end. In other words, if the original sound ends at time t, then the processed sound ends at time t + R.

...

I'm most of the way to getting the basics coded, I just need to do some basic algebra that I don't feel like doing right now. I should stand up and get ready for bed now.

Good night.