Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound Emscripten Build

Date2014-04-18 00:58
FromSteven Yi
Subject[Cs-dev] Csound Emscripten Build
Hi All,

Just FYI, I've merged in changes into the develop branch to build
Csound for Emscripten.  It includes just a few modifications to
source/cmake files to handle building without pthreads.  (Note: Unless
building with emscripten, failing to find pthreads will still cause
CMake to fail).

If you have the emscripten sdk installed, all you will need to do is
define EMSCRIPTEN_ROOT to point to your active emscripten sdk folder.
For example, for me I have:

EMSCRIPTEN_ROOT=/Users/stevenyi/work/javascript/emsdk_portable/emscripten/1.13.0

After that, go into the csound6/emscripten folder.  There are two
scripts. The first downloads and builds libsndfile. The second builds
Csound. The result is a libcsound.js file in the build directory.
This file, plus src/CsoundObj.js make up the Csound for Emscripten
files necessary to run Csound in an HTML webpage.

At the moment, I'm able to run Ed's test pages with Firefox. However,
I'm getting some seriously loud noise as output.  So there's something
different between the build using the develop branch and what we had
used originally from our test repo.  It may be the case that I missed
something in reapplying changes to Csound, or it might be that I'm
using a newer emscripten sdk than I had originally, or even something
else. At least though the build files are now in the csound repository
for anyone to try out.

Thanks!
steven

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-18 09:41
FromEd Costello
SubjectRe: [Cs-dev] Csound Emscripten Build
AttachmentsNone  None  
Yes, I think there is a bug in main audio process code, therefore I wouldn't go near trying to make sound with it in it's current form if you like your ears.


On 18 April 2014 01:58, Steven Yi <stevenyi@gmail.com> wrote:
Hi All,

Just FYI, I've merged in changes into the develop branch to build
Csound for Emscripten.  It includes just a few modifications to
source/cmake files to handle building without pthreads.  (Note: Unless
building with emscripten, failing to find pthreads will still cause
CMake to fail).

If you have the emscripten sdk installed, all you will need to do is
define EMSCRIPTEN_ROOT to point to your active emscripten sdk folder.
For example, for me I have:

EMSCRIPTEN_ROOT=/Users/stevenyi/work/javascript/emsdk_portable/emscripten/1.13.0

After that, go into the csound6/emscripten folder.  There are two
scripts. The first downloads and builds libsndfile. The second builds
Csound. The result is a libcsound.js file in the build directory.
This file, plus src/CsoundObj.js make up the Csound for Emscripten
files necessary to run Csound in an HTML webpage.

At the moment, I'm able to run Ed's test pages with Firefox. However,
I'm getting some seriously loud noise as output.  So there's something
different between the build using the develop branch and what we had
used originally from our test repo.  It may be the case that I missed
something in reapplying changes to Csound, or it might be that I'm
using a newer emscripten sdk than I had originally, or even something
else. At least though the build files are now in the csound repository
for anyone to try out.

Thanks!
steven

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel