Coding 2026-06-07
I didn't have time to think about code today, but I really want to, so I'm going to try to get something worked out in the next ten minutes (hard limit, of quarter till).
I've been having trouble settling on The Right Interface for constructing frequency segments, so maybe if I sketch out a usage example, I'll come up with something. Seven minutes remain.
Suppose I want a tone of A4 for a quarter-second, then smoothly ascend to C5 over the course of an eighth of a second, then stay at C5 for half a second. To do this, I need a class that contains any number of these "segment" classes that I've got stubs for; right now I'm assuming that it's the responsibility of the code constructing the instance to get things right, but one other piece of information that is required is when to switch between the different segments. This gives us a need for an alternating pattern of data which is a little awkward.
Time.
I'm going to properly wind down now.
Good night.