Hi Laurent,

I've done a good bit of work with Faust in WebAudio.  In between the time I
started my project which makes use of it and now, some other people have
done what looks like extensive work in developing the Faust WebAudio scene;
all of their code is in the main Github repository:
https://github.com/grame-cncm/faust/tree/master-dev/architecture/webaudio

There is code for using `AudioWorkletNode`, working with polyphonic MIDI
signals (although I don't know if that means it works WebMIDI or some
manual/custom implementation), and it seems to automatically generate the
wrapper JavaScript code for it as well.  There are even what look to be
pretty complete and detailed docs about how to compile Faust to Wasm from
scratch in various different configurations.

I created my own end-to-end Faust to Wasm toolchain as a part of my web
audio experiment <https://github.com/ameobea/web-synth> project.  It
features a server
<https://github.com/Ameobea/web-synth/blob/master/faust-compiler/main.go>
to dynamically compile Faust code to Wasm, generate `AudioWorkletNode` code
with an automatically created `parameterDescriptors()` static getter
allowing all of the Faust parameters to be modulated as part of a normal
WebAudio graph.  It also automatically generates a connected UI using the `
react-control-panel <https://www.npmjs.com/package/react-control-panel>`
library.

----

That all being said, there's a surprisingly large amount of support out
there for compiling Faust to Wasm and doing non-trivial things with it.  I
suggest you start with that subdirectory of the official Faust Github repo
I linked; everything I've done is very much custom and specific to my
use-case.  If you had a specific goal in mind that you wanted to accomplish
using Faust + Wasm, I'd be happy to chat about it as well.

I hope that helped answer what you were looking for!

On Tue, Feb 25, 2020 at 2:34 PM Laurent Di Biase <[email protected]>
wrote:

> Hi all,
>
> Newer faust user, please some questions about Faust and compatibility with
> web development. Not a new subject but somebody could to provide some
> advise to me about the recent implementation methods of faust code in
> javascript and nodejs ? Are there recent publications on the subject and
> the WebAudio API ? For exemple is it possible to use the AudioWorlet
> interface and how ?
>
> Thanks a lot,
>
> regards
>
> Laurent Di Biase
>
> Artiste sonore
>
> Chercheur doctorant
>
> EA-1572 Musidanse-CICM EDESTA Paris 8
>
> site web: http://laurentdibiase.free.fr
> <http://laurentdibiase.free.fr/Welcome.html>
>
> _______________________________________________
> 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