Coding 2026-06-17
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:
- A scale notionally recognizes a distinct set of pitches per octave (or whatever)
- This means that, for example, every "twelve tone" scale will share the same abstract intervals
- A concrete scale then has to provide mappings between pitches in that scale, and the intervals that that scale supports.
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.