Coding 2026-05-29
I ended up not needing to crack out the fancy profiling, because it turns out the problem I was hitting was an off-by-one error that presumably came from some sort of floating-point issue. I rewrote the relevant code to definitely avoid the issue, and now playback is clean.
So, now that the harness is working properly, I can work on features. I believe harmonic synthesis is easy, but ADSR is important for making the test playback sound nicer. I also want to at least have a sketch of stuff like pitch bending, because I anticipate that that could have issues if I'm not careful about the implementation. And also also I want to figure out how to handle multiple channels.
All of this is good stuff to mess with in the coming days, but right now I'm tired and I'm going to get to bed.
Good night.