Coding 2026-06-17

By Max Woerner Chase

Okay, let's see. I'm once again struggling with focus, so let's see if I can toss together something.

Well, the sound synthesis code... I want to put it in terms of pitches and intervals, which means I need to define interfaces for those. For pitches, we just want the class to provide a method for calculating a frequency, and for intervals, we want the class to provide a method for converting between pitches. Now, this gets messy because different kinds of pitch admit different intervals, and musically similar intervals don't act the same on different kinds of pitch. Like, a perfect fifth is different from a 12-EDO fifth is different from a 31-EDO fifth is different from an alpha-scale fifth.

Now, if I think about it, here's how the hierarchy breaks down:

I've got some potentially less sensible ideas to build on top of this, but I should probably leave it here and get ready for bed.

Good night.