Closed kkaisershot closed 1 year ago
Please rebase onto master
and squash in the changes from branch macsnddrvrsynth+patches
, if you have no objections.
I also request that you add a README.md
that includes at least a copyright notice and grant of rights under an appropriate license.
Thanks for your contribution!
Thanks for the contribution! I've written a new tool, sndtrack
, that incorporates your square-wave and free-form synthesizer code. So while I'm not going to merge macsnddrvrsynth
, your audio-generating code is nonetheless now part of Advanced Mac Substitute: 1c794fd10bebc8868efe62a45a57838353dd47bd
More importantly, your submission contains two working examples of an audio callback, from which (though new to me) I was able to generalize and write the remaining (four-tone) synthesizer myself — so in bringing sound to Advanced Mac Substitute, your work has been instrumental.
Thanks again!
At long last, here it is. Square-wave and free-form synthesizers are fully implemented and working. Four-tone is not supported yet, pending a solution to pass updated waveform/rate data through the pipe interface.
Options: --in-fd: the file descriptor from which to read incoming commands (default: stdin) --out-fd: the file descriptor to which unsigned 8-bit output samples are written at 22256Hz (default: stdout) --stream: output zero samples when audio commands are not being processed (default: no, audio is synthesized only when data arrives on the input fd) --verbose: level of logging verbosity (default: 1 / warnings only)