Bonjour Stéphane.
The missing files are now installed.
There's a new error, only when I use the -emcc option:
$ faust2webaudioasm -emcc noise.dsp
Compiled with 'emcc'
aborting from js compiler due to exception: unknown vector type <4 x
i8> | undefined aborting from js compiler due to exception: unknown
i8> vector type <4 x i8> | undefined
aborting from js compiler due to exception: unknown vector type <4 x
i8> | undefined Traceback (most recent call last):
File "/usr/share/emscripten/emscripten.py", line 1352, in <module>
_main(environ=os.environ)
File "/usr/share/emscripten/emscripten.py", line 1340, in _main
temp_files.run_and_clean(lambda: main(
File "/usr/share/emscripten/tools/tempfiles.py", line 39, in
run_and_clean return func()
File "/usr/share/emscripten/emscripten.py", line 1348, in <lambda>
DEBUG_CACHE=DEBUG_CACHE,
File "/usr/share/emscripten/emscripten.py", line 1235, in main
jcache=jcache, temp_files=temp_files, DEBUG=DEBUG,
DEBUG_CACHE=DEBUG_CACHE) File "/usr/share/emscripten/emscripten.py",
line 292, in emscript assert len(output) == 2, 'Did not receive
forwarded data in an output - process failed? We only got: ' +
output[0][-3000:] AssertionError: Did not receive forwarded data in an
output - process failed? We only got: _pre_phi_i=$88; }
I installed emscripten 1.10 from a Ubuntu repository;
should I try to install emscripten from scratch?
A related question, probably documented somewhere:
What's the use of the -emcc option? Is it for optimization?
Is it "better" than the internal asm.js backend?
Thanks
--
Marc
On Sat, 4 Apr 2015 10:25:39 +0200, Stéphane Letz wrote:
> Hi Marc, do:
>
> make clean
> make httpd
> sudo make install
> and try again
>
> Stéphane
>
> Le 4 avr. 2015 à 02:09, Marc Lavallée <[email protected]> a écrit :
>
> > Hi Stéphane.
> >
> > I tried to compile a simple dsp file for the WebAudio API, using
> > faust2 (latest git version). It looks like some javascript files
> > are missing. Here's the error:
> >
> > $ faust2webaudioasm noise.dsp
> > Compiled with 'asm.js' backend
> > cat: /usr/local/lib/faust/js/stylesheet.js: No such file or
> > directory cat: /usr/local/lib/faust/js/jsscripts.js: No such file
> > or directory
> >
> > --
> > Marc
> >
> >
> > On Thu, 29 Jan 2015 12:14:34 +0100, Stéphane Letz wrote:
> >> 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
>
------------------------------------------------------------------------------
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