I have to say, I am reticent to share my first pass of a
program ;p Right now note durations can also only be integer
multiples of the sampling frequency.
It's not usable in any way. When generating wavs, every
individual float returns control to lisp to do any and every
thing under the sun in special scope and send the value back
to C via a callback. (But wav files only get made once).
The reason I tried this slooooooow consy approach is that I
wanted run-time-redefined harmonics and windows and
arbitrary stateful functionality in lisp for every single
float in C.
Since I set up a sndiod system sound monitor recording
device before, I'm just making system calls to mpv to play
stuff (possibly concurrently). Ugh, horrible clicking noises
that my windows were meant to keep out. Listen, there are
lots of problems.
Using sndiod to make midi devices and using midish or
something instead seems more attractive than ever, but I
need to find out where this journey ends.
I'm going to skip posting it for others to look at yet
because it isn't very good. Here's a lousy mp3 that
accidentally cuts into the news though.