Hi all,

Some cleanup in the WebAudio related code and scripts have been done. 
Emscripten based compilation was broken and is now working again (BTW the 
latest 1.29 SDK version of Emscripten is much faster to compile code than 
previous versions…) 

On faust1 branch the following commands can be used:
===========================================

faust2webaudioasm foo.dsp ==> to produce a self contained HTML page with the 
Emscripten compiled asm.js module for the Faust produced DSP as a C++ class

faust2webaudioasm  -poly foo.dsp ==> to produce a self contained HTML page with 
the "polyphonic" Emscripten compiled asm.js module for the Faust produced DSP 
as a C++ class. 

"polyphony" is handled by additional wrapping code that allocates N voices 
(each one loaded with the Faust DSP), and manages voices allocation. Basic 
keyOn/keyOff MIDI commands are available. Note that for browser that do not 
natively support Web AMIID API, a fallback to use the Jazz MIDI plug-in 
(http://jazz-soft.net and http://cwilso.github.io/WebMIDIAPIShim/) is 
implemented.

To compile ready-to-use Web Audio JS/asm.js nodes: 
-------------------------------------------------------------------------

faust2asmjs foo.dsp  ==> will produce a self contained JS file with the 
Emscripten compiled asm.js module, and the necessary wrapping code to have a 
ready-to-use Web Audio node.

faust2asmjs -poly foo.dsp  ==> will produce a self contained JS file with the 
Emscripten compiled asm.js module, "polyphonic" code, and the necessary 
wrapping code to have a ready-to-use Web Audio node.


Faust2 has the "asm.js" backend that allows to possible avoid the use of 
Emscripten.

On faust2 branch the following commands can be used:
===========================================

faust2webaudioasm -emcc foo.dsp ==> to produce a self contained HTML page with 
the Emscripten compiled asm.js module for the Faust produced DSP as a C++ class

faust2webaudioasm  foo.dsp ==> to produce a self contained HTML page with the 
asm.js module, compiled with the internal asm.js backend.


faust2webaudioasm -emcc -poly foo.dsp ==> to produce a self contained HTML page 
Emscripten compiled asm.js module and "polyphonic" code for the Faust produced 
DSP as a C++ class

faust2webaudioasm  foo.dsp -poly ==> to produce a self contained HTML page  
with the asm.js module and "polyphonic" code, compiled with the internal asm.js 
backend.


To compile ready-to-use Web Audio JS/asm.js nodes:
-------------------------------------------------------------------------

faust2asmjs -emcc foo.dsp  ==> will produce a self contained JS file  with the 
Emscripten compiled asm.js  and the necessary wrapping code to have a 
ready-to-use Web Audio node.

faust2asmjs  foo.dsp  ==> will produce a self contained JS file  with asm.js 
module compiled with the internal asm.js backend, and the necessary wrapping 
code to have a ready-to-use Web Audio node.


faust2asmjs -emcc -poly foo.dsp  ==> will produce a self contained JS file with 
the Emscripten compiled asm.js module, "polyphonic" code, and the necessary 
wrapping code to have a ready-to-use Web Audio node.

faust2asmjs  -poly foo.dsp  ==> will produce a self contained JS file  with 
asm.js module compiled with the internal asm.js backend, "polyphonic" code, and 
the necessary wrapping code to have a ready-to-use Web Audio node.


Feel free to test and report.

Stéphane
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to