Hi Gary,

Currently soundfile support is done using the language « soundfile » primitive, 
that allows to load files at DSP init time, and process them in the code, see: 
https://faust.grame.fr/doc/manual/index.html#soundfile-primitive.

There is no « please save this buffer to a WAV file » support for now. This 
would require a bit of development at « architecture file level » that is , 
developing a piece of code to somewhat keep audio outputs and write them on 
disk on the fly. This is an additional code that does audio files read as a 
separated DSP object using Libsndfile here: 
https://github.com/grame-cncm/faust/blob/master-dev/architecture/faust/dsp/sound-player.h.
 This could serve an an example to start with.

Note that your requirement could be precised, discussing that on the Faust 
Slack channel 
here:https://join.slack.com/t/faustaudio/shared_invite/enQtNjQ2NDU1OTY4MjQ1LWRlMDY0OTc0ZmM3ZTc5ZjA4MTQzMTYxYzAzZmJiOTMwYzMxNjdiZjlkNTQxYTJiOWUxNzNlMzcyMGNhNDMyODY

Stéphane 

> Le 7 juin 2019 à 00:29, Gary Worsham <[email protected]> a écrit :
> 
> I'm thinking of implementing something like this, where it has a looper and 
> instruments and MIDI and an external input and you could build up some crazy 
> loops that way.  Well it would be a shame just to lose them every time you 
> wanted to start fresh, so I'm wondering if there's a way to say "please save 
> this buffer to a WAV file".
> 
> Thanks,
> 
> GW
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users



_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to