shorepine / amy

AMY - the Additive Music synthesizer librarY

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow AMY to write output to a file rather than a device.

octetta opened this issue · comments

This is more of a note for me to do for mad-scientist reasons.

Please nuke this if it's too far from the goals here and I'll fork off :).

Miniaudio has a simple WAV encoder that can be used inside its callbacks.

I've done light hacking on this, but as my WIP just starts writing at startup, I wind up with huge WAV files of mostly silence while hacking.

We could add a flag to stop writing audio after some max duration of silence? DAn.

Sorry for the random observation... actually not concerned about writing silence... just that my naive strategy of writing all the time might not be awesome.

My amy-message binary already intercepts strings starting with "?" for my own reasons. Maybe I could add a recording on/off global the callback can see that enables/disables WAV writing.

I owe y'all a PR for this.

Solved locally by making a copy of frames in the callback. Also, on ALSA/Jack there's an option for a "null" device. Between these two options, this request is irrelevant.