Csound Csound-dev Csound-tekno Search About

Web-based Csound, updates, future directions

Date2017-06-07 22:24
FromVictor Lazzarini
SubjectWeb-based Csound, updates, future directions
The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
stop producing pnacl packages at some point. It’s a shame because the technology is good and it
supports better performance.

The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
produced a build script for us). It uses the same model as js csound and very similar infrastructure,
so it’s a drop-in replacement for it.

I have tested the builds with trapped and the performance is as follows:

1. benchmark (native): 2.9s
2. PNaCl: 3.6s
3. JS: 13s
4. WASM: 6.4s

So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
either as it depends on Web Audio, which is still pretty awful.

As with many technologies in the past, the superior version (PNaCl) was not the one to be
adopted generally.

Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-07 22:58
FromPeter Burgess
SubjectRe: Web-based Csound, updates, future directions
Thanks for the update! I've been considering Web based Csound again, though I never got my head round pnacl... So you can akready use Csound with java script? My Web application isn't real time, so that might be a good easy way for me to realise my plans

On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
stop producing pnacl packages at some point. It’s a shame because the technology is good and it
supports better performance.

The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
produced a build script for us). It uses the same model as js csound and very similar infrastructure,
so it’s a drop-in replacement for it.

I have tested the builds with trapped and the performance is as follows:

1. benchmark (native): 2.9s
2. PNaCl: 3.6s
3. JS: 13s
4. WASM: 6.4s

So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
either as it depends on Web Audio, which is still pretty awful.

As with many technologies in the past, the superior version (PNaCl) was not the one to be
adopted generally.

Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-07 23:12
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
A javascript Csound has existed since 2013, compiled with emscripten. Now a web assembly version is possible as well.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM> wrote:

Thanks for the update! I've been considering Web based Csound again, though I never got my head round pnacl... So you can akready use Csound with java script? My Web application isn't real time, so that might be a good easy way for me to realise my plans

On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
stop producing pnacl packages at some point. It’s a shame because the technology is good and it
supports better performance.

The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
produced a build script for us). It uses the same model as js csound and very similar infrastructure,
so it’s a drop-in replacement for it.

I have tested the builds with trapped and the performance is as follows:

1. benchmark (native): 2.9s
2. PNaCl: 3.6s
3. JS: 13s
4. WASM: 6.4s

So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
either as it depends on Web Audio, which is still pretty awful.

As with many technologies in the past, the superior version (PNaCl) was not the one to be
adopted generally.

Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-08 18:56
FromPeter Burgess
SubjectRe: Web-based Csound, updates, future directions
Awesome! I can't remember when I started Csound now, probably around 2013, but I didn't know any javascript until recently, so I probably never took notice of it. Regardless, I'll check out both

On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
A javascript Csound has existed since 2013, compiled with emscripten. Now a web assembly version is possible as well.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM> wrote:

Thanks for the update! I've been considering Web based Csound again, though I never got my head round pnacl... So you can akready use Csound with java script? My Web application isn't real time, so that might be a good easy way for me to realise my plans

On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
stop producing pnacl packages at some point. It’s a shame because the technology is good and it
supports better performance.

The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
produced a build script for us). It uses the same model as js csound and very similar infrastructure,
so it’s a drop-in replacement for it.

I have tested the builds with trapped and the performance is as follows:

1. benchmark (native): 2.9s
2. PNaCl: 3.6s
3. JS: 13s
4. WASM: 6.4s

So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
either as it depends on Web Audio, which is still pretty awful.

As with many technologies in the past, the superior version (PNaCl) was not the one to be
adopted generally.

Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-08 21:22
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
I’ve put up a simple example at

https://csound.github.io/wasm

tested on the latest chrome (59), but I believe it will run on firefox 52 as well.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Jun 2017, at 18:56, Peter Burgess  wrote:
> 
> Awesome! I can't remember when I started Csound now, probably around 2013, but I didn't know any javascript until recently, so I probably never took notice of it. Regardless, I'll check out both
> 
> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini"  wrote:
> A javascript Csound has existed since 2013, compiled with emscripten. Now a web assembly version is possible as well.
> 
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 7 Jun 2017, at 22:59, Peter Burgess  wrote:
> 
>> Thanks for the update! I've been considering Web based Csound again, though I never got my head round pnacl... So you can akready use Csound with java script? My Web application isn't real time, so that might be a good easy way for me to realise my plans
>> 
>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini"  wrote:
>> The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
>> stop producing pnacl packages at some point. It’s a shame because the technology is good and it
>> supports better performance.
>> 
>> The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
>> produced a build script for us). It uses the same model as js csound and very similar infrastructure,
>> so it’s a drop-in replacement for it.
>> 
>> I have tested the builds with trapped and the performance is as follows:
>> 
>> 1. benchmark (native): 2.9s
>> 2. PNaCl: 3.6s
>> 3. JS: 13s
>> 4. WASM: 6.4s
>> 
>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
>> either as it depends on Web Audio, which is still pretty awful.
>> 
>> As with many technologies in the past, the superior version (PNaCl) was not the one to be
>> adopted generally.
>> 
>> Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-08 21:28
FromHlöðver Sigurðsson
SubjectRe: Web-based Csound, updates, future directions
Kudos kudos!

Bravissimo

2017-06-08 22:22 GMT+02:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
I’ve put up a simple example at

https://csound.github.io/wasm

tested on the latest chrome (59), but I believe it will run on firefox 52 as well.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com> wrote:
>
> Awesome! I can't remember when I started Csound now, probably around 2013, but I didn't know any javascript until recently, so I probably never took notice of it. Regardless, I'll check out both
>
> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
> A javascript Csound has existed since 2013, compiled with emscripten. Now a web assembly version is possible as well.
>
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM> wrote:
>
>> Thanks for the update! I've been considering Web based Csound again, though I never got my head round pnacl... So you can akready use Csound with java script? My Web application isn't real time, so that might be a good easy way for me to realise my plans
>>
>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
>> The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
>> stop producing pnacl packages at some point. It’s a shame because the technology is good and it
>> supports better performance.
>>
>> The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
>> produced a build script for us). It uses the same model as js csound and very similar infrastructure,
>> so it’s a drop-in replacement for it.
>>
>> I have tested the builds with trapped and the performance is as follows:
>>
>> 1. benchmark (native): 2.9s
>> 2. PNaCl: 3.6s
>> 3. JS: 13s
>> 4. WASM: 6.4s
>>
>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
>> either as it depends on Web Audio, which is still pretty awful.
>>
>> As with many technologies in the past, the superior version (PNaCl) was not the one to be
>> adopted generally.
>>
>> Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-08 21:34
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
Thanks have to go to Hfmanson who got us there in no time. 
Further refinement to come.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Jun 2017, at 21:28, Hlöðver Sigurðsson  wrote:
> 
> Kudos kudos!
> 
> Bravissimo
> 
> 2017-06-08 22:22 GMT+02:00 Victor Lazzarini :
> I’ve put up a simple example at
> 
> https://csound.github.io/wasm
> 
> tested on the latest chrome (59), but I believe it will run on firefox 52 as well.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> > On 8 Jun 2017, at 18:56, Peter Burgess  wrote:
> >
> > Awesome! I can't remember when I started Csound now, probably around 2013, but I didn't know any javascript until recently, so I probably never took notice of it. Regardless, I'll check out both
> >
> > On 7 Jun 2017 11:12 p.m., "Victor Lazzarini"  wrote:
> > A javascript Csound has existed since 2013, compiled with emscripten. Now a web assembly version is possible as well.
> >
> >
> > Victor Lazzarini
> > Dean of Arts, Celtic Studies, and Philosophy
> > Maynooth University
> > Ireland
> >
> > On 7 Jun 2017, at 22:59, Peter Burgess  wrote:
> >
> >> Thanks for the update! I've been considering Web based Csound again, though I never got my head round pnacl... So you can akready use Csound with java script? My Web application isn't real time, so that might be a good easy way for me to realise my plans
> >>
> >> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini"  wrote:
> >> The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
> >> stop producing pnacl packages at some point. It’s a shame because the technology is good and it
> >> supports better performance.
> >>
> >> The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
> >> produced a build script for us). It uses the same model as js csound and very similar infrastructure,
> >> so it’s a drop-in replacement for it.
> >>
> >> I have tested the builds with trapped and the performance is as follows:
> >>
> >> 1. benchmark (native): 2.9s
> >> 2. PNaCl: 3.6s
> >> 3. JS: 13s
> >> 4. WASM: 6.4s
> >>
> >> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
> >> either as it depends on Web Audio, which is still pretty awful.
> >>
> >> As with many technologies in the past, the superior version (PNaCl) was not the one to be
> >> adopted generally.
> >>
> >> Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
> >> ========================
> >> Prof. Victor Lazzarini
> >> Dean of Arts, Celtic Studies, and Philosophy,
> >> Maynooth University,
> >> Maynooth, Co Kildare, Ireland
> >> Tel: 00 353 7086936
> >> Fax: 00 353 1 7086952
> >>
> >>
> >> Csound mailing list
> >> Csound@listserv.heanet.ie
> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> >> Send bugs reports to
> >>         https://github.com/csound/csound/issues
> >> Discussions of bugs and features can be posted here
> >> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> >
> > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-08 21:37
FromMichael Gogins
SubjectRe: Web-based Csound, updates, future directions
Works for me, Chrome 58.0.3029.110 (64-bit) on Ubuntu 16.04. As I said
before, great! What I want to do now is:

(1) Get the toolchain set up so I can build this and contribute to this.

(2) Ensure that the Csound API used by csound.node also works in
Csound for WASM.

(3) Port some additional goodies into Csound for WASM.

It's too bad about PNaCl, which worked just great, but it is what it
is. But csound.node definitely runs at native speed because it is
native.

Thanks,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Jun 8, 2017 at 4:28 PM, Hlöðver Sigurðsson  wrote:
> Kudos kudos!
>
> Bravissimo
>
> 2017-06-08 22:22 GMT+02:00 Victor Lazzarini :
>>
>> I’ve put up a simple example at
>>
>> https://csound.github.io/wasm
>>
>> tested on the latest chrome (59), but I believe it will run on firefox 52
>> as well.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>> > On 8 Jun 2017, at 18:56, Peter Burgess 
>> > wrote:
>> >
>> > Awesome! I can't remember when I started Csound now, probably around
>> > 2013, but I didn't know any javascript until recently, so I probably never
>> > took notice of it. Regardless, I'll check out both
>> >
>> > On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>> > wrote:
>> > A javascript Csound has existed since 2013, compiled with emscripten.
>> > Now a web assembly version is possible as well.
>> >
>> >
>> > Victor Lazzarini
>> > Dean of Arts, Celtic Studies, and Philosophy
>> > Maynooth University
>> > Ireland
>> >
>> > On 7 Jun 2017, at 22:59, Peter Burgess 
>> > wrote:
>> >
>> >> Thanks for the update! I've been considering Web based Csound again,
>> >> though I never got my head round pnacl... So you can akready use Csound with
>> >> java script? My Web application isn't real time, so that might be a good
>> >> easy way for me to realise my plans
>> >>
>> >> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>> >> wrote:
>> >> The bad news: Google decided to kill PNaCl, and from 2018 it will be
>> >> dropped from its browsers. So, we’ll
>> >> stop producing pnacl packages at some point. It’s a shame because the
>> >> technology is good and it
>> >> supports better performance.
>> >>
>> >> The good news: a web-assembly (WASM) build of Csound has been developed
>> >> (thanks to hfmanson who
>> >> produced a build script for us). It uses the same model as js csound
>> >> and very similar infrastructure,
>> >> so it’s a drop-in replacement for it.
>> >>
>> >> I have tested the builds with trapped and the performance is as
>> >> follows:
>> >>
>> >> 1. benchmark (native): 2.9s
>> >> 2. PNaCl: 3.6s
>> >> 3. JS: 13s
>> >> 4. WASM: 6.4s
>> >>
>> >> So it’s not as good pnacl, but it’s twice as fast as the JS version.
>> >> It’s not as good for RT audio
>> >> either as it depends on Web Audio, which is still pretty awful.
>> >>
>> >> As with many technologies in the past, the superior version (PNaCl) was
>> >> not the one to be
>> >> adopted generally.
>> >>
>> >> Anyway, at least we have a way of ensuring the continuation of
>> >> Web-based Csound.
>> >> ========================
>> >> Prof. Victor Lazzarini
>> >> Dean of Arts, Celtic Studies, and Philosophy,
>> >> Maynooth University,
>> >> Maynooth, Co Kildare, Ireland
>> >> Tel: 00 353 7086936
>> >> Fax: 00 353 1 7086952
>> >>
>> >>
>> >> Csound mailing list
>> >> Csound@listserv.heanet.ie
>> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> >> Send bugs reports to
>> >>         https://github.com/csound/csound/issues
>> >> Discussions of bugs and features can be posted here
>> >> Csound mailing list Csound@listserv.heanet.ie
>> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> >> https://github.com/csound/csound/issues Discussions of bugs and features can
>> >> be posted here
>> > Csound mailing list Csound@listserv.heanet.ie
>> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> > https://github.com/csound/csound/issues Discussions of bugs and features can
>> > be posted here
>> >
>> > Csound mailing list Csound@listserv.heanet.ie
>> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> > https://github.com/csound/csound/issues Discussions of bugs and features can
>> > be posted here
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-08 21:37
FromMichael Gogins
SubjectRe: Web-based Csound, updates, future directions
Yes indeed, thanks to Hfmanson.

Best,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Jun 8, 2017 at 4:34 PM, Victor Lazzarini
 wrote:
> Thanks have to go to Hfmanson who got us there in no time.
> Further refinement to come.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 8 Jun 2017, at 21:28, Hlöðver Sigurðsson  wrote:
>>
>> Kudos kudos!
>>
>> Bravissimo
>>
>> 2017-06-08 22:22 GMT+02:00 Victor Lazzarini :
>> I’ve put up a simple example at
>>
>> https://csound.github.io/wasm
>>
>> tested on the latest chrome (59), but I believe it will run on firefox 52 as well.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>> > On 8 Jun 2017, at 18:56, Peter Burgess  wrote:
>> >
>> > Awesome! I can't remember when I started Csound now, probably around 2013, but I didn't know any javascript until recently, so I probably never took notice of it. Regardless, I'll check out both
>> >
>> > On 7 Jun 2017 11:12 p.m., "Victor Lazzarini"  wrote:
>> > A javascript Csound has existed since 2013, compiled with emscripten. Now a web assembly version is possible as well.
>> >
>> >
>> > Victor Lazzarini
>> > Dean of Arts, Celtic Studies, and Philosophy
>> > Maynooth University
>> > Ireland
>> >
>> > On 7 Jun 2017, at 22:59, Peter Burgess  wrote:
>> >
>> >> Thanks for the update! I've been considering Web based Csound again, though I never got my head round pnacl... So you can akready use Csound with java script? My Web application isn't real time, so that might be a good easy way for me to realise my plans
>> >>
>> >> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini"  wrote:
>> >> The bad news: Google decided to kill PNaCl, and from 2018 it will be dropped from its browsers. So, we’ll
>> >> stop producing pnacl packages at some point. It’s a shame because the technology is good and it
>> >> supports better performance.
>> >>
>> >> The good news: a web-assembly (WASM) build of Csound has been developed (thanks to hfmanson who
>> >> produced a build script for us). It uses the same model as js csound and very similar infrastructure,
>> >> so it’s a drop-in replacement for it.
>> >>
>> >> I have tested the builds with trapped and the performance is as follows:
>> >>
>> >> 1. benchmark (native): 2.9s
>> >> 2. PNaCl: 3.6s
>> >> 3. JS: 13s
>> >> 4. WASM: 6.4s
>> >>
>> >> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s not as good for RT audio
>> >> either as it depends on Web Audio, which is still pretty awful.
>> >>
>> >> As with many technologies in the past, the superior version (PNaCl) was not the one to be
>> >> adopted generally.
>> >>
>> >> Anyway, at least we have a way of ensuring the continuation of Web-based Csound.
>> >> ========================
>> >> Prof. Victor Lazzarini
>> >> Dean of Arts, Celtic Studies, and Philosophy,
>> >> Maynooth University,
>> >> Maynooth, Co Kildare, Ireland
>> >> Tel: 00 353 7086936
>> >> Fax: 00 353 1 7086952
>> >>
>> >>
>> >> Csound mailing list
>> >> Csound@listserv.heanet.ie
>> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> >> Send bugs reports to
>> >>         https://github.com/csound/csound/issues
>> >> Discussions of bugs and features can be posted here
>> >> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> >
>> > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-08 21:46
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
For (1) it’s very simple, just the latest Emscripten, but make sure all the installation instructions
are followed up. To build it, the scripts in the csound repo should work for unix shells, but you
should be able to adapt them for Windows. The README.md lists the order in which things
should be done.

The example in example-wasm works partially (I can’t get the MIDI example to work but have
not investigated). However, I find it too complicated and full of extras, so I am starting to build a collection of
simpler single-file scripts to test and give a more graduated introduction to this code. The
first one is the one I put up. This should help you with (2).

Shame we’re too late for this year's WAC. It would have been good to show Csound off a little.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Jun 2017, at 21:37, Michael Gogins  wrote:
> 
> Works for me, Chrome 58.0.3029.110 (64-bit) on Ubuntu 16.04. As I said
> before, great! What I want to do now is:
> 
> (1) Get the toolchain set up so I can build this and contribute to this.
> 
> (2) Ensure that the Csound API used by csound.node also works in
> Csound for WASM.
> 
> (3) Port some additional goodies into Csound for WASM.
> 
> It's too bad about PNaCl, which worked just great, but it is what it
> is. But csound.node definitely runs at native speed because it is
> native.
> 
> Thanks,
> Mike
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Thu, Jun 8, 2017 at 4:28 PM, Hlöðver Sigurðsson  wrote:
>> Kudos kudos!
>> 
>> Bravissimo
>> 
>> 2017-06-08 22:22 GMT+02:00 Victor Lazzarini :
>>> 
>>> I’ve put up a simple example at
>>> 
>>> https://csound.github.io/wasm
>>> 
>>> tested on the latest chrome (59), but I believe it will run on firefox 52
>>> as well.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>> wrote:
>>>> 
>>>> Awesome! I can't remember when I started Csound now, probably around
>>>> 2013, but I didn't know any javascript until recently, so I probably never
>>>> took notice of it. Regardless, I'll check out both
>>>> 
>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>> wrote:
>>>> A javascript Csound has existed since 2013, compiled with emscripten.
>>>> Now a web assembly version is possible as well.
>>>> 
>>>> 
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>> wrote:
>>>> 
>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>> though I never got my head round pnacl... So you can akready use Csound with
>>>>> java script? My Web application isn't real time, so that might be a good
>>>>> easy way for me to realise my plans
>>>>> 
>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>> wrote:
>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it will be
>>>>> dropped from its browsers. So, we’ll
>>>>> stop producing pnacl packages at some point. It’s a shame because the
>>>>> technology is good and it
>>>>> supports better performance.
>>>>> 
>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>> (thanks to hfmanson who
>>>>> produced a build script for us). It uses the same model as js csound
>>>>> and very similar infrastructure,
>>>>> so it’s a drop-in replacement for it.
>>>>> 
>>>>> I have tested the builds with trapped and the performance is as
>>>>> follows:
>>>>> 
>>>>> 1. benchmark (native): 2.9s
>>>>> 2. PNaCl: 3.6s
>>>>> 3. JS: 13s
>>>>> 4. WASM: 6.4s
>>>>> 
>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version.
>>>>> It’s not as good for RT audio
>>>>> either as it depends on Web Audio, which is still pretty awful.
>>>>> 
>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>> not the one to be
>>>>> adopted generally.
>>>>> 
>>>>> Anyway, at least we have a way of ensuring the continuation of
>>>>> Web-based Csound.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> 
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> 
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-08 21:57
FromTarmo Johannes
SubjectRe: Web-based Csound, updates, future directions
Hi,

I probably need an update of the browsers,

Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken 
with later versions) and Chrome 55 

both stop at state "loading... " on the screen an javascript console reports:

uncaught exception: no binaryen method succeeded. consider enabling more 
options, like interpreting, if you want that: https://github.com/kripken/
emscripten/wiki/WebAssembly#binaryen-methods

Jut to let know, this is not a problem, I need to update.

Thank you!

tarmo


On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
> I’ve put up a simple example at
> 
> https://csound.github.io/wasm
> 
> tested on the latest chrome (59), but I believe it will run on firefox 52 as
> well.
 ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
> 
> > On 8 Jun 2017, at 18:56, Peter Burgess 
> > wrote:
 
> > Awesome! I can't remember when I started Csound now, probably around 2013,
> > but I didn't know any javascript until recently, so I probably never took
> > notice of it. Regardless, I'll check out both
 
> > On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
> > wrote:
 A javascript Csound has existed since 2013, compiled with
> > emscripten. Now a web assembly version is possible as well. 
> > 
> > Victor Lazzarini
> > Dean of Arts, Celtic Studies, and Philosophy
> > Maynooth University
> > Ireland
> > 
> > On 7 Jun 2017, at 22:59, Peter Burgess 
> > wrote:
 
> > 
> >> Thanks for the update! I've been considering Web based Csound again,
> >> though I never got my head round pnacl... So you can akready use Csound
> >> with java script? My Web application isn't real time, so that might be a
> >> good easy way for me to realise my plans
 
> >> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
> >> wrote:
 The bad news: Google decided to kill PNaCl, and from 2018 it
> >> will be dropped from its browsers. So, we’ll stop producing pnacl
> >> packages at some point. It’s a shame because the technology is good and
> >> it supports better performance.
> >> 
> >> The good news: a web-assembly (WASM) build of Csound has been developed
> >> (thanks to hfmanson who
 produced a build script for us). It uses the
> >> same model as js csound and very similar infrastructure, so it’s a
> >> drop-in replacement for it.
> >> 
> >> I have tested the builds with trapped and the performance is as follows:
> >> 
> >> 1. benchmark (native): 2.9s
> >> 2. PNaCl: 3.6s
> >> 3. JS: 13s
> >> 4. WASM: 6.4s
> >> 
> >> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
> >> not as good for RT audio
 either as it depends on Web Audio, which is
> >> still pretty awful.
> >> 
> >> As with many technologies in the past, the superior version (PNaCl) was
> >> not the one to be
 adopted generally.
> >> 
> >> Anyway, at least we have a way of ensuring the continuation of Web-based
> >> Csound.
 ========================
> >> Prof. Victor Lazzarini
> >> Dean of Arts, Celtic Studies, and Philosophy,
> >> Maynooth University,
> >> Maynooth, Co Kildare, Ireland
> >> Tel: 00 353 7086936
> >> Fax: 00 353 1 7086952
> >> 
> >> 
> >> Csound mailing list
> >> Csound@listserv.heanet.ie
> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> >> Send bugs reports to
> >> 
> >>         https://github.com/csound/csound/issues
> >> 
> >> Discussions of bugs and features can be posted here
> >> Csound mailing list Csound@listserv.heanet.ie
> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> >> https://github.com/csound/csound/issues Discussions of bugs and features
> >> can be posted here
> 
> > Csound mailing list Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> > https://github.com/csound/csound/issues Discussions of bugs and features
> > can be posted here
 
> > Csound mailing list Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> > https://github.com/csound/csound/issues Discussions of bugs and features
> > can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-08 22:10
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
Requires a minimum of FF 52 or Chrome 57 afaik.

Wasm is very new, was only added to production browsers last month.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
> 
> Hi,
> 
> I probably need an update of the browsers,
> 
> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken 
> with later versions) and Chrome 55 
> 
> both stop at state "loading... " on the screen an javascript console reports:
> 
> uncaught exception: no binaryen method succeeded. consider enabling more 
> options, like interpreting, if you want that: https://github.com/kripken/
> emscripten/wiki/WebAssembly#binaryen-methods
> 
> Jut to let know, this is not a problem, I need to update.
> 
> Thank you!
> 
> tarmo
> 
> 
> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>> I’ve put up a simple example at
>> 
>> https://csound.github.io/wasm
>> 
>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>> well.
> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>> 
>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>> wrote:
> 
>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>> but I didn't know any javascript until recently, so I probably never took
>>> notice of it. Regardless, I'll check out both
> 
>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>> wrote:
> A javascript Csound has existed since 2013, compiled with
>>> emscripten. Now a web assembly version is possible as well. 
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>> wrote:
> 
>>> 
>>>> Thanks for the update! I've been considering Web based Csound again,
>>>> though I never got my head round pnacl... So you can akready use Csound
>>>> with java script? My Web application isn't real time, so that might be a
>>>> good easy way for me to realise my plans
> 
>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>> wrote:
> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>> packages at some point. It’s a shame because the technology is good and
>>>> it supports better performance.
>>>> 
>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>> (thanks to hfmanson who
> produced a build script for us). It uses the
>>>> same model as js csound and very similar infrastructure, so it’s a
>>>> drop-in replacement for it.
>>>> 
>>>> I have tested the builds with trapped and the performance is as follows:
>>>> 
>>>> 1. benchmark (native): 2.9s
>>>> 2. PNaCl: 3.6s
>>>> 3. JS: 13s
>>>> 4. WASM: 6.4s
>>>> 
>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>> not as good for RT audio
> either as it depends on Web Audio, which is
>>>> still pretty awful.
>>>> 
>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>> not the one to be
> adopted generally.
>>>> 
>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>> Csound.
> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>> 
>>>>        https://github.com/csound/csound/issues
>>>> 
>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>> can be posted here
>> 
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>> can be posted here
> 
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>> can be posted here
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-08 22:52
FromKelly Hirai
SubjectRe: Web-based Csound, updates, future directions
https://csound.github.io/wasm/RandomGenerator.html

not getting it on chrome 58.0.3029.83 for android 7.
"aww snap" it says.

firefox on linux i have randomgenerator running in 3 tabs. :)

occasionally the rhythm changes so... there are some timing issues.

very cool. really looking forward to sharing compositions this way.

kelly

On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
> Requires a minimum of FF 52 or Chrome 57 afaik.
> 
> Wasm is very new, was only added to production browsers last month.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>
>> Hi,
>>
>> I probably need an update of the browsers,
>>
>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken 
>> with later versions) and Chrome 55 
>>
>> both stop at state "loading... " on the screen an javascript console reports:
>>
>> uncaught exception: no binaryen method succeeded. consider enabling more 
>> options, like interpreting, if you want that: https://github.com/kripken/
>> emscripten/wiki/WebAssembly#binaryen-methods
>>
>> Jut to let know, this is not a problem, I need to update.
>>
>> Thank you!
>>
>> tarmo
>>
>>
>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>> I’ve put up a simple example at
>>>
>>> https://csound.github.io/wasm
>>>
>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>> well.
>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952 
>>>
>>>
>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>> wrote:
>>
>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>> but I didn't know any javascript until recently, so I probably never took
>>>> notice of it. Regardless, I'll check out both
>>
>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>> wrote:
>> A javascript Csound has existed since 2013, compiled with
>>>> emscripten. Now a web assembly version is possible as well. 
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>> wrote:
>>
>>>>
>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>> with java script? My Web application isn't real time, so that might be a
>>>>> good easy way for me to realise my plans
>>
>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>> wrote:
>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>> packages at some point. It’s a shame because the technology is good and
>>>>> it supports better performance.
>>>>>
>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>> (thanks to hfmanson who
>> produced a build script for us). It uses the
>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>> drop-in replacement for it.
>>>>>
>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>
>>>>> 1. benchmark (native): 2.9s
>>>>> 2. PNaCl: 3.6s
>>>>> 3. JS: 13s
>>>>> 4. WASM: 6.4s
>>>>>
>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>> not as good for RT audio
>> either as it depends on Web Audio, which is
>>>>> still pretty awful.
>>>>>
>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>> not the one to be
>> adopted generally.
>>>>>
>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>> Csound.
>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>
>>>>>        https://github.com/csound/csound/issues
>>>>>
>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>> can be posted here
>>>
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>> can be posted here
>>
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>> can be posted here
>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-09 00:02
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
> 
> https://csound.github.io/wasm/RandomGenerator.html
> 
> not getting it on chrome 58.0.3029.83 for android 7.
> "aww snap" it says.
> 
> firefox on linux i have randomgenerator running in 3 tabs. :)
> 
> occasionally the rhythm changes so... there are some timing issues.
> 
> very cool. really looking forward to sharing compositions this way.
> 
> kelly
> 
> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>> Requires a minimum of FF 52 or Chrome 57 afaik.
>> 
>> Wasm is very new, was only added to production browsers last month.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>> 
>>> Hi,
>>> 
>>> I probably need an update of the browsers,
>>> 
>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken 
>>> with later versions) and Chrome 55 
>>> 
>>> both stop at state "loading... " on the screen an javascript console reports:
>>> 
>>> uncaught exception: no binaryen method succeeded. consider enabling more 
>>> options, like interpreting, if you want that: https://github.com/kripken/
>>> emscripten/wiki/WebAssembly#binaryen-methods
>>> 
>>> Jut to let know, this is not a problem, I need to update.
>>> 
>>> Thank you!
>>> 
>>> tarmo
>>> 
>>> 
>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>> I’ve put up a simple example at
>>>> 
>>>> https://csound.github.io/wasm
>>>> 
>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>> well.
>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952 
>>>> 
>>>> 
>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>> wrote:
>>> 
>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>> notice of it. Regardless, I'll check out both
>>> 
>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>> wrote:
>>> A javascript Csound has existed since 2013, compiled with
>>>>> emscripten. Now a web assembly version is possible as well. 
>>>>> 
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>> 
>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>> wrote:
>>> 
>>>>> 
>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>> good easy way for me to realise my plans
>>> 
>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>> wrote:
>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>> it supports better performance.
>>>>>> 
>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>> (thanks to hfmanson who
>>> produced a build script for us). It uses the
>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>> drop-in replacement for it.
>>>>>> 
>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>> 
>>>>>> 1. benchmark (native): 2.9s
>>>>>> 2. PNaCl: 3.6s
>>>>>> 3. JS: 13s
>>>>>> 4. WASM: 6.4s
>>>>>> 
>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>> not as good for RT audio
>>> either as it depends on Web Audio, which is
>>>>>> still pretty awful.
>>>>>> 
>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>> not the one to be
>>> adopted generally.
>>>>>> 
>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>> Csound.
>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>> 
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>> 
>>>>>>       https://github.com/csound/csound/issues
>>>>>> 
>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>> can be posted here
>>>> 
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>> can be posted here
>>> 
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>> can be posted here
>>>> 
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>       https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-09 00:04
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
> 
> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>> 
>> https://csound.github.io/wasm/RandomGenerator.html
>> 
>> not getting it on chrome 58.0.3029.83 for android 7.
>> "aww snap" it says.
>> 
>> firefox on linux i have randomgenerator running in 3 tabs. :)
>> 
>> occasionally the rhythm changes so... there are some timing issues.
>> 
>> very cool. really looking forward to sharing compositions this way.
>> 
>> kelly
>> 
>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>> 
>>> Wasm is very new, was only added to production browsers last month.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952 
>>> 
>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> I probably need an update of the browsers,
>>>> 
>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken 
>>>> with later versions) and Chrome 55 
>>>> 
>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>> 
>>>> uncaught exception: no binaryen method succeeded. consider enabling more 
>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>> 
>>>> Jut to let know, this is not a problem, I need to update.
>>>> 
>>>> Thank you!
>>>> 
>>>> tarmo
>>>> 
>>>> 
>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>> I’ve put up a simple example at
>>>>> 
>>>>> https://csound.github.io/wasm
>>>>> 
>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>> well.
>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952 
>>>>> 
>>>>> 
>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>> wrote:
>>>> 
>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>> notice of it. Regardless, I'll check out both
>>>> 
>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>> wrote:
>>>> A javascript Csound has existed since 2013, compiled with
>>>>>> emscripten. Now a web assembly version is possible as well. 
>>>>>> 
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>> 
>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>> wrote:
>>>> 
>>>>>> 
>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>> good easy way for me to realise my plans
>>>> 
>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>> wrote:
>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>> it supports better performance.
>>>>>>> 
>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>> (thanks to hfmanson who
>>>> produced a build script for us). It uses the
>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>> drop-in replacement for it.
>>>>>>> 
>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>> 
>>>>>>> 1. benchmark (native): 2.9s
>>>>>>> 2. PNaCl: 3.6s
>>>>>>> 3. JS: 13s
>>>>>>> 4. WASM: 6.4s
>>>>>>> 
>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>> not as good for RT audio
>>>> either as it depends on Web Audio, which is
>>>>>>> still pretty awful.
>>>>>>> 
>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>> not the one to be
>>>> adopted generally.
>>>>>>> 
>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>> Csound.
>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>> 
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>> 
>>>>>>>      https://github.com/csound/csound/issues
>>>>>>> 
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>> can be posted here
>>>>> 
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>> can be posted here
>>>> 
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>> can be posted here
>>>>> 
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>      https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-10 18:01
FromMichael Gogins
SubjectRe: Web-based Csound, updates, future directions
I have installed the WebAssembly toolchain on my Linux computer, run
the build scripts, and got Csound to play "Trapped" in my browser.

There are a couple of minor irritations that I will fix or document.
On the whole it was painless.

Thanks again to hfmanson, Victor, and anyone else who made this possible.

As I did for the PNaCl build, I will add some of the plugin C++
opcodes to be statically linked into the WebAssembly build of the
Csound library. I will also try to port my examples at
gogins.github.io to use WebAssembly instead of PNaCl. Some of these
are full-scale pieces with visuals that have been performed.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
 wrote:
> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>
>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>
>>> https://csound.github.io/wasm/RandomGenerator.html
>>>
>>> not getting it on chrome 58.0.3029.83 for android 7.
>>> "aww snap" it says.
>>>
>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>
>>> occasionally the rhythm changes so... there are some timing issues.
>>>
>>> very cool. really looking forward to sharing compositions this way.
>>>
>>> kelly
>>>
>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>
>>>> Wasm is very new, was only added to production browsers last month.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I probably need an update of the browsers,
>>>>>
>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>> with later versions) and Chrome 55
>>>>>
>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>
>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>
>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>
>>>>> Thank you!
>>>>>
>>>>> tarmo
>>>>>
>>>>>
>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>> I’ve put up a simple example at
>>>>>>
>>>>>> https://csound.github.io/wasm
>>>>>>
>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>> well.
>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>
>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>> wrote:
>>>>>
>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>> notice of it. Regardless, I'll check out both
>>>>>
>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>> wrote:
>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>
>>>>>>> Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>> Maynooth University
>>>>>>> Ireland
>>>>>>>
>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>> wrote:
>>>>>
>>>>>>>
>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>> good easy way for me to realise my plans
>>>>>
>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>> wrote:
>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>> it supports better performance.
>>>>>>>>
>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>> (thanks to hfmanson who
>>>>> produced a build script for us). It uses the
>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>> drop-in replacement for it.
>>>>>>>>
>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>
>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>> 3. JS: 13s
>>>>>>>> 4. WASM: 6.4s
>>>>>>>>
>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>> not as good for RT audio
>>>>> either as it depends on Web Audio, which is
>>>>>>>> still pretty awful.
>>>>>>>>
>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>> not the one to be
>>>>> adopted generally.
>>>>>>>>
>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>> Csound.
>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>> can be posted here
>>>>>>
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>> can be posted here
>>>>>
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>> can be posted here
>>>>>>
>>>>>>
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>      https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>       https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-10 22:32
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
I have ported the csound.js frontend from PNaCl csound and added some examples from the
PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
to run with PNaCl to run with WASM.

I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
which wasn’t there (I expect that the code was leaking memory without it, but now it should be
OK, provided that the CsoundObj gets destroyed explicitly).

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
> 
> I have installed the WebAssembly toolchain on my Linux computer, run
> the build scripts, and got Csound to play "Trapped" in my browser.
> 
> There are a couple of minor irritations that I will fix or document.
> On the whole it was painless.
> 
> Thanks again to hfmanson, Victor, and anyone else who made this possible.
> 
> As I did for the PNaCl build, I will add some of the plugin C++
> opcodes to be statically linked into the WebAssembly build of the
> Csound library. I will also try to port my examples at
> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
> are full-scale pieces with visuals that have been performed.
> 
> Regards,
> Mike
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>  wrote:
>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>> 
>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>> 
>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>> 
>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>> "aww snap" it says.
>>>> 
>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>> 
>>>> occasionally the rhythm changes so... there are some timing issues.
>>>> 
>>>> very cool. really looking forward to sharing compositions this way.
>>>> 
>>>> kelly
>>>> 
>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>> 
>>>>> Wasm is very new, was only added to production browsers last month.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> I probably need an update of the browsers,
>>>>>> 
>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>> with later versions) and Chrome 55
>>>>>> 
>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>> 
>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>> 
>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>> 
>>>>>> Thank you!
>>>>>> 
>>>>>> tarmo
>>>>>> 
>>>>>> 
>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>> I’ve put up a simple example at
>>>>>>> 
>>>>>>> https://csound.github.io/wasm
>>>>>>> 
>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>> well.
>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>> 
>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>> wrote:
>>>>>> 
>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>> 
>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>> wrote:
>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>> 
>>>>>>>> Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>> Maynooth University
>>>>>>>> Ireland
>>>>>>>> 
>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>> wrote:
>>>>>> 
>>>>>>>> 
>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>> good easy way for me to realise my plans
>>>>>> 
>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>> wrote:
>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>> it supports better performance.
>>>>>>>>> 
>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>> (thanks to hfmanson who
>>>>>> produced a build script for us). It uses the
>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>> drop-in replacement for it.
>>>>>>>>> 
>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>> 
>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>> 3. JS: 13s
>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>> 
>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>> not as good for RT audio
>>>>>> either as it depends on Web Audio, which is
>>>>>>>>> still pretty awful.
>>>>>>>>> 
>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>> not the one to be
>>>>>> adopted generally.
>>>>>>>>> 
>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>> Csound.
>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>> 
>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>> 
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>> can be posted here
>>>>>>> 
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>> can be posted here
>>>>>> 
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>> can be posted here
>>>>>>> 
>>>>>>> 
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>     https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>     https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>      https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 11:15
FromRichard
SubjectRe: Web-based Csound, updates, future directions
How do I install WebAssembly on OS X?

The web page says use brew, but it does not show the exact line...
I tried:

brew install webassembly

and got:

Error: No available formula with the name "webassembly"
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
   git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

Richard


On 10/06/17 23:32, Victor Lazzarini wrote:
> I have ported the csound.js frontend from PNaCl csound and added some examples from the
> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
> to run with PNaCl to run with WASM.
>
> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
> OK, provided that the CsoundObj gets destroyed explicitly).
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>
>> I have installed the WebAssembly toolchain on my Linux computer, run
>> the build scripts, and got Csound to play "Trapped" in my browser.
>>
>> There are a couple of minor irritations that I will fix or document.
>> On the whole it was painless.
>>
>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>
>> As I did for the PNaCl build, I will add some of the plugin C++
>> opcodes to be statically linked into the WebAssembly build of the
>> Csound library. I will also try to port my examples at
>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>> are full-scale pieces with visuals that have been performed.
>>
>> Regards,
>> Mike
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>  wrote:
>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>
>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>
>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>
>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>> "aww snap" it says.
>>>>>
>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>
>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>
>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>
>>>>> kelly
>>>>>
>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>
>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I probably need an update of the browsers,
>>>>>>>
>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>> with later versions) and Chrome 55
>>>>>>>
>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>
>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>
>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>
>>>>>>> Thank you!
>>>>>>>
>>>>>>> tarmo
>>>>>>>
>>>>>>>
>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>> I’ve put up a simple example at
>>>>>>>>
>>>>>>>> https://csound.github.io/wasm
>>>>>>>>
>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>> well.
>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>
>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>> wrote:
>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>> wrote:
>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>
>>>>>>>>> Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>> Maynooth University
>>>>>>>>> Ireland
>>>>>>>>>
>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>> wrote:
>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>> wrote:
>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>> it supports better performance.
>>>>>>>>>>
>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>> (thanks to hfmanson who
>>>>>>> produced a build script for us). It uses the
>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>
>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>
>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>> 3. JS: 13s
>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>
>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>> not as good for RT audio
>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>> still pretty awful.
>>>>>>>>>>
>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>> not the one to be
>>>>>>> adopted generally.
>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>> Csound.
>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>> can be posted here
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>> can be posted here
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>> can be posted here
>>>>>>>>
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>      https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>       https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 11:37
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
You need emscripten:

https://github.com/csound/csound/blob/develop/emscripten/README.md

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Jun 2017, at 11:15, Richard  wrote:
> 
> How do I install WebAssembly on OS X?
> 
> The web page says use brew, but it does not show the exact line...
> I tried:
> 
> brew install webassembly
> 
> and got:
> 
> Error: No available formula with the name "webassembly"
> ==> Searching for a previously deleted formula...
> Warning: homebrew/core is shallow clone. To get complete history run:
>  git -C "$(brew --repo homebrew/core)" fetch --unshallow
> 
> Error: No previously deleted formula found.
> ==> Searching for similarly named formulae...
> Error: No similarly named formulae found.
> ==> Searching taps...
> Error: No formulae found in taps.
> 
> Richard
> 
> 
> On 10/06/17 23:32, Victor Lazzarini wrote:
>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>> to run with PNaCl to run with WASM.
>> 
>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>> OK, provided that the CsoundObj gets destroyed explicitly).
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>> 
>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>> 
>>> There are a couple of minor irritations that I will fix or document.
>>> On the whole it was painless.
>>> 
>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>> 
>>> As I did for the PNaCl build, I will add some of the plugin C++
>>> opcodes to be statically linked into the WebAssembly build of the
>>> Csound library. I will also try to port my examples at
>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>> are full-scale pieces with visuals that have been performed.
>>> 
>>> Regards,
>>> Mike
>>> 
>>> -----------------------------------------------------
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>> 
>>> 
>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>  wrote:
>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>> 
>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>> 
>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>> 
>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>> "aww snap" it says.
>>>>>> 
>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>> 
>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>> 
>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>> 
>>>>>> kelly
>>>>>> 
>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>> 
>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>> 
>>>>>>>> Hi,
>>>>>>>> 
>>>>>>>> I probably need an update of the browsers,
>>>>>>>> 
>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>> with later versions) and Chrome 55
>>>>>>>> 
>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>> 
>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>> 
>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>> 
>>>>>>>> Thank you!
>>>>>>>> 
>>>>>>>> tarmo
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>> I’ve put up a simple example at
>>>>>>>>> 
>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>> 
>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>> well.
>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>> wrote:
>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>> wrote:
>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>> 
>>>>>>>>>> Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>> Maynooth University
>>>>>>>>>> Ireland
>>>>>>>>>> 
>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>> wrote:
>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>> wrote:
>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>> it supports better performance.
>>>>>>>>>>> 
>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>> 
>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>> 
>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>> 
>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>> not as good for RT audio
>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>> still pretty awful.
>>>>>>>>>>> 
>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>> not the one to be
>>>>>>>> adopted generally.
>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>> Csound.
>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>> 
>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>> 
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>> can be posted here
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>> can be posted here
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>> can be posted here
>>>>>>>>> 
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> 
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>      https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 12:03
FromRichard
SubjectRe: Web-based Csound, updates, future directions
Confusing, since on the original website it says to install webassembly 
first and then emscripten, it seems.
Anyway, I can't get past the first command (emsdk update):

RMA:emsdk-portable richard$ ./emsdk update
Traceback (most recent call last):
   File "./emsdk", line 2199, in 
     sys.exit(main())
   File "./emsdk", line 1853, in main
     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == 
'--help':
TypeError: object of type 'filter' has no len()

I guessed it had to do with my default Python version (3.5). I changed 
the first line in emsdk to use python2.7 and got a bit further.
But on the command 'emsdk install latest' it failed:
..
Installing SDK 'sdk-1.37.13-64bit'..
Installing tool 'clang-e1.37.13-64bit'..
HTTP error with URL 
'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': 
HTTP Error 403: Forbidden
Installation failed!

Richard
On 11/06/17 12:37, Victor Lazzarini wrote:
> You need emscripten:
>
> https://github.com/csound/csound/blob/develop/emscripten/README.md
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>
>> How do I install WebAssembly on OS X?
>>
>> The web page says use brew, but it does not show the exact line...
>> I tried:
>>
>> brew install webassembly
>>
>> and got:
>>
>> Error: No available formula with the name "webassembly"
>> ==> Searching for a previously deleted formula...
>> Warning: homebrew/core is shallow clone. To get complete history run:
>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>
>> Error: No previously deleted formula found.
>> ==> Searching for similarly named formulae...
>> Error: No similarly named formulae found.
>> ==> Searching taps...
>> Error: No formulae found in taps.
>>
>> Richard
>>
>>
>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>> to run with PNaCl to run with WASM.
>>>
>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>
>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>
>>>> There are a couple of minor irritations that I will fix or document.
>>>> On the whole it was painless.
>>>>
>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>
>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>> opcodes to be statically linked into the WebAssembly build of the
>>>> Csound library. I will also try to port my examples at
>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>> are full-scale pieces with visuals that have been performed.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> -----------------------------------------------------
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://michaelgogins.tumblr.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>>
>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>  wrote:
>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>
>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>
>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>
>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>> "aww snap" it says.
>>>>>>>
>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>
>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>
>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>
>>>>>>> kelly
>>>>>>>
>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>
>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>
>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>
>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>
>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>
>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>
>>>>>>>>> Thank you!
>>>>>>>>>
>>>>>>>>> tarmo
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>
>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>
>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>> well.
>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>> wrote:
>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>> wrote:
>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>
>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>> Maynooth University
>>>>>>>>>>> Ireland
>>>>>>>>>>>
>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>> wrote:
>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>> wrote:
>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>
>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>
>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>
>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>
>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>> not as good for RT audio
>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>
>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>> not the one to be
>>>>>>>>> adopted generally.
>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>> Csound.
>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>> can be posted here
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>> can be posted here
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>> can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>       https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>        https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>         https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 12:20
FromRichard
SubjectRe: Web-based Csound, updates, future directions
Ok, I had to use these commands to get rid of that:

./emsdk install sdk-1.37.12-64bit
./emsdk activate sdk-1.37.12-64bit

it is now installed
Richard
On 11/06/17 13:03, Richard wrote:
> Confusing, since on the original website it says to install 
> webassembly first and then emscripten, it seems.
> Anyway, I can't get past the first command (emsdk update):
>
> RMA:emsdk-portable richard$ ./emsdk update
> Traceback (most recent call last):
>   File "./emsdk", line 2199, in 
>     sys.exit(main())
>   File "./emsdk", line 1853, in main
>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == 
> '--help':
> TypeError: object of type 'filter' has no len()
>
> I guessed it had to do with my default Python version (3.5). I changed 
> the first line in emsdk to use python2.7 and got a bit further.
> But on the command 'emsdk install latest' it failed:
> ..
> Installing SDK 'sdk-1.37.13-64bit'..
> Installing tool 'clang-e1.37.13-64bit'..
> HTTP error with URL 
> 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': 
> HTTP Error 403: Forbidden
> Installation failed!
>
> Richard
> On 11/06/17 12:37, Victor Lazzarini wrote:
>> You need emscripten:
>>
>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>
>>> How do I install WebAssembly on OS X?
>>>
>>> The web page says use brew, but it does not show the exact line...
>>> I tried:
>>>
>>> brew install webassembly
>>>
>>> and got:
>>>
>>> Error: No available formula with the name "webassembly"
>>> ==> Searching for a previously deleted formula...
>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>
>>> Error: No previously deleted formula found.
>>> ==> Searching for similarly named formulae...
>>> Error: No similarly named formulae found.
>>> ==> Searching taps...
>>> Error: No formulae found in taps.
>>>
>>> Richard
>>>
>>>
>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>> I have ported the csound.js frontend from PNaCl csound and added 
>>>> some examples from the
>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple 
>>>> to port/adapt code that used
>>>> to run with PNaCl to run with WASM.
>>>>
>>>> I’ve added some extra functionality to CsoundObj, including a means 
>>>> of freeing up memory,
>>>> which wasn’t there (I expect that the code was leaking memory 
>>>> without it, but now it should be
>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 10 Jun 2017, at 18:01, Michael Gogins 
>>>>>  wrote:
>>>>>
>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>
>>>>> There are a couple of minor irritations that I will fix or document.
>>>>> On the whole it was painless.
>>>>>
>>>>> Thanks again to hfmanson, Victor, and anyone else who made this 
>>>>> possible.
>>>>>
>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>> Csound library. I will also try to port my examples at
>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>> are full-scale pieces with visuals that have been performed.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> -----------------------------------------------------
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://michaelgogins.tumblr.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>>
>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>  wrote:
>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It 
>>>>>> wasn’t difficult to adapt it.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini 
>>>>>>>  wrote:
>>>>>>>
>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. 
>>>>>>> I tried on iOS and it didn’t run.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai 
>>>>>>>>  wrote:
>>>>>>>>
>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>
>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>> "aww snap" it says.
>>>>>>>>
>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>
>>>>>>>> occasionally the rhythm changes so... there are some timing 
>>>>>>>> issues.
>>>>>>>>
>>>>>>>> very cool. really looking forward to sharing compositions this 
>>>>>>>> way.
>>>>>>>>
>>>>>>>> kelly
>>>>>>>>
>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>
>>>>>>>>> Wasm is very new, was only added to production browsers last 
>>>>>>>>> month.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>
>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some 
>>>>>>>>>> plugins that are broken
>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>
>>>>>>>>>> both stop at state "loading... " on the screen an javascript 
>>>>>>>>>> console reports:
>>>>>>>>>>
>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider 
>>>>>>>>>> enabling more
>>>>>>>>>> options, like interpreting, if you want that: 
>>>>>>>>>> https://github.com/kripken/
>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>
>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>
>>>>>>>>>> Thank you!
>>>>>>>>>>
>>>>>>>>>> tarmo
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>
>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>
>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run 
>>>>>>>>>>> on firefox 52 as
>>>>>>>>>>> well.
>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>> 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, 
>>>>>>>>>>>> probably around 2013,
>>>>>>>>>>>> but I didn't know any javascript until recently, so I 
>>>>>>>>>>>> probably never took
>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>> 
>>>>>>>>>>>> wrote:
>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>
>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>> Ireland
>>>>>>>>>>>>
>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>> 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> Thanks for the update! I've been considering Web based 
>>>>>>>>>>>>> Csound again,
>>>>>>>>>>>>> though I never got my head round pnacl... So you can 
>>>>>>>>>>>>> akready use Csound
>>>>>>>>>>>>> with java script? My Web application isn't real time, so 
>>>>>>>>>>>>> that might be a
>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> wrote:
>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop 
>>>>>>>>>>>>> producing pnacl
>>>>>>>>>>>>> packages at some point. It’s a shame because the 
>>>>>>>>>>>>> technology is good and
>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>
>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has 
>>>>>>>>>>>>> been developed
>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>> same model as js csound and very similar infrastructure, 
>>>>>>>>>>>>> so it’s a
>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I have tested the builds with trapped and the performance 
>>>>>>>>>>>>> is as follows:
>>>>>>>>>>>>>
>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>
>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the 
>>>>>>>>>>>>> JS version. It’s
>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>
>>>>>>>>>>>>> As with many technologies in the past, the superior 
>>>>>>>>>>>>> version (PNaCl) was
>>>>>>>>>>>>> not the one to be
>>>>>>>>>> adopted generally.
>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the 
>>>>>>>>>>>>> continuation of Web-based
>>>>>>>>>>>>> Csound.
>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>>> reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of 
>>>>>>>>>>>>> bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>> reports to
>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs 
>>>>>>>>>>>> and features
>>>>>>>>>>>> can be posted here
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>> reports to
>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs 
>>>>>>>>>>>> and features
>>>>>>>>>>>> can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>         https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>          https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>          https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 14:07
FromRichard
SubjectRe: Web-based Csound, updates, future directions
I tried to execute the download_and_install script. To my surprise, OS X 
does not come with wget, so had to install that first.
Now I get:

libsndfile-1.0.25.tar.gz 
100%[==========================================================================>] 
1.01M  1.30MB/s    in 0.8s

2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved 
[1060692/1060692]

./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: 
No such file or directory
./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
./download_and_build_libsndfile.sh: line 14: emmake: command not found
./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such 
file or directory

Do I have to copy the csound emscripten folder to my enscripten folder, 
or the whole csound folder?

Richard

On 11/06/17 13:20, Richard wrote:
> Ok, I had to use these commands to get rid of that:
>
> ./emsdk install sdk-1.37.12-64bit
> ./emsdk activate sdk-1.37.12-64bit
>
> it is now installed
> Richard
> On 11/06/17 13:03, Richard wrote:
>> Confusing, since on the original website it says to install 
>> webassembly first and then emscripten, it seems.
>> Anyway, I can't get past the first command (emsdk update):
>>
>> RMA:emsdk-portable richard$ ./emsdk update
>> Traceback (most recent call last):
>>   File "./emsdk", line 2199, in 
>>     sys.exit(main())
>>   File "./emsdk", line 1853, in main
>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == 
>> '--help':
>> TypeError: object of type 'filter' has no len()
>>
>> I guessed it had to do with my default Python version (3.5). I 
>> changed the first line in emsdk to use python2.7 and got a bit further.
>> But on the command 'emsdk install latest' it failed:
>> ..
>> Installing SDK 'sdk-1.37.13-64bit'..
>> Installing tool 'clang-e1.37.13-64bit'..
>> HTTP error with URL 
>> 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': 
>> HTTP Error 403: Forbidden
>> Installation failed!
>>
>> Richard
>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>> You need emscripten:
>>>
>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>
>>>> How do I install WebAssembly on OS X?
>>>>
>>>> The web page says use brew, but it does not show the exact line...
>>>> I tried:
>>>>
>>>> brew install webassembly
>>>>
>>>> and got:
>>>>
>>>> Error: No available formula with the name "webassembly"
>>>> ==> Searching for a previously deleted formula...
>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>
>>>> Error: No previously deleted formula found.
>>>> ==> Searching for similarly named formulae...
>>>> Error: No similarly named formulae found.
>>>> ==> Searching taps...
>>>> Error: No formulae found in taps.
>>>>
>>>> Richard
>>>>
>>>>
>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>> I have ported the csound.js frontend from PNaCl csound and added 
>>>>> some examples from the
>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly 
>>>>> simple to port/adapt code that used
>>>>> to run with PNaCl to run with WASM.
>>>>>
>>>>> I’ve added some extra functionality to CsoundObj, including a 
>>>>> means of freeing up memory,
>>>>> which wasn’t there (I expect that the code was leaking memory 
>>>>> without it, but now it should be
>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins 
>>>>>>  wrote:
>>>>>>
>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>
>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>> On the whole it was painless.
>>>>>>
>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this 
>>>>>> possible.
>>>>>>
>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>> Csound library. I will also try to port my examples at
>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> -----------------------------------------------------
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://michaelgogins.tumblr.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>>
>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>  wrote:
>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It 
>>>>>>> wasn’t difficult to adapt it.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini 
>>>>>>>>  wrote:
>>>>>>>>
>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. 
>>>>>>>> I tried on iOS and it didn’t run.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai 
>>>>>>>>>  wrote:
>>>>>>>>>
>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>
>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>> "aww snap" it says.
>>>>>>>>>
>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>
>>>>>>>>> occasionally the rhythm changes so... there are some timing 
>>>>>>>>> issues.
>>>>>>>>>
>>>>>>>>> very cool. really looking forward to sharing compositions this 
>>>>>>>>> way.
>>>>>>>>>
>>>>>>>>> kelly
>>>>>>>>>
>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>
>>>>>>>>>> Wasm is very new, was only added to production browsers last 
>>>>>>>>>> month.
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>
>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some 
>>>>>>>>>>> plugins that are broken
>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>
>>>>>>>>>>> both stop at state "loading... " on the screen an javascript 
>>>>>>>>>>> console reports:
>>>>>>>>>>>
>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider 
>>>>>>>>>>> enabling more
>>>>>>>>>>> options, like interpreting, if you want that: 
>>>>>>>>>>> https://github.com/kripken/
>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>
>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>
>>>>>>>>>>> Thank you!
>>>>>>>>>>>
>>>>>>>>>>> tarmo
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>
>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>
>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run 
>>>>>>>>>>>> on firefox 52 as
>>>>>>>>>>>> well.
>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, 
>>>>>>>>>>>>> probably around 2013,
>>>>>>>>>>>>> but I didn't know any javascript until recently, so I 
>>>>>>>>>>>>> probably never took
>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based 
>>>>>>>>>>>>>> Csound again,
>>>>>>>>>>>>>> though I never got my head round pnacl... So you can 
>>>>>>>>>>>>>> akready use Csound
>>>>>>>>>>>>>> with java script? My Web application isn't real time, so 
>>>>>>>>>>>>>> that might be a
>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop 
>>>>>>>>>>>>>> producing pnacl
>>>>>>>>>>>>>> packages at some point. It’s a shame because the 
>>>>>>>>>>>>>> technology is good and
>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has 
>>>>>>>>>>>>>> been developed
>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, 
>>>>>>>>>>>>>> so it’s a
>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I have tested the builds with trapped and the performance 
>>>>>>>>>>>>>> is as follows:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the 
>>>>>>>>>>>>>> JS version. It’s
>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> As with many technologies in the past, the superior 
>>>>>>>>>>>>>> version (PNaCl) was
>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the 
>>>>>>>>>>>>>> continuation of Web-based
>>>>>>>>>>>>>> Csound.
>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>>>> reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of 
>>>>>>>>>>>>>> bugs and features
>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>>> reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of 
>>>>>>>>>>>>> bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>>> reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of 
>>>>>>>>>>>>> bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>         https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>          https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 14:45
FromRichard
SubjectRe: Web-based Csound, updates, future directions
Not sure what goes wrong now. I get:

RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
./download_and_build_libsndfile.sh: line 14: emmake: command not found
./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such 
file or directory

I already changed emconfigure and emmake to use python2.7.
The download script calls emconfigure and emmake without './' preceding 
it, so I changed that. Then I get:

RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file 
or directory
./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or 
directory

But executing the line on its own it tries to do something:
RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static 
--disable-shared --disable-libtool-lock --disable-cpu-clip 
--disable-sqlite --disable-alsa --disable-external-lib$
ERROR:root:Exception thrown when invoking Popen in configure with args: 
"./configure --enable-static --disable-shared --disable-libtool-lock 
--disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
Traceback (most recent call last):
   File "./emconfigure", line 13, in 
     emconfigure.run()
   File 
"/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", 
line 46, in run
     shared.Building.configure(sys.argv[1:])
   File 
"/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", 
line 1487, in configure
     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 
else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, 
env=env)
   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", 
line 709, in __init__
     errread, errwrite)
   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", 
line 1326, in _execute_child
     raise child_exception
OSError: [Errno 2] No such file or directory

It looks like there is no 'configure' directory??

Richard

On 11/06/17 15:07, Richard wrote:
> I tried to execute the download_and_install script. To my surprise, OS 
> X does not come with wget, so had to install that first.
> Now I get:
>
> libsndfile-1.0.25.tar.gz 
> 100%[==========================================================================>] 
> 1.01M  1.30MB/s    in 0.8s
>
> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved 
> [1060692/1060692]
>
> ./download_and_build_libsndfile.sh: line 8: 
> ../patches/sndfile.c.patch: No such file or directory
> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not 
> found
> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such 
> file or directory
>
> Do I have to copy the csound emscripten folder to my enscripten 
> folder, or the whole csound folder?
>
> Richard
>
> On 11/06/17 13:20, Richard wrote:
>> Ok, I had to use these commands to get rid of that:
>>
>> ./emsdk install sdk-1.37.12-64bit
>> ./emsdk activate sdk-1.37.12-64bit
>>
>> it is now installed
>> Richard
>> On 11/06/17 13:03, Richard wrote:
>>> Confusing, since on the original website it says to install 
>>> webassembly first and then emscripten, it seems.
>>> Anyway, I can't get past the first command (emsdk update):
>>>
>>> RMA:emsdk-portable richard$ ./emsdk update
>>> Traceback (most recent call last):
>>>   File "./emsdk", line 2199, in 
>>>     sys.exit(main())
>>>   File "./emsdk", line 1853, in main
>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == 
>>> '--help':
>>> TypeError: object of type 'filter' has no len()
>>>
>>> I guessed it had to do with my default Python version (3.5). I 
>>> changed the first line in emsdk to use python2.7 and got a bit further.
>>> But on the command 'emsdk install latest' it failed:
>>> ..
>>> Installing SDK 'sdk-1.37.13-64bit'..
>>> Installing tool 'clang-e1.37.13-64bit'..
>>> HTTP error with URL 
>>> 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': 
>>> HTTP Error 403: Forbidden
>>> Installation failed!
>>>
>>> Richard
>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>> You need emscripten:
>>>>
>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>
>>>>> How do I install WebAssembly on OS X?
>>>>>
>>>>> The web page says use brew, but it does not show the exact line...
>>>>> I tried:
>>>>>
>>>>> brew install webassembly
>>>>>
>>>>> and got:
>>>>>
>>>>> Error: No available formula with the name "webassembly"
>>>>> ==> Searching for a previously deleted formula...
>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>
>>>>> Error: No previously deleted formula found.
>>>>> ==> Searching for similarly named formulae...
>>>>> Error: No similarly named formulae found.
>>>>> ==> Searching taps...
>>>>> Error: No formulae found in taps.
>>>>>
>>>>> Richard
>>>>>
>>>>>
>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>> I have ported the csound.js frontend from PNaCl csound and added 
>>>>>> some examples from the
>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly 
>>>>>> simple to port/adapt code that used
>>>>>> to run with PNaCl to run with WASM.
>>>>>>
>>>>>> I’ve added some extra functionality to CsoundObj, including a 
>>>>>> means of freeing up memory,
>>>>>> which wasn’t there (I expect that the code was leaking memory 
>>>>>> without it, but now it should be
>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins 
>>>>>>>  wrote:
>>>>>>>
>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, 
>>>>>>> run
>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>
>>>>>>> There are a couple of minor irritations that I will fix or 
>>>>>>> document.
>>>>>>> On the whole it was painless.
>>>>>>>
>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this 
>>>>>>> possible.
>>>>>>>
>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>> Csound library. I will also try to port my examples at
>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mike
>>>>>>>
>>>>>>> -----------------------------------------------------
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://michaelgogins.tumblr.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>  wrote:
>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It 
>>>>>>>> wasn’t difficult to adapt it.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini 
>>>>>>>>>  wrote:
>>>>>>>>>
>>>>>>>>> yes, I don’t  think it has been rolled out to mobile 
>>>>>>>>> platforms. I tried on iOS and it didn’t run.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai 
>>>>>>>>>>  wrote:
>>>>>>>>>>
>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>
>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>
>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>
>>>>>>>>>> occasionally the rhythm changes so... there are some timing 
>>>>>>>>>> issues.
>>>>>>>>>>
>>>>>>>>>> very cool. really looking forward to sharing compositions 
>>>>>>>>>> this way.
>>>>>>>>>>
>>>>>>>>>> kelly
>>>>>>>>>>
>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>
>>>>>>>>>>> Wasm is very new, was only added to production browsers last 
>>>>>>>>>>> month.
>>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>
>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes 
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>
>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some 
>>>>>>>>>>>> plugins that are broken
>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>
>>>>>>>>>>>> both stop at state "loading... " on the screen an 
>>>>>>>>>>>> javascript console reports:
>>>>>>>>>>>>
>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider 
>>>>>>>>>>>> enabling more
>>>>>>>>>>>> options, like interpreting, if you want that: 
>>>>>>>>>>>> https://github.com/kripken/
>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>
>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>
>>>>>>>>>>>> tarmo
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>
>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will 
>>>>>>>>>>>>> run on firefox 52 as
>>>>>>>>>>>>> well.
>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, 
>>>>>>>>>>>>>> probably around 2013,
>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I 
>>>>>>>>>>>>>> probably never took
>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based 
>>>>>>>>>>>>>>> Csound again,
>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can 
>>>>>>>>>>>>>>> akready use Csound
>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so 
>>>>>>>>>>>>>>> that might be a
>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop 
>>>>>>>>>>>>>>> producing pnacl
>>>>>>>>>>>>>>> packages at some point. It’s a shame because the 
>>>>>>>>>>>>>>> technology is good and
>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has 
>>>>>>>>>>>>>>> been developed
>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, 
>>>>>>>>>>>>>>> so it’s a
>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I have tested the builds with trapped and the 
>>>>>>>>>>>>>>> performance is as follows:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the 
>>>>>>>>>>>>>>> JS version. It’s
>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> As with many technologies in the past, the superior 
>>>>>>>>>>>>>>> version (PNaCl) was
>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the 
>>>>>>>>>>>>>>> continuation of Web-based
>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send 
>>>>>>>>>>>>>>> bugs reports to
>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of 
>>>>>>>>>>>>>>> bugs and features
>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>>>> reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of 
>>>>>>>>>>>>>> bugs and features
>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs 
>>>>>>>>>>>>>> reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of 
>>>>>>>>>>>>>> bugs and features
>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>         https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>          https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>          https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 15:00
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
Which original website? The instructions are for building Csound for WASM and we use emscripten for that.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Jun 2017, at 12:03, Richard  wrote:
> 
> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
> Anyway, I can't get past the first command (emsdk update):
> 
> RMA:emsdk-portable richard$ ./emsdk update
> Traceback (most recent call last):
>  File "./emsdk", line 2199, in 
>    sys.exit(main())
>  File "./emsdk", line 1853, in main
>    if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
> TypeError: object of type 'filter' has no len()
> 
> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
> But on the command 'emsdk install latest' it failed:
> ..
> Installing SDK 'sdk-1.37.13-64bit'..
> Installing tool 'clang-e1.37.13-64bit'..
> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
> Installation failed!
> 
> Richard
> On 11/06/17 12:37, Victor Lazzarini wrote:
>> You need emscripten:
>> 
>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>> 
>>> How do I install WebAssembly on OS X?
>>> 
>>> The web page says use brew, but it does not show the exact line...
>>> I tried:
>>> 
>>> brew install webassembly
>>> 
>>> and got:
>>> 
>>> Error: No available formula with the name "webassembly"
>>> ==> Searching for a previously deleted formula...
>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>  git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>> 
>>> Error: No previously deleted formula found.
>>> ==> Searching for similarly named formulae...
>>> Error: No similarly named formulae found.
>>> ==> Searching taps...
>>> Error: No formulae found in taps.
>>> 
>>> Richard
>>> 
>>> 
>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>> to run with PNaCl to run with WASM.
>>>> 
>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>> 
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>> 
>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>> 
>>>>> There are a couple of minor irritations that I will fix or document.
>>>>> On the whole it was painless.
>>>>> 
>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>> 
>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>> Csound library. I will also try to port my examples at
>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>> are full-scale pieces with visuals that have been performed.
>>>>> 
>>>>> Regards,
>>>>> Mike
>>>>> 
>>>>> -----------------------------------------------------
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://michaelgogins.tumblr.com
>>>>> Michael dot Gogins at gmail dot com
>>>>> 
>>>>> 
>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>  wrote:
>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>> 
>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>> 
>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>> 
>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>> 
>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>> "aww snap" it says.
>>>>>>>> 
>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>> 
>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>> 
>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>> 
>>>>>>>> kelly
>>>>>>>> 
>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>> 
>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>> 
>>>>>>>>>> Hi,
>>>>>>>>>> 
>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>> 
>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>> 
>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>> 
>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>> 
>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>> 
>>>>>>>>>> Thank you!
>>>>>>>>>> 
>>>>>>>>>> tarmo
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>> 
>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>> 
>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>> well.
>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>> wrote:
>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>> 
>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>> Ireland
>>>>>>>>>>>> 
>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>> wrote:
>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>> 
>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>> not the one to be
>>>>>>>>>> adopted generally.
>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>> Csound.
>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>> 
>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>> can be posted here
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>> can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> 
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>       https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>        https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 15:01
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
yes, that is what the instructions say: follow the Emscripten installation tools thoroughly.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Jun 2017, at 12:20, Richard  wrote:
> 
> Ok, I had to use these commands to get rid of that:
> 
> ./emsdk install sdk-1.37.12-64bit
> ./emsdk activate sdk-1.37.12-64bit
> 
> it is now installed
> Richard
> On 11/06/17 13:03, Richard wrote:
>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>> Anyway, I can't get past the first command (emsdk update):
>> 
>> RMA:emsdk-portable richard$ ./emsdk update
>> Traceback (most recent call last):
>>  File "./emsdk", line 2199, in 
>>    sys.exit(main())
>>  File "./emsdk", line 1853, in main
>>    if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>> TypeError: object of type 'filter' has no len()
>> 
>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>> But on the command 'emsdk install latest' it failed:
>> ..
>> Installing SDK 'sdk-1.37.13-64bit'..
>> Installing tool 'clang-e1.37.13-64bit'..
>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>> Installation failed!
>> 
>> Richard
>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>> You need emscripten:
>>> 
>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>> 
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>> 
>>>> How do I install WebAssembly on OS X?
>>>> 
>>>> The web page says use brew, but it does not show the exact line...
>>>> I tried:
>>>> 
>>>> brew install webassembly
>>>> 
>>>> and got:
>>>> 
>>>> Error: No available formula with the name "webassembly"
>>>> ==> Searching for a previously deleted formula...
>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>  git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>> 
>>>> Error: No previously deleted formula found.
>>>> ==> Searching for similarly named formulae...
>>>> Error: No similarly named formulae found.
>>>> ==> Searching taps...
>>>> Error: No formulae found in taps.
>>>> 
>>>> Richard
>>>> 
>>>> 
>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>> to run with PNaCl to run with WASM.
>>>>> 
>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>> 
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>> 
>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>> 
>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>> On the whole it was painless.
>>>>>> 
>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>> 
>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>> Csound library. I will also try to port my examples at
>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>> 
>>>>>> Regards,
>>>>>> Mike
>>>>>> 
>>>>>> -----------------------------------------------------
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://michaelgogins.tumblr.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>> 
>>>>>> 
>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>  wrote:
>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>> 
>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>> 
>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>> 
>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>> 
>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>> "aww snap" it says.
>>>>>>>>> 
>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>> 
>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>> 
>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>> 
>>>>>>>>> kelly
>>>>>>>>> 
>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>> 
>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>> 
>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>> 
>>>>>>>>>>> Hi,
>>>>>>>>>>> 
>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>> 
>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>> 
>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>> 
>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>> 
>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>> 
>>>>>>>>>>> Thank you!
>>>>>>>>>>> 
>>>>>>>>>>> tarmo
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>> 
>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>> 
>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>> well.
>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>> Csound.
>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> 
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>        https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>         https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>       https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 15:02
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Jun 2017, at 14:45, Richard  wrote:
> 
> Not sure what goes wrong now. I get:
> 
> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
> 
> I already changed emconfigure and emmake to use python2.7.
> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
> 
> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
> 
> But executing the line on its own it tries to do something:
> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
> Traceback (most recent call last):
>  File "./emconfigure", line 13, in 
>    emconfigure.run()
>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>    shared.Building.configure(sys.argv[1:])
>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>    process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>    errread, errwrite)
>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>    raise child_exception
> OSError: [Errno 2] No such file or directory
> 
> It looks like there is no 'configure' directory??
> 
> Richard
> 
> On 11/06/17 15:07, Richard wrote:
>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>> Now I get:
>> 
>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>> 
>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>> 
>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>> 
>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>> 
>> Richard
>> 
>> On 11/06/17 13:20, Richard wrote:
>>> Ok, I had to use these commands to get rid of that:
>>> 
>>> ./emsdk install sdk-1.37.12-64bit
>>> ./emsdk activate sdk-1.37.12-64bit
>>> 
>>> it is now installed
>>> Richard
>>> On 11/06/17 13:03, Richard wrote:
>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>> Anyway, I can't get past the first command (emsdk update):
>>>> 
>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>> Traceback (most recent call last):
>>>>  File "./emsdk", line 2199, in 
>>>>    sys.exit(main())
>>>>  File "./emsdk", line 1853, in main
>>>>    if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>> TypeError: object of type 'filter' has no len()
>>>> 
>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>> But on the command 'emsdk install latest' it failed:
>>>> ..
>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>> Installation failed!
>>>> 
>>>> Richard
>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>> You need emscripten:
>>>>> 
>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>> 
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>> 
>>>>>> How do I install WebAssembly on OS X?
>>>>>> 
>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>> I tried:
>>>>>> 
>>>>>> brew install webassembly
>>>>>> 
>>>>>> and got:
>>>>>> 
>>>>>> Error: No available formula with the name "webassembly"
>>>>>> ==> Searching for a previously deleted formula...
>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>  git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>> 
>>>>>> Error: No previously deleted formula found.
>>>>>> ==> Searching for similarly named formulae...
>>>>>> Error: No similarly named formulae found.
>>>>>> ==> Searching taps...
>>>>>> Error: No formulae found in taps.
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> 
>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>> to run with PNaCl to run with WASM.
>>>>>>> 
>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>> 
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>> 
>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>> 
>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>> On the whole it was painless.
>>>>>>>> 
>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>> 
>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>> 
>>>>>>>> Regards,
>>>>>>>> Mike
>>>>>>>> 
>>>>>>>> -----------------------------------------------------
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>  wrote:
>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>> 
>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>> 
>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>> 
>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>> 
>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>> 
>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>> 
>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>> 
>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>> 
>>>>>>>>>>> kelly
>>>>>>>>>>> 
>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>> 
>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>> 
>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>> 
>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>> well.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>         https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>       https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>         https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> 
>>> 
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 15:07
FromRichard
SubjectRe: Web-based Csound, updates, future directions
This one, but I think I have read it wrong. It actually starts with 
compiling emscription, to the impression rises that emscription IS 
webassembly...


On 11/06/17 16:00, Victor Lazzarini wrote:
> Which original website? The instructions are for building Csound for WASM and we use emscripten for that.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 12:03, Richard  wrote:
>>
>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>> Anyway, I can't get past the first command (emsdk update):
>>
>> RMA:emsdk-portable richard$ ./emsdk update
>> Traceback (most recent call last):
>>   File "./emsdk", line 2199, in 
>>     sys.exit(main())
>>   File "./emsdk", line 1853, in main
>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>> TypeError: object of type 'filter' has no len()
>>
>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>> But on the command 'emsdk install latest' it failed:
>> ..
>> Installing SDK 'sdk-1.37.13-64bit'..
>> Installing tool 'clang-e1.37.13-64bit'..
>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>> Installation failed!
>>
>> Richard
>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>> You need emscripten:
>>>
>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>
>>>> How do I install WebAssembly on OS X?
>>>>
>>>> The web page says use brew, but it does not show the exact line...
>>>> I tried:
>>>>
>>>> brew install webassembly
>>>>
>>>> and got:
>>>>
>>>> Error: No available formula with the name "webassembly"
>>>> ==> Searching for a previously deleted formula...
>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>
>>>> Error: No previously deleted formula found.
>>>> ==> Searching for similarly named formulae...
>>>> Error: No similarly named formulae found.
>>>> ==> Searching taps...
>>>> Error: No formulae found in taps.
>>>>
>>>> Richard
>>>>
>>>>
>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>> to run with PNaCl to run with WASM.
>>>>>
>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>
>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>
>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>> On the whole it was painless.
>>>>>>
>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>
>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>> Csound library. I will also try to port my examples at
>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> -----------------------------------------------------
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://michaelgogins.tumblr.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>>
>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>  wrote:
>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>
>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>
>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>
>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>> "aww snap" it says.
>>>>>>>>>
>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>
>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>
>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>
>>>>>>>>> kelly
>>>>>>>>>
>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>
>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>
>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>
>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>
>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>
>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>
>>>>>>>>>>> Thank you!
>>>>>>>>>>>
>>>>>>>>>>> tarmo
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>
>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>
>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>> well.
>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>> Csound.
>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>         https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>          https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 15:14
FromRichard
SubjectRe: Web-based Csound, updates, future directions
I followed these steps and emscription works. I compiled this nice 
little GUI package with it. 
https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e 
and it runs in the browser.

My problem is that that the csound instructions are not clear. Does the 
'download_and_install' script do all the work or do I have to clone the 
csound/emscription folder also into my local emscription folder?

Richard
On 11/06/17 16:02, Victor Lazzarini wrote:
> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>
>> Not sure what goes wrong now. I get:
>>
>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>
>> I already changed emconfigure and emmake to use python2.7.
>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>
>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>
>> But executing the line on its own it tries to do something:
>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>> Traceback (most recent call last):
>>   File "./emconfigure", line 13, in 
>>     emconfigure.run()
>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>     shared.Building.configure(sys.argv[1:])
>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>     errread, errwrite)
>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>     raise child_exception
>> OSError: [Errno 2] No such file or directory
>>
>> It looks like there is no 'configure' directory??
>>
>> Richard
>>
>> On 11/06/17 15:07, Richard wrote:
>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>> Now I get:
>>>
>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>
>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>
>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>
>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>
>>> Richard
>>>
>>> On 11/06/17 13:20, Richard wrote:
>>>> Ok, I had to use these commands to get rid of that:
>>>>
>>>> ./emsdk install sdk-1.37.12-64bit
>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>
>>>> it is now installed
>>>> Richard
>>>> On 11/06/17 13:03, Richard wrote:
>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>
>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>> Traceback (most recent call last):
>>>>>   File "./emsdk", line 2199, in 
>>>>>     sys.exit(main())
>>>>>   File "./emsdk", line 1853, in main
>>>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>> TypeError: object of type 'filter' has no len()
>>>>>
>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>> But on the command 'emsdk install latest' it failed:
>>>>> ..
>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>> Installation failed!
>>>>>
>>>>> Richard
>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>> You need emscripten:
>>>>>>
>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>
>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>
>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>> I tried:
>>>>>>>
>>>>>>> brew install webassembly
>>>>>>>
>>>>>>> and got:
>>>>>>>
>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>
>>>>>>> Error: No previously deleted formula found.
>>>>>>> ==> Searching for similarly named formulae...
>>>>>>> Error: No similarly named formulae found.
>>>>>>> ==> Searching taps...
>>>>>>> Error: No formulae found in taps.
>>>>>>>
>>>>>>> Richard
>>>>>>>
>>>>>>>
>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>
>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>
>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>
>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>> On the whole it was painless.
>>>>>>>>>
>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>
>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>> -----------------------------------------------------
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>  wrote:
>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>
>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>
>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>
>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>
>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>
>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>
>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>
>>>>>>>>>>>> kelly
>>>>>>>>>>>>
>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>          https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 15:59
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop). 
Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.

The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Jun 2017, at 15:14, Richard  wrote:
> 
> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
> 
> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
> 
> Richard
> On 11/06/17 16:02, Victor Lazzarini wrote:
>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>> 
>>> Not sure what goes wrong now. I get:
>>> 
>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>> 
>>> I already changed emconfigure and emmake to use python2.7.
>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>> 
>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>> 
>>> But executing the line on its own it tries to do something:
>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>> Traceback (most recent call last):
>>>  File "./emconfigure", line 13, in 
>>>    emconfigure.run()
>>>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>    shared.Building.configure(sys.argv[1:])
>>>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>    process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>    errread, errwrite)
>>>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>    raise child_exception
>>> OSError: [Errno 2] No such file or directory
>>> 
>>> It looks like there is no 'configure' directory??
>>> 
>>> Richard
>>> 
>>> On 11/06/17 15:07, Richard wrote:
>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>> Now I get:
>>>> 
>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>> 
>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>> 
>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>> 
>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>> 
>>>> Richard
>>>> 
>>>> On 11/06/17 13:20, Richard wrote:
>>>>> Ok, I had to use these commands to get rid of that:
>>>>> 
>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>> 
>>>>> it is now installed
>>>>> Richard
>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>> 
>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>> Traceback (most recent call last):
>>>>>>  File "./emsdk", line 2199, in 
>>>>>>    sys.exit(main())
>>>>>>  File "./emsdk", line 1853, in main
>>>>>>    if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>> TypeError: object of type 'filter' has no len()
>>>>>> 
>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>> ..
>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>> Installation failed!
>>>>>> 
>>>>>> Richard
>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>> You need emscripten:
>>>>>>> 
>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>> 
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>> 
>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>> 
>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>> I tried:
>>>>>>>> 
>>>>>>>> brew install webassembly
>>>>>>>> 
>>>>>>>> and got:
>>>>>>>> 
>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>  git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>> 
>>>>>>>> Error: No previously deleted formula found.
>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>> Error: No similarly named formulae found.
>>>>>>>> ==> Searching taps...
>>>>>>>> Error: No formulae found in taps.
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>> 
>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>> 
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>> 
>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>> 
>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>> On the whole it was painless.
>>>>>>>>>> 
>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>> 
>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>> 
>>>>>>>>>> Regards,
>>>>>>>>>> Mike
>>>>>>>>>> 
>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>> Michael Gogins
>>>>>>>>>> Irreducible Productions
>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>  wrote:
>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> 
>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>> 
>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>> 
>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> kelly
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>         https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 16:03
FromRichard
SubjectRe: Web-based Csound, updates, future directions
Ok, but what sources and where do I put them? Do I need the whole csound 
folder from git or just the emscripten folder?

Richard


On 11/06/17 16:59, Victor Lazzarini wrote:
> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>
> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>
>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>
>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>
>> Richard
>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>
>>>> Not sure what goes wrong now. I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>
>>>> I already changed emconfigure and emmake to use python2.7.
>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>
>>>> But executing the line on its own it tries to do something:
>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>> Traceback (most recent call last):
>>>>   File "./emconfigure", line 13, in 
>>>>     emconfigure.run()
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>     shared.Building.configure(sys.argv[1:])
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>     errread, errwrite)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>     raise child_exception
>>>> OSError: [Errno 2] No such file or directory
>>>>
>>>> It looks like there is no 'configure' directory??
>>>>
>>>> Richard
>>>>
>>>> On 11/06/17 15:07, Richard wrote:
>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>> Now I get:
>>>>>
>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>
>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>
>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>
>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>
>>>>> Richard
>>>>>
>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>
>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>
>>>>>> it is now installed
>>>>>> Richard
>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>
>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "./emsdk", line 2199, in 
>>>>>>>     sys.exit(main())
>>>>>>>   File "./emsdk", line 1853, in main
>>>>>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>
>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>> ..
>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>> Installation failed!
>>>>>>>
>>>>>>> Richard
>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>> You need emscripten:
>>>>>>>>
>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>
>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>
>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>> I tried:
>>>>>>>>>
>>>>>>>>> brew install webassembly
>>>>>>>>>
>>>>>>>>> and got:
>>>>>>>>>
>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>
>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>> ==> Searching taps...
>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>
>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>
>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>
>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>
>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>
>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Mike
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>  wrote:
>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 16:08
FromSteven Yi
SubjectRe: Web-based Csound, updates, future directions

Did you read the part about paths and 'source emsdk_set_env.sh' ? (The script name may be emsd_env.sh, I forget which is the one to run). This is mentioned in the emscripten manual as well as by the emsdk too after you install and activate the tools.


On Sun, Jun 11, 2017, 8:03 AM Richard <zappfinger@gmail.com> wrote:
Ok, but what sources and where do I put them? Do I need the whole csound
folder from git or just the emscripten folder?

Richard


On 11/06/17 16:59, Victor Lazzarini wrote:
> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>
> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>
>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>
>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>
>> Richard
>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Not sure what goes wrong now. I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>
>>>> I already changed emconfigure and emmake to use python2.7.
>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>
>>>> But executing the line on its own it tries to do something:
>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>> Traceback (most recent call last):
>>>>   File "./emconfigure", line 13, in <module>
>>>>     emconfigure.run()
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>     shared.Building.configure(sys.argv[1:])
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>     errread, errwrite)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>     raise child_exception
>>>> OSError: [Errno 2] No such file or directory
>>>>
>>>> It looks like there is no 'configure' directory??
>>>>
>>>> Richard
>>>>
>>>> On 11/06/17 15:07, Richard wrote:
>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>> Now I get:
>>>>>
>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>
>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>
>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>
>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>
>>>>> Richard
>>>>>
>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>
>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>
>>>>>> it is now installed
>>>>>> Richard
>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>
>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "./emsdk", line 2199, in <module>
>>>>>>>     sys.exit(main())
>>>>>>>   File "./emsdk", line 1853, in main
>>>>>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>
>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>> ..
>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>> Installation failed!
>>>>>>>
>>>>>>> Richard
>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>> You need emscripten:
>>>>>>>>
>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>
>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>
>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>> I tried:
>>>>>>>>>
>>>>>>>>> brew install webassembly
>>>>>>>>>
>>>>>>>>> and got:
>>>>>>>>>
>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>
>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>> ==> Searching taps...
>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>
>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>
>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>
>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>
>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Mike
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-11 18:25
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all 
steps in the Emscripten instructions.


========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Jun 2017, at 16:03, Richard  wrote:
> 
> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
> 
> Richard
> 
> 
> On 11/06/17 16:59, Victor Lazzarini wrote:
>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>> 
>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>> 
>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>> 
>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>> 
>>> Richard
>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>> 
>>>>> Not sure what goes wrong now. I get:
>>>>> 
>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>> 
>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>> 
>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>> 
>>>>> But executing the line on its own it tries to do something:
>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>> Traceback (most recent call last):
>>>>>  File "./emconfigure", line 13, in 
>>>>>    emconfigure.run()
>>>>>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>    shared.Building.configure(sys.argv[1:])
>>>>>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>    process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>    errread, errwrite)
>>>>>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>    raise child_exception
>>>>> OSError: [Errno 2] No such file or directory
>>>>> 
>>>>> It looks like there is no 'configure' directory??
>>>>> 
>>>>> Richard
>>>>> 
>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>> Now I get:
>>>>>> 
>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>> 
>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>> 
>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>> 
>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>> 
>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>> 
>>>>>>> it is now installed
>>>>>>> Richard
>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>> 
>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>> Traceback (most recent call last):
>>>>>>>>  File "./emsdk", line 2199, in 
>>>>>>>>    sys.exit(main())
>>>>>>>>  File "./emsdk", line 1853, in main
>>>>>>>>    if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>> 
>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>> ..
>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>> Installation failed!
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>> You need emscripten:
>>>>>>>>> 
>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>> 
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>> 
>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>> 
>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>> I tried:
>>>>>>>>>> 
>>>>>>>>>> brew install webassembly
>>>>>>>>>> 
>>>>>>>>>> and got:
>>>>>>>>>> 
>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>  git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>> 
>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>> ==> Searching taps...
>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>> 
>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>> 
>>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> 
>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>> 
>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>> 
>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>> 
>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>> 
>>>>>>>>>>>> Regards,
>>>>>>>>>>>> Mike
>>>>>>>>>>>> 
>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 20:35
FromRichard
SubjectRe: Web-based Csound, updates, future directions
Tried it all again, but I cannot get passed the initial step of running 
the script ( I also upgraded my command line tools):

RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
checking build system type... i686-pc-none
checking host system type... i686-pc-none
checking target system type... i686-pc-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... 
/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in 
`/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR:root:Configure step failed with non-zero return code 1! Command 
line: ['./configure', '--enable-static', '--disable-shared', 
'--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', 
'--disable-alsa', '--disable-external-libs', '--build=i686'] at 
/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
make: *** No targets specified and no makefile found.  Stop.


On 11/06/17 19:25, Victor Lazzarini wrote:
> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
> steps in the Emscripten instructions.
>
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 16:03, Richard  wrote:
>>
>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>
>> Richard
>>
>>
>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>
>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>>>
>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>
>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>
>>>> Richard
>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>>>
>>>>>> Not sure what goes wrong now. I get:
>>>>>>
>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>
>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>
>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>
>>>>>> But executing the line on its own it tries to do something:
>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>> Traceback (most recent call last):
>>>>>>   File "./emconfigure", line 13, in 
>>>>>>     emconfigure.run()
>>>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>     shared.Building.configure(sys.argv[1:])
>>>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>     errread, errwrite)
>>>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>     raise child_exception
>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>
>>>>>> It looks like there is no 'configure' directory??
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>> Now I get:
>>>>>>>
>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>
>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>
>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>
>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>
>>>>>>> Richard
>>>>>>>
>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>
>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>
>>>>>>>> it is now installed
>>>>>>>> Richard
>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>
>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>   File "./emsdk", line 2199, in 
>>>>>>>>>     sys.exit(main())
>>>>>>>>>   File "./emsdk", line 1853, in main
>>>>>>>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>
>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>> ..
>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>> Installation failed!
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>> You need emscripten:
>>>>>>>>>>
>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>>>
>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>
>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>> I tried:
>>>>>>>>>>>
>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>
>>>>>>>>>>> and got:
>>>>>>>>>>>
>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>
>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>
>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>
>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>
>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>        https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>          https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-11 21:23
FromRichard
SubjectRe: Web-based Csound, updates, future directions

Yes, I've done that several times. The output looks OK:

RMA:emsdk-portable richard$ source ./emsdk_env.sh
Adding directories to PATH:
PATH += /Users/richard/Downloads/emsdk-portable
PATH += /Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit
PATH += /Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin
PATH += /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12

Setting environment variables:
EMSDK = /Users/richard/Downloads/emsdk-portable
EM_CONFIG = /Users/richard/.emscripten
BINARYEN_ROOT = /Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen
EMSCRIPTEN = /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12


On 11/06/17 17:08, Steven Yi wrote:

Did you read the part about paths and 'source emsdk_set_env.sh' ? (The script name may be emsd_env.sh, I forget which is the one to run). This is mentioned in the emscripten manual as well as by the emsdk too after you install and activate the tools.


On Sun, Jun 11, 2017, 8:03 AM Richard <zappfinger@gmail.com> wrote:
Ok, but what sources and where do I put them? Do I need the whole csound
folder from git or just the emscripten folder?

Richard


On 11/06/17 16:59, Victor Lazzarini wrote:
> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>
> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>
>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>
>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>
>> Richard
>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Not sure what goes wrong now. I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>
>>>> I already changed emconfigure and emmake to use python2.7.
>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>
>>>> But executing the line on its own it tries to do something:
>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>> Traceback (most recent call last):
>>>>   File "./emconfigure", line 13, in <module>
>>>>     emconfigure.run()
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>     shared.Building.configure(sys.argv[1:])
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>     errread, errwrite)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>     raise child_exception
>>>> OSError: [Errno 2] No such file or directory
>>>>
>>>> It looks like there is no 'configure' directory??
>>>>
>>>> Richard
>>>>
>>>> On 11/06/17 15:07, Richard wrote:
>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>> Now I get:
>>>>>
>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>
>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>
>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>
>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>
>>>>> Richard
>>>>>
>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>
>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>
>>>>>> it is now installed
>>>>>> Richard
>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>
>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "./emsdk", line 2199, in <module>
>>>>>>>     sys.exit(main())
>>>>>>>   File "./emsdk", line 1853, in main
>>>>>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>
>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>> ..
>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>> Installation failed!
>>>>>>>
>>>>>>> Richard
>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>> You need emscripten:
>>>>>>>>
>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>
>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>
>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>> I tried:
>>>>>>>>>
>>>>>>>>> brew install webassembly
>>>>>>>>>
>>>>>>>>> and got:
>>>>>>>>>
>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>
>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>> ==> Searching taps...
>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>
>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>
>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>
>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>
>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Mike
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2017-06-11 21:45
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
did you set the EMSCRIPTEN_ROOT variable? That needs to be done.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 11 Jun 2017, at 21:24, Richard <zappfinger@GMAIL.COM> wrote:

Yes, I've done that several times. The output looks OK:

RMA:emsdk-portable richard$ source ./emsdk_env.sh
Adding directories to PATH:
PATH += /Users/richard/Downloads/emsdk-portable
PATH += /Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit
PATH += /Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin
PATH += /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12

Setting environment variables:
EMSDK = /Users/richard/Downloads/emsdk-portable
EM_CONFIG = /Users/richard/.emscripten
BINARYEN_ROOT = /Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen
EMSCRIPTEN = /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12


On 11/06/17 17:08, Steven Yi wrote:

Did you read the part about paths and 'source emsdk_set_env.sh' ? (The script name may be emsd_env.sh, I forget which is the one to run). This is mentioned in the emscripten manual as well as by the emsdk too after you install and activate the tools.


On Sun, Jun 11, 2017, 8:03 AM Richard <zappfinger@gmail.com> wrote:
Ok, but what sources and where do I put them? Do I need the whole csound
folder from git or just the emscripten folder?

Richard


On 11/06/17 16:59, Victor Lazzarini wrote:
> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>
> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>
>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>
>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>
>> Richard
>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Not sure what goes wrong now. I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>
>>>> I already changed emconfigure and emmake to use python2.7.
>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>
>>>> But executing the line on its own it tries to do something:
>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>> Traceback (most recent call last):
>>>>   File "./emconfigure", line 13, in <module>
>>>>     emconfigure.run()
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>     shared.Building.configure(sys.argv[1:])
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>     errread, errwrite)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>     raise child_exception
>>>> OSError: [Errno 2] No such file or directory
>>>>
>>>> It looks like there is no 'configure' directory??
>>>>
>>>> Richard
>>>>
>>>> On 11/06/17 15:07, Richard wrote:
>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>> Now I get:
>>>>>
>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>
>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>
>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>
>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>
>>>>> Richard
>>>>>
>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>
>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>
>>>>>> it is now installed
>>>>>> Richard
>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>
>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "./emsdk", line 2199, in <module>
>>>>>>>     sys.exit(main())
>>>>>>>   File "./emsdk", line 1853, in main
>>>>>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>
>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>> ..
>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>> Installation failed!
>>>>>>>
>>>>>>> Richard
>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>> You need emscripten:
>>>>>>>>
>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>
>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>
>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>> I tried:
>>>>>>>>>
>>>>>>>>> brew install webassembly
>>>>>>>>>
>>>>>>>>> and got:
>>>>>>>>>
>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>
>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>> ==> Searching taps...
>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>
>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>
>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>
>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>
>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Mike
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-11 21:53
FromMichael Gogins
SubjectRe: Web-based Csound, updates, future directions
When I did this clang silently failed to build because of running out of memory. Check for a zero size clang binary file, if you find it delete it, then run the build script that compiles the emsdk with -j1 for just one thread.

Also there are WebAssembly only build instructions at the WebAssembly Web site.

I have updated the README.md in the emscripten due to reflect these points.

Regards,
Mike

On Jun 11, 2017 16:23, "Richard" <zappfinger@gmail.com> wrote:

Yes, I've done that several times. The output looks OK:

RMA:emsdk-portable richard$ source ./emsdk_env.sh
Adding directories to PATH:
PATH += /Users/richard/Downloads/emsdk-portable
PATH += /Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit
PATH += /Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin
PATH += /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12

Setting environment variables:
EMSDK = /Users/richard/Downloads/emsdk-portable
EM_CONFIG = /Users/richard/.emscripten
BINARYEN_ROOT = /Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen
EMSCRIPTEN = /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12


On 11/06/17 17:08, Steven Yi wrote:

Did you read the part about paths and 'source emsdk_set_env.sh' ? (The script name may be emsd_env.sh, I forget which is the one to run). This is mentioned in the emscripten manual as well as by the emsdk too after you install and activate the tools.


On Sun, Jun 11, 2017, 8:03 AM Richard <zappfinger@gmail.com> wrote:
Ok, but what sources and where do I put them? Do I need the whole csound
folder from git or just the emscripten folder?

Richard


On 11/06/17 16:59, Victor Lazzarini wrote:
> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>
> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>
>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>
>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>
>> Richard
>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Not sure what goes wrong now. I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>
>>>> I already changed emconfigure and emmake to use python2.7.
>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>
>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>
>>>> But executing the line on its own it tries to do something:
>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>> Traceback (most recent call last):
>>>>   File "./emconfigure", line 13, in <module>
>>>>     emconfigure.run()
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>     shared.Building.configure(sys.argv[1:])
>>>>   File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>     process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>     errread, errwrite)
>>>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>     raise child_exception
>>>> OSError: [Errno 2] No such file or directory
>>>>
>>>> It looks like there is no 'configure' directory??
>>>>
>>>> Richard
>>>>
>>>> On 11/06/17 15:07, Richard wrote:
>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>> Now I get:
>>>>>
>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>
>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>
>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>
>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>
>>>>> Richard
>>>>>
>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>
>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>
>>>>>> it is now installed
>>>>>> Richard
>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>
>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "./emsdk", line 2199, in <module>
>>>>>>>     sys.exit(main())
>>>>>>>   File "./emsdk", line 1853, in main
>>>>>>>     if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>
>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>> ..
>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>> Installation failed!
>>>>>>>
>>>>>>> Richard
>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>> You need emscripten:
>>>>>>>>
>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>
>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>
>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>> I tried:
>>>>>>>>>
>>>>>>>>> brew install webassembly
>>>>>>>>>
>>>>>>>>> and got:
>>>>>>>>>
>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>   git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>
>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>> ==> Searching taps...
>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>
>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>
>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>
>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>
>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Mike
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-12 09:29
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
I have run it again, just to check it and this is the output from the script (wget & configure) just before compilation starts.
You can see where it differs from yours and maybe we can find out why it is not configuring properly. I would suggest
deleting everything under ./deps and starting again from scratch


============
ligeti:emscripten victor$ sh update_example_libs_from_dist_wasm.sh 
ligeti:emscripten victor$ sh build
build/         build-wasm/    build-wasm.sh  build.sh       
ligeti:emscripten victor$ ls *.sh
build-wasm.sh				download_and_build_libsndfile_wasm.sh	update_example_libs_from_dist.sh
build.sh				release-wasm.sh				update_example_libs_from_dist_wasm.sh
download_and_build_libsndfile.sh	release.sh				wasm-build.sh
ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh 
--2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
Resolving www.mega-nerd.com... 97.107.128.207
Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1060692 (1.0M) [application/x-gzip]
Saving to: `libsndfile-1.0.25.tar.gz.1'

100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s    

2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]

patching file libsndfile-1.0.25/src/sndfile.c
checking build system type... i686-pc-none
checking host system type... i686-pc-none
checking target system type... i686-pc-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
checking dynamic linker characteristics... ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking for windres... no
checking for autogen... no
checking for wine... no
checking whether ln -s works... yes
checking for ANSI C header files... (cached) no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether S_IRGRP is declared... yes
checking C99 struct flexible array support... yes
checking size of wchar_t... 4
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of float... 4
checking size of double... 8
checking size of void*... 8
checking size of size_t... 4
checking size of int64_t... 8
checking size of long long... 8
checking size of off_t... 4
checking size of loff_t... 0
checking size of off64_t... 0
checking for getconf... getconf
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking size of off_t... 4
configure: WARNING: This machine does not seem to support 64 bit file offsets.
checking for ssize_t... yes
checking size of ssize_t... 4
checking processor byte ordering... little
checking for malloc... no
checking for calloc... no
checking for realloc... no
checking for free... no
checking for open... no
checking for read... no
checking for write... no
checking for lseek... no
checking for pread... no
checking for pwrite... no
checking for fstat... no
checking for ftruncate... no
checking for fsync... no
checking for snprintf... no
checking for vsnprintf... no
checking for gmtime... yes
checking for gmtime_r... yes
checking for localtime... yes
checking for localtime_r... yes
checking for gettimeofday... yes
checking for mmap... no
checking for getpagesize... yes
checking for setlocale... no
checking for pipe... no
checking for waitpid... yes
checking for floor in -lm... no
checking for floor... no
checking for ceil... no
checking for fmod... no
checking for lrint... yes
checking for lrintf... yes
checking for octave... no
checking for mkoctfile... no
checking for octave-config... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***

configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
configure: WARNING: *** libvorbis) is either missing (possibly only the development
configure: WARNING: *** headers) or is of an unsupported version.
configure: WARNING: ***
configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
configure: WARNING: *** are an all or nothing affair.

checking processor clipping capabilities... disabled
checking sndio.h usability... no
checking sndio.h presence... no
checking for sndio.h... no
configure: WARNING: Touching files in directory tests/.
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')

checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating regtest/Makefile
config.status: creating M4/Makefile
config.status: creating doc/Makefile
config.status: creating Win32/Makefile
config.status: creating Octave/Makefile
config.status: creating programs/Makefile
config.status: creating Makefile
config.status: creating src/version-metadata.rc
config.status: creating tests/test_wrapper.sh
config.status: creating tests/pedantic-header-test.sh
config.status: creating doc/libsndfile.css
config.status: creating build-test-tarball.mk
config.status: creating libsndfile.spec
config.status: creating sndfile.pc
config.status: creating src/sndfile.h
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-

  Configuration summary :

    libsndfile version : .................. 1.0.25

    Host CPU : ............................ i686
    Host Vendor : ......................... pc
    Host OS : ............................. none

    Experimental code : ................... no
    Using ALSA in example programs : ...... no
    External FLAC/Ogg/Vorbis : ............ no

  Tools :

    Compiler is GCC : ..................... yes
    GCC version : ......................... 
./configure: line 22318: test: -lt: unary operator expected

  Installation directories :

    Library directory : ................... /usr/local/lib
    Program directory : ................... /usr/local/bin
    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html

Compiling some other packages against libsndfile may require
the addition of '/usr/local/lib/pkgconfig' to the
PKG_CONFIG_PATH environment variable.



========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Jun 2017, at 20:35, Richard  wrote:
> 
> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
> 
> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
> checking build system type... i686-pc-none
> checking host system type... i686-pc-none
> checking target system type... i686-pc-none
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
> make: *** No targets specified and no makefile found.  Stop.
> 
> 
> On 11/06/17 19:25, Victor Lazzarini wrote:
>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>> steps in the Emscripten instructions.
>> 
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 11 Jun 2017, at 16:03, Richard  wrote:
>>> 
>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>> 
>>> Richard
>>> 
>>> 
>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>> 
>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>>>> 
>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>> 
>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>> 
>>>>> Richard
>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>> 
>>>>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>>>> 
>>>>>>> Not sure what goes wrong now. I get:
>>>>>>> 
>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>> 
>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>> 
>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>> 
>>>>>>> But executing the line on its own it tries to do something:
>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>> Traceback (most recent call last):
>>>>>>>  File "./emconfigure", line 13, in 
>>>>>>>    emconfigure.run()
>>>>>>>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>    shared.Building.configure(sys.argv[1:])
>>>>>>>  File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>    process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>    errread, errwrite)
>>>>>>>  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>    raise child_exception
>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>> 
>>>>>>> It looks like there is no 'configure' directory??
>>>>>>> 
>>>>>>> Richard
>>>>>>> 
>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>> Now I get:
>>>>>>>> 
>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>> 
>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>> 
>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>> 
>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>> 
>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>> 
>>>>>>>>> it is now installed
>>>>>>>>> Richard
>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>> 
>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>  File "./emsdk", line 2199, in 
>>>>>>>>>>    sys.exit(main())
>>>>>>>>>>  File "./emsdk", line 1853, in main
>>>>>>>>>>    if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>> 
>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>> ..
>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>> Installation failed!
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>> You need emscripten:
>>>>>>>>>>> 
>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>> 
>>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> 
>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>> 
>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>> I tried:
>>>>>>>>>>>> 
>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>> 
>>>>>>>>>>>> and got:
>>>>>>>>>>>> 
>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>  git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>> 
>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>> 
>>>>>>>>>>>> Richard
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>> 
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>       https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-12 09:35
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh 
Ignore the commands before this in my previous email, I just copied from the wrong point.

Start from:
> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh 
> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
> Resolving www.mega-nerd.com... 97.107.128.207
> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 1060692 (1.0M) [application/x-gzip]
> Saving to: `libsndfile-1.0.25.tar.gz.1'
> 
> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s    
> 
> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
> 
> patching file libsndfile-1.0.25/src/sndfile.c
> checking build system type... i686-pc-none
> checking host system type... i686-pc-none
> checking target system type... i686-pc-none
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables... 
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
> checking whether we are using the GNU C++ compiler... yes
> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
> checking for a sed that does not truncate output... /usr/bin/sed
> checking how to print strings... printf
> checking for a sed that does not truncate output... (cached) /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for fgrep... /usr/bin/grep -F
> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 196608
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... unknown
> checking for dlltool... no
> checking how to associate runtime and link libraries... printf %s\n
> checking for archiver @FILE support... no
> checking for strip... strip
> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
> checking for sysroot... no
> checking for mt... no
> checking if : is a manifest tool... no
> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
> checking for ANSI C header files... no
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
> checking dynamic linker characteristics... ERROR:root:no input files
> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
> no
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... no
> checking if libtool supports shared libraries... no
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
> ERROR:root:no input files
> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
> checking dynamic linker characteristics... no
> checking how to hardcode library paths into programs... immediate
> checking for windres... no
> checking for autogen... no
> checking for wine... no
> checking whether ln -s works... yes
> checking for ANSI C header files... (cached) no
> checking endian.h usability... yes
> checking endian.h presence... yes
> checking for endian.h... yes
> checking byteswap.h usability... yes
> checking byteswap.h presence... yes
> checking for byteswap.h... yes
> checking locale.h usability... yes
> checking locale.h presence... yes
> checking for locale.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking whether S_IRGRP is declared... yes
> checking C99 struct flexible array support... yes
> checking size of wchar_t... 4
> checking size of short... 2
> checking size of int... 4
> checking size of long... 8
> checking size of float... 4
> checking size of double... 8
> checking size of void*... 8
> checking size of size_t... 4
> checking size of int64_t... 8
> checking size of long long... 8
> checking size of off_t... 4
> checking size of loff_t... 0
> checking size of off64_t... 0
> checking for getconf... getconf
> checking for CFLAGS value to request large file support... no
> checking for LDFLAGS value to request large file support... no
> checking for LIBS value to request large file support... no
> checking for _FILE_OFFSET_BITS... no
> checking for _LARGEFILE_SOURCE... no
> checking for _LARGE_FILES... no
> checking size of off_t... 4
> configure: WARNING: This machine does not seem to support 64 bit file offsets.
> checking for ssize_t... yes
> checking size of ssize_t... 4
> checking processor byte ordering... little
> checking for malloc... no
> checking for calloc... no
> checking for realloc... no
> checking for free... no
> checking for open... no
> checking for read... no
> checking for write... no
> checking for lseek... no
> checking for pread... no
> checking for pwrite... no
> checking for fstat... no
> checking for ftruncate... no
> checking for fsync... no
> checking for snprintf... no
> checking for vsnprintf... no
> checking for gmtime... yes
> checking for gmtime_r... yes
> checking for localtime... yes
> checking for localtime_r... yes
> checking for gettimeofday... yes
> checking for mmap... no
> checking for getpagesize... yes
> checking for setlocale... no
> checking for pipe... no
> checking for waitpid... yes
> checking for floor in -lm... no
> checking for floor... no
> checking for ceil... no
> checking for fmod... no
> checking for lrint... yes
> checking for lrintf... yes
> checking for octave... no
> checking for mkoctfile... no
> checking for octave-config... no
> checking for pkg-config... /usr/local/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
> 
> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
> configure: WARNING: *** libvorbis) is either missing (possibly only the development
> configure: WARNING: *** headers) or is of an unsupported version.
> configure: WARNING: ***
> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
> configure: WARNING: *** are an all or nothing affair.
> 
> checking processor clipping capabilities... disabled
> checking sndio.h usability... no
> checking sndio.h presence... no
> checking for sndio.h... no
> configure: WARNING: Touching files in directory tests/.
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
> 
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
> configure: creating ./config.status
> config.status: creating src/Makefile
> config.status: creating man/Makefile
> config.status: creating examples/Makefile
> config.status: creating tests/Makefile
> config.status: creating regtest/Makefile
> config.status: creating M4/Makefile
> config.status: creating doc/Makefile
> config.status: creating Win32/Makefile
> config.status: creating Octave/Makefile
> config.status: creating programs/Makefile
> config.status: creating Makefile
> config.status: creating src/version-metadata.rc
> config.status: creating tests/test_wrapper.sh
> config.status: creating tests/pedantic-header-test.sh
> config.status: creating doc/libsndfile.css
> config.status: creating build-test-tarball.mk
> config.status: creating libsndfile.spec
> config.status: creating sndfile.pc
> config.status: creating src/sndfile.h
> config.status: creating src/config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> 
> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
> 
>  Configuration summary :
> 
>    libsndfile version : .................. 1.0.25
> 
>    Host CPU : ............................ i686
>    Host Vendor : ......................... pc
>    Host OS : ............................. none
> 
>    Experimental code : ................... no
>    Using ALSA in example programs : ...... no
>    External FLAC/Ogg/Vorbis : ............ no
> 
>  Tools :
> 
>    Compiler is GCC : ..................... yes
>    GCC version : ......................... 
> ./configure: line 22318: test: -lt: unary operator expected
> 
>  Installation directories :
> 
>    Library directory : ................... /usr/local/lib
>    Program directory : ................... /usr/local/bin
>    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
> 
> Compiling some other packages against libsndfile may require
> the addition of '/usr/local/lib/pkgconfig' to the
> PKG_CONFIG_PATH environment variable.
> 
> 
> 
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 11 Jun 2017, at 20:35, Richard  wrote:
>> 
>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>> 
>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>> checking build system type... i686-pc-none
>> checking host system type... i686-pc-none
>> checking target system type... i686-pc-none
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>> checking for gawk... no
>> checking for mawk... no
>> checking for nawk... no
>> checking for awk... awk
>> checking whether make sets $(MAKE)... yes
>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>> configure: error: cannot run C compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details
>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>> make: *** No targets specified and no makefile found.  Stop.
>> 
>> 
>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>> steps in the Emscripten instructions.
>>> 
>>> 
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 11 Jun 2017, at 16:03, Richard  wrote:
>>>> 
>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>> 
>>>> Richard
>>>> 
>>>> 
>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>> 
>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>>>>> 
>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>> 
>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>> 
>>>>>> Richard
>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>>>>> 
>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>> 
>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>> 
>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>> 
>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>> 
>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>> Traceback (most recent call last):
>>>>>>>> File "./emconfigure", line 13, in 
>>>>>>>>   emconfigure.run()
>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>   shared.Building.configure(sys.argv[1:])
>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>   errread, errwrite)
>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>   raise child_exception
>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>> 
>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>> Now I get:
>>>>>>>>> 
>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>> 
>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>> 
>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>> 
>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>> 
>>>>>>>>> Richard
>>>>>>>>> 
>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>> 
>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>> 
>>>>>>>>>> it is now installed
>>>>>>>>>> Richard
>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>> 
>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>> File "./emsdk", line 2199, in 
>>>>>>>>>>>   sys.exit(main())
>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>> 
>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>> ..
>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>> Installation failed!
>>>>>>>>>>> 
>>>>>>>>>>> Richard
>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>> 
>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>> 
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>> 
>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>> 
>>>>>>>>>>>>> and got:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>    https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-12 11:06
FromRichard van Bemmelen
SubjectRe: Web-based Csound, updates, future directions
Thanks, I'll look at it tonight...

2017-06-12 10:35 GMT+02:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
Ignore the commands before this in my previous email, I just copied from the wrong point.

Start from:
> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
> Resolving www.mega-nerd.com... 97.107.128.207
> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 1060692 (1.0M) [application/x-gzip]
> Saving to: `libsndfile-1.0.25.tar.gz.1'
>
> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s
>
> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
>
> patching file libsndfile-1.0.25/src/sndfile.c
> checking build system type... i686-pc-none
> checking host system type... i686-pc-none
> checking target system type... i686-pc-none
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
> checking whether we are using the GNU C++ compiler... yes
> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
> checking for a sed that does not truncate output... /usr/bin/sed
> checking how to print strings... printf
> checking for a sed that does not truncate output... (cached) /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for fgrep... /usr/bin/grep -F
> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 196608
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... unknown
> checking for dlltool... no
> checking how to associate runtime and link libraries... printf %s\n
> checking for archiver @FILE support... no
> checking for strip... strip
> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
> checking for sysroot... no
> checking for mt... no
> checking if : is a manifest tool... no
> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
> checking for ANSI C header files... no
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
> checking dynamic linker characteristics... ERROR:root:no input files
> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
> no
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... no
> checking if libtool supports shared libraries... no
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
> ERROR:root:no input files
> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
> checking dynamic linker characteristics... no
> checking how to hardcode library paths into programs... immediate
> checking for windres... no
> checking for autogen... no
> checking for wine... no
> checking whether ln -s works... yes
> checking for ANSI C header files... (cached) no
> checking endian.h usability... yes
> checking endian.h presence... yes
> checking for endian.h... yes
> checking byteswap.h usability... yes
> checking byteswap.h presence... yes
> checking for byteswap.h... yes
> checking locale.h usability... yes
> checking locale.h presence... yes
> checking for locale.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking whether S_IRGRP is declared... yes
> checking C99 struct flexible array support... yes
> checking size of wchar_t... 4
> checking size of short... 2
> checking size of int... 4
> checking size of long... 8
> checking size of float... 4
> checking size of double... 8
> checking size of void*... 8
> checking size of size_t... 4
> checking size of int64_t... 8
> checking size of long long... 8
> checking size of off_t... 4
> checking size of loff_t... 0
> checking size of off64_t... 0
> checking for getconf... getconf
> checking for CFLAGS value to request large file support... no
> checking for LDFLAGS value to request large file support... no
> checking for LIBS value to request large file support... no
> checking for _FILE_OFFSET_BITS... no
> checking for _LARGEFILE_SOURCE... no
> checking for _LARGE_FILES... no
> checking size of off_t... 4
> configure: WARNING: This machine does not seem to support 64 bit file offsets.
> checking for ssize_t... yes
> checking size of ssize_t... 4
> checking processor byte ordering... little
> checking for malloc... no
> checking for calloc... no
> checking for realloc... no
> checking for free... no
> checking for open... no
> checking for read... no
> checking for write... no
> checking for lseek... no
> checking for pread... no
> checking for pwrite... no
> checking for fstat... no
> checking for ftruncate... no
> checking for fsync... no
> checking for snprintf... no
> checking for vsnprintf... no
> checking for gmtime... yes
> checking for gmtime_r... yes
> checking for localtime... yes
> checking for localtime_r... yes
> checking for gettimeofday... yes
> checking for mmap... no
> checking for getpagesize... yes
> checking for setlocale... no
> checking for pipe... no
> checking for waitpid... yes
> checking for floor in -lm... no
> checking for floor... no
> checking for ceil... no
> checking for fmod... no
> checking for lrint... yes
> checking for lrintf... yes
> checking for octave... no
> checking for mkoctfile... no
> checking for octave-config... no
> checking for pkg-config... /usr/local/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
>
> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
> configure: WARNING: *** libvorbis) is either missing (possibly only the development
> configure: WARNING: *** headers) or is of an unsupported version.
> configure: WARNING: ***
> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
> configure: WARNING: *** are an all or nothing affair.
>
> checking processor clipping capabilities... disabled
> checking sndio.h usability... no
> checking sndio.h presence... no
> checking for sndio.h... no
> configure: WARNING: Touching files in directory tests/.
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
> configure: creating ./config.status
> config.status: creating src/Makefile
> config.status: creating man/Makefile
> config.status: creating examples/Makefile
> config.status: creating tests/Makefile
> config.status: creating regtest/Makefile
> config.status: creating M4/Makefile
> config.status: creating doc/Makefile
> config.status: creating Win32/Makefile
> config.status: creating Octave/Makefile
> config.status: creating programs/Makefile
> config.status: creating Makefile
> config.status: creating src/version-metadata.rc
> config.status: creating tests/test_wrapper.sh
> config.status: creating tests/pedantic-header-test.sh
> config.status: creating doc/libsndfile.css
> config.status: creating build-test-tarball.mk
> config.status: creating libsndfile.spec
> config.status: creating sndfile.pc
> config.status: creating src/sndfile.h
> config.status: creating src/config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
>
> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
>
>  Configuration summary :
>
>    libsndfile version : .................. 1.0.25
>
>    Host CPU : ............................ i686
>    Host Vendor : ......................... pc
>    Host OS : ............................. none
>
>    Experimental code : ................... no
>    Using ALSA in example programs : ...... no
>    External FLAC/Ogg/Vorbis : ............ no
>
>  Tools :
>
>    Compiler is GCC : ..................... yes
>    GCC version : .........................
> ./configure: line 22318: test: -lt: unary operator expected
>
>  Installation directories :
>
>    Library directory : ................... /usr/local/lib
>    Program directory : ................... /usr/local/bin
>    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
>
> Compiling some other packages against libsndfile may require
> the addition of '/usr/local/lib/pkgconfig' to the
> PKG_CONFIG_PATH environment variable.
>
>
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 Jun 2017, at 20:35, Richard <zappfinger@gmail.com> wrote:
>>
>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>>
>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>> checking build system type... i686-pc-none
>> checking host system type... i686-pc-none
>> checking target system type... i686-pc-none
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>> checking for gawk... no
>> checking for mawk... no
>> checking for nawk... no
>> checking for awk... awk
>> checking whether make sets $(MAKE)... yes
>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>> configure: error: cannot run C compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details
>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>> make: *** No targets specified and no makefile found.  Stop.
>>
>>
>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>> steps in the Emscripten instructions.
>>>
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 16:03, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>>
>>>> Richard
>>>>
>>>>
>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>>
>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>>>>>
>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>>
>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>>
>>>>>> Richard
>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>
>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>>
>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>
>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>>
>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>>
>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>> Traceback (most recent call last):
>>>>>>>> File "./emconfigure", line 13, in <module>
>>>>>>>>   emconfigure.run()
>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>   shared.Building.configure(sys.argv[1:])
>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>   errread, errwrite)
>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>   raise child_exception
>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>>
>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>
>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>> Now I get:
>>>>>>>>>
>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>>
>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>>
>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>
>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>>
>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>>
>>>>>>>>>> it is now installed
>>>>>>>>>> Richard
>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>>
>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>> File "./emsdk", line 2199, in <module>
>>>>>>>>>>>   sys.exit(main())
>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>>
>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>> ..
>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>> Installation failed!
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>>
>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>>
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>>
>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>>
>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>>
>>>>>>>>>>>>> and got:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>>
>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>    https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-12 20:58
FromRichard
SubjectRe: Web-based Csound, updates, future directions
I installed emscription again, following the exact steps. Like yesterday 
I had to get an earlier version:

./emsdk install sdk-1.37.12-64bit
./emsdk activate sdk-1.37.12-64bit

(I also had to change the python version in emsdk to 2.7, since my 
default version is 3.5)

I aslo did the source command and it seemed ok:
Done installing tool 'emscripten-1.37.12'.
Done installing SDK 'sdk-1.37.12-64bit'.
RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
Writing .emscripten configuration file to user home directory 
/Users/richard/
The Emscripten configuration file /Users/richard/.emscripten has been 
rewritten with the following contents:

import os
LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
SPIDERMONKEY_ENGINE = ''
V8_ENGINE = ''
TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]

To conveniently access the selected set of tools from the command line, 
consider adding the following directories to PATH, or call 'source 
./emsdk_env.sh' to do this for you.

/Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
RMA:emsdk-portable richard$ source ./emsdk_env.sh
Setting environment variables:
EMSDK = /Users/richard/Downloads/emsdk-portable

But then I ran the download and build script :

RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not 
found
download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
cp: ./src/.libs/libsndfile.a: No such file or directory
RMA:emscripten richard$ emmake

I have not change emconfigure and emmake to use python 2.7 yet, maybe I 
should, although it says it should work with python 2 and 3...

Frustrating....




On 12/06/17 10:35, Victor Lazzarini wrote:
> Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
> Ignore the commands before this in my previous email, I just copied from the wrong point.
>
> Start from:
>> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
>> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
>> Resolving www.mega-nerd.com... 97.107.128.207
>> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 1060692 (1.0M) [application/x-gzip]
>> Saving to: `libsndfile-1.0.25.tar.gz.1'
>>
>> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s
>>
>> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
>>
>> patching file libsndfile-1.0.25/src/sndfile.c
>> checking build system type... i686-pc-none
>> checking host system type... i686-pc-none
>> checking target system type... i686-pc-none
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>> checking for gawk... no
>> checking for mawk... no
>> checking for nawk... no
>> checking for awk... awk
>> checking whether make sets $(MAKE)... yes
>> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... no
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
>> checking for style of include used by make... GNU
>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
>> checking whether we are using the GNU C++ compiler... yes
>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
>> checking for a sed that does not truncate output... /usr/bin/sed
>> checking how to print strings... printf
>> checking for a sed that does not truncate output... (cached) /usr/bin/sed
>> checking for grep that handles long lines and -e... /usr/bin/grep
>> checking for egrep... /usr/bin/grep -E
>> checking for fgrep... /usr/bin/grep -F
>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
>> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
>> checking whether ln -s works... yes
>> checking the maximum length of command line arguments... 196608
>> checking whether the shell understands some XSI constructs... yes
>> checking whether the shell understands "+="... yes
>> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
>> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
>> checking for objdump... objdump
>> checking how to recognize dependent libraries... unknown
>> checking for dlltool... no
>> checking how to associate runtime and link libraries... printf %s\n
>> checking for archiver @FILE support... no
>> checking for strip... strip
>> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
>> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
>> checking for sysroot... no
>> checking for mt... no
>> checking if : is a manifest tool... no
>> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
>> checking for ANSI C header files... no
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking for dlfcn.h... yes
>> checking for objdir... .libs
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
>> checking dynamic linker characteristics... ERROR:root:no input files
>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>> no
>> checking how to hardcode library paths into programs... immediate
>> checking whether stripping libraries is possible... no
>> checking if libtool supports shared libraries... no
>> checking whether to build shared libraries... no
>> checking whether to build static libraries... yes
>> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>> ERROR:root:no input files
>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>> checking dynamic linker characteristics... no
>> checking how to hardcode library paths into programs... immediate
>> checking for windres... no
>> checking for autogen... no
>> checking for wine... no
>> checking whether ln -s works... yes
>> checking for ANSI C header files... (cached) no
>> checking endian.h usability... yes
>> checking endian.h presence... yes
>> checking for endian.h... yes
>> checking byteswap.h usability... yes
>> checking byteswap.h presence... yes
>> checking for byteswap.h... yes
>> checking locale.h usability... yes
>> checking locale.h presence... yes
>> checking for locale.h... yes
>> checking sys/time.h usability... yes
>> checking sys/time.h presence... yes
>> checking for sys/time.h... yes
>> checking for sys/wait.h that is POSIX.1 compatible... yes
>> checking whether S_IRGRP is declared... yes
>> checking C99 struct flexible array support... yes
>> checking size of wchar_t... 4
>> checking size of short... 2
>> checking size of int... 4
>> checking size of long... 8
>> checking size of float... 4
>> checking size of double... 8
>> checking size of void*... 8
>> checking size of size_t... 4
>> checking size of int64_t... 8
>> checking size of long long... 8
>> checking size of off_t... 4
>> checking size of loff_t... 0
>> checking size of off64_t... 0
>> checking for getconf... getconf
>> checking for CFLAGS value to request large file support... no
>> checking for LDFLAGS value to request large file support... no
>> checking for LIBS value to request large file support... no
>> checking for _FILE_OFFSET_BITS... no
>> checking for _LARGEFILE_SOURCE... no
>> checking for _LARGE_FILES... no
>> checking size of off_t... 4
>> configure: WARNING: This machine does not seem to support 64 bit file offsets.
>> checking for ssize_t... yes
>> checking size of ssize_t... 4
>> checking processor byte ordering... little
>> checking for malloc... no
>> checking for calloc... no
>> checking for realloc... no
>> checking for free... no
>> checking for open... no
>> checking for read... no
>> checking for write... no
>> checking for lseek... no
>> checking for pread... no
>> checking for pwrite... no
>> checking for fstat... no
>> checking for ftruncate... no
>> checking for fsync... no
>> checking for snprintf... no
>> checking for vsnprintf... no
>> checking for gmtime... yes
>> checking for gmtime_r... yes
>> checking for localtime... yes
>> checking for localtime_r... yes
>> checking for gettimeofday... yes
>> checking for mmap... no
>> checking for getpagesize... yes
>> checking for setlocale... no
>> checking for pipe... no
>> checking for waitpid... yes
>> checking for floor in -lm... no
>> checking for floor... no
>> checking for ceil... no
>> checking for fmod... no
>> checking for lrint... yes
>> checking for lrintf... yes
>> checking for octave... no
>> checking for mkoctfile... no
>> checking for octave-config... no
>> checking for pkg-config... /usr/local/bin/pkg-config
>> checking pkg-config is at least version 0.9.0... yes
>> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
>>
>> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
>> configure: WARNING: *** libvorbis) is either missing (possibly only the development
>> configure: WARNING: *** headers) or is of an unsupported version.
>> configure: WARNING: ***
>> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
>> configure: WARNING: *** are an all or nothing affair.
>>
>> checking processor clipping capabilities... disabled
>> checking sndio.h usability... no
>> checking sndio.h presence... no
>> checking for sndio.h... no
>> configure: WARNING: Touching files in directory tests/.
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
>> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
>> configure: creating ./config.status
>> config.status: creating src/Makefile
>> config.status: creating man/Makefile
>> config.status: creating examples/Makefile
>> config.status: creating tests/Makefile
>> config.status: creating regtest/Makefile
>> config.status: creating M4/Makefile
>> config.status: creating doc/Makefile
>> config.status: creating Win32/Makefile
>> config.status: creating Octave/Makefile
>> config.status: creating programs/Makefile
>> config.status: creating Makefile
>> config.status: creating src/version-metadata.rc
>> config.status: creating tests/test_wrapper.sh
>> config.status: creating tests/pedantic-header-test.sh
>> config.status: creating doc/libsndfile.css
>> config.status: creating build-test-tarball.mk
>> config.status: creating libsndfile.spec
>> config.status: creating sndfile.pc
>> config.status: creating src/sndfile.h
>> config.status: creating src/config.h
>> config.status: executing depfiles commands
>> config.status: executing libtool commands
>>
>> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
>>
>>   Configuration summary :
>>
>>     libsndfile version : .................. 1.0.25
>>
>>     Host CPU : ............................ i686
>>     Host Vendor : ......................... pc
>>     Host OS : ............................. none
>>
>>     Experimental code : ................... no
>>     Using ALSA in example programs : ...... no
>>     External FLAC/Ogg/Vorbis : ............ no
>>
>>   Tools :
>>
>>     Compiler is GCC : ..................... yes
>>     GCC version : .........................
>> ./configure: line 22318: test: -lt: unary operator expected
>>
>>   Installation directories :
>>
>>     Library directory : ................... /usr/local/lib
>>     Program directory : ................... /usr/local/bin
>>     Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>>     HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
>>
>> Compiling some other packages against libsndfile may require
>> the addition of '/usr/local/lib/pkgconfig' to the
>> PKG_CONFIG_PATH environment variable.
>>
>>
>>
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 11 Jun 2017, at 20:35, Richard  wrote:
>>>
>>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>>>
>>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>>> checking build system type... i686-pc-none
>>> checking host system type... i686-pc-none
>>> checking target system type... i686-pc-none
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>> checking for gawk... no
>>> checking for mawk... no
>>> checking for nawk... no
>>> checking for awk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>>> configure: error: cannot run C compiled programs.
>>> If you meant to cross compile, use `--host'.
>>> See `config.log' for more details
>>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>>> make: *** No targets specified and no makefile found.  Stop.
>>>
>>>
>>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>>> steps in the Emscripten instructions.
>>>>
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 11 Jun 2017, at 16:03, Richard  wrote:
>>>>>
>>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>>>
>>>>> Richard
>>>>>
>>>>>
>>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>>>
>>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>>>>>>
>>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>>>
>>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>>>
>>>>>>> Richard
>>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>>>>>>
>>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>>>
>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>
>>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>>>
>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>>>
>>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>>> Traceback (most recent call last):
>>>>>>>>> File "./emconfigure", line 13, in 
>>>>>>>>>    emconfigure.run()
>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>>    shared.Building.configure(sys.argv[1:])
>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>>    process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>>    errread, errwrite)
>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>>    raise child_exception
>>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>>>
>>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>>> Now I get:
>>>>>>>>>>
>>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>>>
>>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>>>
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>
>>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>>>
>>>>>>>>>> Richard
>>>>>>>>>>
>>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>>>
>>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>>>
>>>>>>>>>>> it is now installed
>>>>>>>>>>> Richard
>>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>>>
>>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>>> File "./emsdk", line 2199, in 
>>>>>>>>>>>>    sys.exit(main())
>>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>>    if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>>>
>>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>>> ..
>>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>>> Installation failed!
>>>>>>>>>>>>
>>>>>>>>>>>> Richard
>>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>>>
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> and got:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>       https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-12 21:01
FromRory Walsh
SubjectRe: Web-based Csound, updates, future directions
FWIW I also had problem getting this to build for me. I wanted to investigate how easy it would be to add the -F/--midi-file command line flag for remote files. I think it would be neat, but I don't know how hard it would be to implement.  

On 12 June 2017 at 20:58, Richard <zappfinger@gmail.com> wrote:
I installed emscription again, following the exact steps. Like yesterday I had to get an earlier version:

./emsdk install sdk-1.37.12-64bit
./emsdk activate sdk-1.37.12-64bit

(I also had to change the python version in emsdk to 2.7, since my default version is 3.5)

I aslo did the source command and it seemed ok:
Done installing tool 'emscripten-1.37.12'.
Done installing SDK 'sdk-1.37.12-64bit'.
RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
Writing .emscripten configuration file to user home directory /Users/richard/
The Emscripten configuration file /Users/richard/.emscripten has been rewritten with the following contents:

import os
LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
SPIDERMONKEY_ENGINE = ''
V8_ENGINE = ''
TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]

To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.

/Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
RMA:emsdk-portable richard$ source ./emsdk_env.sh
Setting environment variables:
EMSDK = /Users/richard/Downloads/emsdk-portable

But then I ran the download and build script :

RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
cp: ./src/.libs/libsndfile.a: No such file or directory
RMA:emscripten richard$ emmake

I have not change emconfigure and emmake to use python 2.7 yet, maybe I should, although it says it should work with python 2 and 3...

Frustrating....




On 12/06/17 10:35, Victor Lazzarini wrote:
Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
Ignore the commands before this in my previous email, I just copied from the wrong point.

Start from:
ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
--2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
Resolving www.mega-nerd.com... 97.107.128.207
Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1060692 (1.0M) [application/x-gzip]
Saving to: `libsndfile-1.0.25.tar.gz.1'

100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s

2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]

patching file libsndfile-1.0.25/src/sndfile.c
checking build system type... i686-pc-none
checking host system type... i686-pc-none
checking target system type... i686-pc-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
checking dynamic linker characteristics... ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking for windres... no
checking for autogen... no
checking for wine... no
checking whether ln -s works... yes
checking for ANSI C header files... (cached) no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether S_IRGRP is declared... yes
checking C99 struct flexible array support... yes
checking size of wchar_t... 4
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of float... 4
checking size of double... 8
checking size of void*... 8
checking size of size_t... 4
checking size of int64_t... 8
checking size of long long... 8
checking size of off_t... 4
checking size of loff_t... 0
checking size of off64_t... 0
checking for getconf... getconf
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking size of off_t... 4
configure: WARNING: This machine does not seem to support 64 bit file offsets.
checking for ssize_t... yes
checking size of ssize_t... 4
checking processor byte ordering... little
checking for malloc... no
checking for calloc... no
checking for realloc... no
checking for free... no
checking for open... no
checking for read... no
checking for write... no
checking for lseek... no
checking for pread... no
checking for pwrite... no
checking for fstat... no
checking for ftruncate... no
checking for fsync... no
checking for snprintf... no
checking for vsnprintf... no
checking for gmtime... yes
checking for gmtime_r... yes
checking for localtime... yes
checking for localtime_r... yes
checking for gettimeofday... yes
checking for mmap... no
checking for getpagesize... yes
checking for setlocale... no
checking for pipe... no
checking for waitpid... yes
checking for floor in -lm... no
checking for floor... no
checking for ceil... no
checking for fmod... no
checking for lrint... yes
checking for lrintf... yes
checking for octave... no
checking for mkoctfile... no
checking for octave-config... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***

configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
configure: WARNING: *** libvorbis) is either missing (possibly only the development
configure: WARNING: *** headers) or is of an unsupported version.
configure: WARNING: ***
configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
configure: WARNING: *** are an all or nothing affair.

checking processor clipping capabilities... disabled
checking sndio.h usability... no
checking sndio.h presence... no
checking for sndio.h... no
configure: WARNING: Touching files in directory tests/.
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')

checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating regtest/Makefile
config.status: creating M4/Makefile
config.status: creating doc/Makefile
config.status: creating Win32/Makefile
config.status: creating Octave/Makefile
config.status: creating programs/Makefile
config.status: creating Makefile
config.status: creating src/version-metadata.rc
config.status: creating tests/test_wrapper.sh
config.status: creating tests/pedantic-header-test.sh
config.status: creating doc/libsndfile.css
config.status: creating build-test-tarball.mk
config.status: creating libsndfile.spec
config.status: creating sndfile.pc
config.status: creating src/sndfile.h
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-

  Configuration summary :

    libsndfile version : .................. 1.0.25

    Host CPU : ............................ i686
    Host Vendor : ......................... pc
    Host OS : ............................. none

    Experimental code : ................... no
    Using ALSA in example programs : ...... no
    External FLAC/Ogg/Vorbis : ............ no

  Tools :

    Compiler is GCC : ..................... yes
    GCC version : .........................
./configure: line 22318: test: -lt: unary operator expected

  Installation directories :

    Library directory : ................... /usr/local/lib
    Program directory : ................... /usr/local/bin
    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html

Compiling some other packages against libsndfile may require
the addition of '/usr/local/lib/pkgconfig' to the
PKG_CONFIG_PATH environment variable.



========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 20:35, Richard <zappfinger@gmail.com> wrote:

Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):

RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
checking build system type... i686-pc-none
checking host system type... i686-pc-none
checking target system type... i686-pc-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
make: *** No targets specified and no makefile found.  Stop.


On 11/06/17 19:25, Victor Lazzarini wrote:
You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
steps in the Emscripten instructions.


========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 16:03, Richard <zappfinger@gmail.com> wrote:

Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?

Richard


On 11/06/17 16:59, Victor Lazzarini wrote:
All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.

The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:

I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.

My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?

Richard
On 11/06/17 16:02, Victor Lazzarini wrote:
Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:

Not sure what goes wrong now. I get:

RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
./download_and_build_libsndfile.sh: line 14: emmake: command not found
./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory

I already changed emconfigure and emmake to use python2.7.
The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:

RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory

But executing the line on its own it tries to do something:
RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
Traceback (most recent call last):
File "./emconfigure", line 13, in <module>
   emconfigure.run()
File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
   shared.Building.configure(sys.argv[1:])
File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
   errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory

It looks like there is no 'configure' directory??

Richard

On 11/06/17 15:07, Richard wrote:
I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
Now I get:

libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s

2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]

./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
./download_and_build_libsndfile.sh: line 14: emmake: command not found
./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory

Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?

Richard

On 11/06/17 13:20, Richard wrote:
Ok, I had to use these commands to get rid of that:

./emsdk install sdk-1.37.12-64bit
./emsdk activate sdk-1.37.12-64bit

it is now installed
Richard
On 11/06/17 13:03, Richard wrote:
Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
Anyway, I can't get past the first command (emsdk update):

RMA:emsdk-portable richard$ ./emsdk update
Traceback (most recent call last):
File "./emsdk", line 2199, in <module>
   sys.exit(main())
File "./emsdk", line 1853, in main
   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
TypeError: object of type 'filter' has no len()

I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
But on the command 'emsdk install latest' it failed:
..
Installing SDK 'sdk-1.37.13-64bit'..
Installing tool 'clang-e1.37.13-64bit'..
HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
Installation failed!

Richard
On 11/06/17 12:37, Victor Lazzarini wrote:
You need emscripten:

https://github.com/csound/csound/blob/develop/emscripten/README.md

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:

How do I install WebAssembly on OS X?

The web page says use brew, but it does not show the exact line...
I tried:

brew install webassembly

and got:

Error: No available formula with the name "webassembly"
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

Richard


On 10/06/17 23:32, Victor Lazzarini wrote:
I have ported the csound.js frontend from PNaCl csound and added some examples from the
PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
to run with PNaCl to run with WASM.

I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
which wasn’t there (I expect that the code was leaking memory without it, but now it should be
OK, provided that the CsoundObj gets destroyed explicitly).

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:

I have installed the WebAssembly toolchain on my Linux computer, run
the build scripts, and got Csound to play "Trapped" in my browser.

There are a couple of minor irritations that I will fix or document.
On the whole it was painless.

Thanks again to hfmanson, Victor, and anyone else who made this possible.

As I did for the PNaCl build, I will add some of the plugin C++
opcodes to be statically linked into the WebAssembly build of the
Csound library. I will also try to port my examples at
gogins.github.io to use WebAssembly instead of PNaCl. Some of these
are full-scale pieces with visuals that have been performed.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
<Victor.Lazzarini@nuim.ie> wrote:
Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:

https://csound.github.io/wasm/RandomGenerator.html

not getting it on chrome 58.0.3029.83 for android 7.
"aww snap" it says.

firefox on linux i have randomgenerator running in 3 tabs. :)

occasionally the rhythm changes so... there are some timing issues.

very cool. really looking forward to sharing compositions this way.

kelly

On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
Requires a minimum of FF 52 or Chrome 57 afaik.

Wasm is very new, was only added to production browsers last month.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:

Hi,

I probably need an update of the browsers,

Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
with later versions) and Chrome 55

both stop at state "loading... " on the screen an javascript console reports:

uncaught exception: no binaryen method succeeded. consider enabling more
options, like interpreting, if you want that: https://github.com/kripken/
emscripten/wiki/WebAssembly#binaryen-methods

Jut to let know, this is not a problem, I need to update.

Thank you!

tarmo


On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
I’ve put up a simple example at

https://csound.github.io/wasm

tested on the latest chrome (59), but I believe it will run on firefox 52 as
well.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
wrote:
Awesome! I can't remember when I started Csound now, probably around 2013,
but I didn't know any javascript until recently, so I probably never took
notice of it. Regardless, I'll check out both
On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
wrote:
A javascript Csound has existed since 2013, compiled with
emscripten. Now a web assembly version is possible as well.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
wrote:
Thanks for the update! I've been considering Web based Csound again,
though I never got my head round pnacl... So you can akready use Csound
with java script? My Web application isn't real time, so that might be a
good easy way for me to realise my plans
On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
wrote:
The bad news: Google decided to kill PNaCl, and from 2018 it
will be dropped from its browsers. So, we’ll stop producing pnacl
packages at some point. It’s a shame because the technology is good and
it supports better performance.

The good news: a web-assembly (WASM) build of Csound has been developed
(thanks to hfmanson who
produced a build script for us). It uses the
same model as js csound and very similar infrastructure, so it’s a
drop-in replacement for it.

I have tested the builds with trapped and the performance is as follows:

1. benchmark (native): 2.9s
2. PNaCl: 3.6s
3. JS: 13s
4. WASM: 6.4s

So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
not as good for RT audio
either as it depends on Web Audio, which is
still pretty awful.

As with many technologies in the past, the superior version (PNaCl) was
not the one to be
adopted generally.
Anyway, at least we have a way of ensuring the continuation of Web-based
Csound.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to

https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here
Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here
Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
    https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-12 21:15
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
I installed 'latest' and then activated 'latest',
maybe that is a difference?
In any case, the script can't find the emscripten tools, as if they were not in your path, did you check it?

echo $PATH

see if the relevant dirs are there.

emsdk list

should also list your installed and active versions.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 12 Jun 2017, at 20:58, Richard  wrote:
> 
> I installed emscription again, following the exact steps. Like yesterday I had to get an earlier version:
> 
> ./emsdk install sdk-1.37.12-64bit
> ./emsdk activate sdk-1.37.12-64bit
> 
> (I also had to change the python version in emsdk to 2.7, since my default version is 3.5)
> 
> I aslo did the source command and it seemed ok:
> Done installing tool 'emscripten-1.37.12'.
> Done installing SDK 'sdk-1.37.12-64bit'.
> RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
> Writing .emscripten configuration file to user home directory /Users/richard/
> The Emscripten configuration file /Users/richard/.emscripten has been rewritten with the following contents:
> 
> import os
> LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
> EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
> BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
> NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
> EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
> SPIDERMONKEY_ENGINE = ''
> V8_ENGINE = ''
> TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
> COMPILER_ENGINE = NODE_JS
> JS_ENGINES = [NODE_JS]
> 
> To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
> 
> /Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
> RMA:emsdk-portable richard$ source ./emsdk_env.sh
> Setting environment variables:
> EMSDK = /Users/richard/Downloads/emsdk-portable
> 
> But then I ran the download and build script :
> 
> RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
> download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
> download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
> cp: ./src/.libs/libsndfile.a: No such file or directory
> RMA:emscripten richard$ emmake
> 
> I have not change emconfigure and emmake to use python 2.7 yet, maybe I should, although it says it should work with python 2 and 3...
> 
> Frustrating....
> 
> 
> 
> 
>> On 12/06/17 10:35, Victor Lazzarini wrote:
>> Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
>> Ignore the commands before this in my previous email, I just copied from the wrong point.
>> 
>> Start from:
>>> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
>>> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
>>> Resolving www.mega-nerd.com... 97.107.128.207
>>> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
>>> HTTP request sent, awaiting response... 200 OK
>>> Length: 1060692 (1.0M) [application/x-gzip]
>>> Saving to: `libsndfile-1.0.25.tar.gz.1'
>>> 
>>> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s
>>> 
>>> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
>>> 
>>> patching file libsndfile-1.0.25/src/sndfile.c
>>> checking build system type... i686-pc-none
>>> checking host system type... i686-pc-none
>>> checking target system type... i686-pc-none
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>> checking for gawk... no
>>> checking for mawk... no
>>> checking for nawk... no
>>> checking for awk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
>>> checking for style of include used by make... GNU
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
>>> checking whether we are using the GNU C++ compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
>>> checking for a sed that does not truncate output... /usr/bin/sed
>>> checking how to print strings... printf
>>> checking for a sed that does not truncate output... (cached) /usr/bin/sed
>>> checking for grep that handles long lines and -e... /usr/bin/grep
>>> checking for egrep... /usr/bin/grep -E
>>> checking for fgrep... /usr/bin/grep -F
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
>>> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
>>> checking whether ln -s works... yes
>>> checking the maximum length of command line arguments... 196608
>>> checking whether the shell understands some XSI constructs... yes
>>> checking whether the shell understands "+="... yes
>>> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
>>> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
>>> checking for objdump... objdump
>>> checking how to recognize dependent libraries... unknown
>>> checking for dlltool... no
>>> checking how to associate runtime and link libraries... printf %s\n
>>> checking for archiver @FILE support... no
>>> checking for strip... strip
>>> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
>>> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
>>> checking for sysroot... no
>>> checking for mt... no
>>> checking if : is a manifest tool... no
>>> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
>>> checking for ANSI C header files... no
>>> checking for sys/types.h... yes
>>> checking for sys/stat.h... yes
>>> checking for stdlib.h... yes
>>> checking for string.h... yes
>>> checking for memory.h... yes
>>> checking for strings.h... yes
>>> checking for inttypes.h... yes
>>> checking for stdint.h... yes
>>> checking for unistd.h... yes
>>> checking for dlfcn.h... yes
>>> checking for objdir... .libs
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
>>> checking dynamic linker characteristics... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> no
>>> checking how to hardcode library paths into programs... immediate
>>> checking whether stripping libraries is possible... no
>>> checking if libtool supports shared libraries... no
>>> checking whether to build shared libraries... no
>>> checking whether to build static libraries... yes
>>> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking dynamic linker characteristics... no
>>> checking how to hardcode library paths into programs... immediate
>>> checking for windres... no
>>> checking for autogen... no
>>> checking for wine... no
>>> checking whether ln -s works... yes
>>> checking for ANSI C header files... (cached) no
>>> checking endian.h usability... yes
>>> checking endian.h presence... yes
>>> checking for endian.h... yes
>>> checking byteswap.h usability... yes
>>> checking byteswap.h presence... yes
>>> checking for byteswap.h... yes
>>> checking locale.h usability... yes
>>> checking locale.h presence... yes
>>> checking for locale.h... yes
>>> checking sys/time.h usability... yes
>>> checking sys/time.h presence... yes
>>> checking for sys/time.h... yes
>>> checking for sys/wait.h that is POSIX.1 compatible... yes
>>> checking whether S_IRGRP is declared... yes
>>> checking C99 struct flexible array support... yes
>>> checking size of wchar_t... 4
>>> checking size of short... 2
>>> checking size of int... 4
>>> checking size of long... 8
>>> checking size of float... 4
>>> checking size of double... 8
>>> checking size of void*... 8
>>> checking size of size_t... 4
>>> checking size of int64_t... 8
>>> checking size of long long... 8
>>> checking size of off_t... 4
>>> checking size of loff_t... 0
>>> checking size of off64_t... 0
>>> checking for getconf... getconf
>>> checking for CFLAGS value to request large file support... no
>>> checking for LDFLAGS value to request large file support... no
>>> checking for LIBS value to request large file support... no
>>> checking for _FILE_OFFSET_BITS... no
>>> checking for _LARGEFILE_SOURCE... no
>>> checking for _LARGE_FILES... no
>>> checking size of off_t... 4
>>> configure: WARNING: This machine does not seem to support 64 bit file offsets.
>>> checking for ssize_t... yes
>>> checking size of ssize_t... 4
>>> checking processor byte ordering... little
>>> checking for malloc... no
>>> checking for calloc... no
>>> checking for realloc... no
>>> checking for free... no
>>> checking for open... no
>>> checking for read... no
>>> checking for write... no
>>> checking for lseek... no
>>> checking for pread... no
>>> checking for pwrite... no
>>> checking for fstat... no
>>> checking for ftruncate... no
>>> checking for fsync... no
>>> checking for snprintf... no
>>> checking for vsnprintf... no
>>> checking for gmtime... yes
>>> checking for gmtime_r... yes
>>> checking for localtime... yes
>>> checking for localtime_r... yes
>>> checking for gettimeofday... yes
>>> checking for mmap... no
>>> checking for getpagesize... yes
>>> checking for setlocale... no
>>> checking for pipe... no
>>> checking for waitpid... yes
>>> checking for floor in -lm... no
>>> checking for floor... no
>>> checking for ceil... no
>>> checking for fmod... no
>>> checking for lrint... yes
>>> checking for lrintf... yes
>>> checking for octave... no
>>> checking for mkoctfile... no
>>> checking for octave-config... no
>>> checking for pkg-config... /usr/local/bin/pkg-config
>>> checking pkg-config is at least version 0.9.0... yes
>>> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
>>> 
>>> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
>>> configure: WARNING: *** libvorbis) is either missing (possibly only the development
>>> configure: WARNING: *** headers) or is of an unsupported version.
>>> configure: WARNING: ***
>>> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
>>> configure: WARNING: *** are an all or nothing affair.
>>> 
>>> checking processor clipping capabilities... disabled
>>> checking sndio.h usability... no
>>> checking sndio.h presence... no
>>> checking for sndio.h... no
>>> configure: WARNING: Touching files in directory tests/.
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
>>> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> 
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
>>> configure: creating ./config.status
>>> config.status: creating src/Makefile
>>> config.status: creating man/Makefile
>>> config.status: creating examples/Makefile
>>> config.status: creating tests/Makefile
>>> config.status: creating regtest/Makefile
>>> config.status: creating M4/Makefile
>>> config.status: creating doc/Makefile
>>> config.status: creating Win32/Makefile
>>> config.status: creating Octave/Makefile
>>> config.status: creating programs/Makefile
>>> config.status: creating Makefile
>>> config.status: creating src/version-metadata.rc
>>> config.status: creating tests/test_wrapper.sh
>>> config.status: creating tests/pedantic-header-test.sh
>>> config.status: creating doc/libsndfile.css
>>> config.status: creating build-test-tarball.mk
>>> config.status: creating libsndfile.spec
>>> config.status: creating sndfile.pc
>>> config.status: creating src/sndfile.h
>>> config.status: creating src/config.h
>>> config.status: executing depfiles commands
>>> config.status: executing libtool commands
>>> 
>>> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
>>> 
>>>  Configuration summary :
>>> 
>>>    libsndfile version : .................. 1.0.25
>>> 
>>>    Host CPU : ............................ i686
>>>    Host Vendor : ......................... pc
>>>    Host OS : ............................. none
>>> 
>>>    Experimental code : ................... no
>>>    Using ALSA in example programs : ...... no
>>>    External FLAC/Ogg/Vorbis : ............ no
>>> 
>>>  Tools :
>>> 
>>>    Compiler is GCC : ..................... yes
>>>    GCC version : .........................
>>> ./configure: line 22318: test: -lt: unary operator expected
>>> 
>>>  Installation directories :
>>> 
>>>    Library directory : ................... /usr/local/lib
>>>    Program directory : ................... /usr/local/bin
>>>    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>>>    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
>>> 
>>> Compiling some other packages against libsndfile may require
>>> the addition of '/usr/local/lib/pkgconfig' to the
>>> PKG_CONFIG_PATH environment variable.
>>> 
>>> 
>>> 
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 11 Jun 2017, at 20:35, Richard  wrote:
>>>> 
>>>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>>>> 
>>>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>>>> checking build system type... i686-pc-none
>>>> checking host system type... i686-pc-none
>>>> checking target system type... i686-pc-none
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> checking whether build environment is sane... yes
>>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>>> checking for gawk... no
>>>> checking for mawk... no
>>>> checking for nawk... no
>>>> checking for awk... awk
>>>> checking whether make sets $(MAKE)... yes
>>>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>>>> checking whether the C compiler works... yes
>>>> checking for C compiler default output file name... a.out
>>>> checking for suffix of executables...
>>>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>>>> configure: error: cannot run C compiled programs.
>>>> If you meant to cross compile, use `--host'.
>>>> See `config.log' for more details
>>>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>>>> make: *** No targets specified and no makefile found.  Stop.
>>>> 
>>>> 
>>>>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>>>> steps in the Emscripten instructions.
>>>>> 
>>>>> 
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 11 Jun 2017, at 16:03, Richard  wrote:
>>>>>> 
>>>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> 
>>>>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>>>> 
>>>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>>>>>>> 
>>>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>>>> 
>>>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>>>>>>> 
>>>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>>>> 
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>> 
>>>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>>>> 
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>>>> 
>>>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>> File "./emconfigure", line 13, in 
>>>>>>>>>>   emconfigure.run()
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>>>   shared.Building.configure(sys.argv[1:])
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>>>   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>>>   errread, errwrite)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>>>   raise child_exception
>>>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>>>> 
>>>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> 
>>>>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>>>> Now I get:
>>>>>>>>>>> 
>>>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>>>> 
>>>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>>>> 
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>> 
>>>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>>>> 
>>>>>>>>>>> Richard
>>>>>>>>>>> 
>>>>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>>>> 
>>>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>>>> 
>>>>>>>>>>>> it is now installed
>>>>>>>>>>>> Richard
>>>>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>>>> 
>>>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>>>> File "./emsdk", line 2199, in 
>>>>>>>>>>>>>   sys.exit(main())
>>>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>>>   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>>>> ..
>>>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>>>> Installation failed!
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> and got:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>    https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-12 21:20
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
For remote files, you need to use the FS SDK and
xmlhttprequest in
js to copy them into the filesystem, then it should
work. Check the code in FileManager.js under the javscriit example folder in the emscripten directory,
or the csound.js file in emscripten/src

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Jun 2017, at 21:01, Rory Walsh <rorywalsh@EAR.IE> wrote:

FWIW I also had problem getting this to build for me. I wanted to investigate how easy it would be to add the -F/--midi-file command line flag for remote files. I think it would be neat, but I don't know how hard it would be to implement.  

On 12 June 2017 at 20:58, Richard <zappfinger@gmail.com> wrote:
I installed emscription again, following the exact steps. Like yesterday I had to get an earlier version:

./emsdk install sdk-1.37.12-64bit
./emsdk activate sdk-1.37.12-64bit

(I also had to change the python version in emsdk to 2.7, since my default version is 3.5)

I aslo did the source command and it seemed ok:
Done installing tool 'emscripten-1.37.12'.
Done installing SDK 'sdk-1.37.12-64bit'.
RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
Writing .emscripten configuration file to user home directory /Users/richard/
The Emscripten configuration file /Users/richard/.emscripten has been rewritten with the following contents:

import os
LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
SPIDERMONKEY_ENGINE = ''
V8_ENGINE = ''
TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]

To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.

/Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
RMA:emsdk-portable richard$ source ./emsdk_env.sh
Setting environment variables:
EMSDK = /Users/richard/Downloads/emsdk-portable

But then I ran the download and build script :

RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
cp: ./src/.libs/libsndfile.a: No such file or directory
RMA:emscripten richard$ emmake

I have not change emconfigure and emmake to use python 2.7 yet, maybe I should, although it says it should work with python 2 and 3...

Frustrating....




On 12/06/17 10:35, Victor Lazzarini wrote:
Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
Ignore the commands before this in my previous email, I just copied from the wrong point.

Start from:
ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
--2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
Resolving www.mega-nerd.com... 97.107.128.207
Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1060692 (1.0M) [application/x-gzip]
Saving to: `libsndfile-1.0.25.tar.gz.1'

100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s

2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]

patching file libsndfile-1.0.25/src/sndfile.c
checking build system type... i686-pc-none
checking host system type... i686-pc-none
checking target system type... i686-pc-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
checking dynamic linker characteristics... ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking for windres... no
checking for autogen... no
checking for wine... no
checking whether ln -s works... yes
checking for ANSI C header files... (cached) no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether S_IRGRP is declared... yes
checking C99 struct flexible array support... yes
checking size of wchar_t... 4
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of float... 4
checking size of double... 8
checking size of void*... 8
checking size of size_t... 4
checking size of int64_t... 8
checking size of long long... 8
checking size of off_t... 4
checking size of loff_t... 0
checking size of off64_t... 0
checking for getconf... getconf
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking size of off_t... 4
configure: WARNING: This machine does not seem to support 64 bit file offsets.
checking for ssize_t... yes
checking size of ssize_t... 4
checking processor byte ordering... little
checking for malloc... no
checking for calloc... no
checking for realloc... no
checking for free... no
checking for open... no
checking for read... no
checking for write... no
checking for lseek... no
checking for pread... no
checking for pwrite... no
checking for fstat... no
checking for ftruncate... no
checking for fsync... no
checking for snprintf... no
checking for vsnprintf... no
checking for gmtime... yes
checking for gmtime_r... yes
checking for localtime... yes
checking for localtime_r... yes
checking for gettimeofday... yes
checking for mmap... no
checking for getpagesize... yes
checking for setlocale... no
checking for pipe... no
checking for waitpid... yes
checking for floor in -lm... no
checking for floor... no
checking for ceil... no
checking for fmod... no
checking for lrint... yes
checking for lrintf... yes
checking for octave... no
checking for mkoctfile... no
checking for octave-config... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***

configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
configure: WARNING: *** libvorbis) is either missing (possibly only the development
configure: WARNING: *** headers) or is of an unsupported version.
configure: WARNING: ***
configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
configure: WARNING: *** are an all or nothing affair.

checking processor clipping capabilities... disabled
checking sndio.h usability... no
checking sndio.h presence... no
checking for sndio.h... no
configure: WARNING: Touching files in directory tests/.
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')

checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating regtest/Makefile
config.status: creating M4/Makefile
config.status: creating doc/Makefile
config.status: creating Win32/Makefile
config.status: creating Octave/Makefile
config.status: creating programs/Makefile
config.status: creating Makefile
config.status: creating src/version-metadata.rc
config.status: creating tests/test_wrapper.sh
config.status: creating tests/pedantic-header-test.sh
config.status: creating doc/libsndfile.css
config.status: creating build-test-tarball.mk
config.status: creating libsndfile.spec
config.status: creating sndfile.pc
config.status: creating src/sndfile.h
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-

  Configuration summary :

    libsndfile version : .................. 1.0.25

    Host CPU : ............................ i686
    Host Vendor : ......................... pc
    Host OS : ............................. none

    Experimental code : ................... no
    Using ALSA in example programs : ...... no
    External FLAC/Ogg/Vorbis : ............ no

  Tools :

    Compiler is GCC : ..................... yes
    GCC version : .........................
./configure: line 22318: test: -lt: unary operator expected

  Installation directories :

    Library directory : ................... /usr/local/lib
    Program directory : ................... /usr/local/bin
    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html

Compiling some other packages against libsndfile may require
the addition of '/usr/local/lib/pkgconfig' to the
PKG_CONFIG_PATH environment variable.



========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 20:35, Richard <zappfinger@gmail.com> wrote:

Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):

RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
checking build system type... i686-pc-none
checking host system type... i686-pc-none
checking target system type... i686-pc-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
make: *** No targets specified and no makefile found.  Stop.


On 11/06/17 19:25, Victor Lazzarini wrote:
You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
steps in the Emscripten instructions.


========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 16:03, Richard <zappfinger@gmail.com> wrote:

Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?

Richard


On 11/06/17 16:59, Victor Lazzarini wrote:
All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.

The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:

I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.

My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?

Richard
On 11/06/17 16:02, Victor Lazzarini wrote:
Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:

Not sure what goes wrong now. I get:

RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
./download_and_build_libsndfile.sh: line 14: emmake: command not found
./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory

I already changed emconfigure and emmake to use python2.7.
The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:

RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory

But executing the line on its own it tries to do something:
RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
Traceback (most recent call last):
File "./emconfigure", line 13, in <module>
   emconfigure.run()
File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
   shared.Building.configure(sys.argv[1:])
File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
   errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory

It looks like there is no 'configure' directory??

Richard

On 11/06/17 15:07, Richard wrote:
I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
Now I get:

libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s

2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]

./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
./download_and_build_libsndfile.sh: line 14: emmake: command not found
./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory

Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?

Richard

On 11/06/17 13:20, Richard wrote:
Ok, I had to use these commands to get rid of that:

./emsdk install sdk-1.37.12-64bit
./emsdk activate sdk-1.37.12-64bit

it is now installed
Richard
On 11/06/17 13:03, Richard wrote:
Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
Anyway, I can't get past the first command (emsdk update):

RMA:emsdk-portable richard$ ./emsdk update
Traceback (most recent call last):
File "./emsdk", line 2199, in <module>
   sys.exit(main())
File "./emsdk", line 1853, in main
   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
TypeError: object of type 'filter' has no len()

I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
But on the command 'emsdk install latest' it failed:
..
Installing SDK 'sdk-1.37.13-64bit'..
Installing tool 'clang-e1.37.13-64bit'..
HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
Installation failed!

Richard
On 11/06/17 12:37, Victor Lazzarini wrote:
You need emscripten:

https://github.com/csound/csound/blob/develop/emscripten/README.md

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:

How do I install WebAssembly on OS X?

The web page says use brew, but it does not show the exact line...
I tried:

brew install webassembly

and got:

Error: No available formula with the name "webassembly"
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

Richard


On 10/06/17 23:32, Victor Lazzarini wrote:
I have ported the csound.js frontend from PNaCl csound and added some examples from the
PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
to run with PNaCl to run with WASM.

I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
which wasn’t there (I expect that the code was leaking memory without it, but now it should be
OK, provided that the CsoundObj gets destroyed explicitly).

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:

I have installed the WebAssembly toolchain on my Linux computer, run
the build scripts, and got Csound to play "Trapped" in my browser.

There are a couple of minor irritations that I will fix or document.
On the whole it was painless.

Thanks again to hfmanson, Victor, and anyone else who made this possible.

As I did for the PNaCl build, I will add some of the plugin C++
opcodes to be statically linked into the WebAssembly build of the
Csound library. I will also try to port my examples at
gogins.github.io to use WebAssembly instead of PNaCl. Some of these
are full-scale pieces with visuals that have been performed.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
<Victor.Lazzarini@nuim.ie> wrote:
Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:

https://csound.github.io/wasm/RandomGenerator.html

not getting it on chrome 58.0.3029.83 for android 7.
"aww snap" it says.

firefox on linux i have randomgenerator running in 3 tabs. :)

occasionally the rhythm changes so... there are some timing issues.

very cool. really looking forward to sharing compositions this way.

kelly

On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
Requires a minimum of FF 52 or Chrome 57 afaik.

Wasm is very new, was only added to production browsers last month.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:

Hi,

I probably need an update of the browsers,

Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
with later versions) and Chrome 55

both stop at state "loading... " on the screen an javascript console reports:

uncaught exception: no binaryen method succeeded. consider enabling more
options, like interpreting, if you want that: https://github.com/kripken/
emscripten/wiki/WebAssembly#binaryen-methods

Jut to let know, this is not a problem, I need to update.

Thank you!

tarmo


On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
I’ve put up a simple example at

https://csound.github.io/wasm

tested on the latest chrome (59), but I believe it will run on firefox 52 as
well.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
wrote:
Awesome! I can't remember when I started Csound now, probably around 2013,
but I didn't know any javascript until recently, so I probably never took
notice of it. Regardless, I'll check out both
On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
wrote:
A javascript Csound has existed since 2013, compiled with
emscripten. Now a web assembly version is possible as well.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
wrote:
Thanks for the update! I've been considering Web based Csound again,
though I never got my head round pnacl... So you can akready use Csound
with java script? My Web application isn't real time, so that might be a
good easy way for me to realise my plans
On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
wrote:
The bad news: Google decided to kill PNaCl, and from 2018 it
will be dropped from its browsers. So, we’ll stop producing pnacl
packages at some point. It’s a shame because the technology is good and
it supports better performance.

The good news: a web-assembly (WASM) build of Csound has been developed
(thanks to hfmanson who
produced a build script for us). It uses the
same model as js csound and very similar infrastructure, so it’s a
drop-in replacement for it.

I have tested the builds with trapped and the performance is as follows:

1. benchmark (native): 2.9s
2. PNaCl: 3.6s
3. JS: 13s
4. WASM: 6.4s

So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
not as good for RT audio
either as it depends on Web Audio, which is
still pretty awful.

As with many technologies in the past, the superior version (PNaCl) was
not the one to be
adopted generally.
Anyway, at least we have a way of ensuring the continuation of Web-based
Csound.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to

https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here
Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here
Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
    https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
     https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-12 21:22
FromSteven Yi
SubjectRe: Web-based Csound, updates, future directions

Be sure to do the source of the env.sh script within the terminal before you run any of our build scripts. That sourcing has to be done every time either by hand or by modifying your shell startup (as noted in the emsdk output). (Those paths are not permanently changed when you source the shell script.)


On Mon, Jun 12, 2017, 1:15 PM Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I installed 'latest' and then activated 'latest',
maybe that is a difference?
In any case, the script can't find the emscripten tools, as if they were not in your path, did you check it?

echo $PATH

see if the relevant dirs are there.

emsdk list

should also list your installed and active versions.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 12 Jun 2017, at 20:58, Richard <zappfinger@GMAIL.COM> wrote:
>
> I installed emscription again, following the exact steps. Like yesterday I had to get an earlier version:
>
> ./emsdk install sdk-1.37.12-64bit
> ./emsdk activate sdk-1.37.12-64bit
>
> (I also had to change the python version in emsdk to 2.7, since my default version is 3.5)
>
> I aslo did the source command and it seemed ok:
> Done installing tool 'emscripten-1.37.12'.
> Done installing SDK 'sdk-1.37.12-64bit'.
> RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
> Writing .emscripten configuration file to user home directory /Users/richard/
> The Emscripten configuration file /Users/richard/.emscripten has been rewritten with the following contents:
>
> import os
> LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
> EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
> BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
> NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
> EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
> SPIDERMONKEY_ENGINE = ''
> V8_ENGINE = ''
> TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
> COMPILER_ENGINE = NODE_JS
> JS_ENGINES = [NODE_JS]
>
> To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
>
> /Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
> RMA:emsdk-portable richard$ source ./emsdk_env.sh
> Setting environment variables:
> EMSDK = /Users/richard/Downloads/emsdk-portable
>
> But then I ran the download and build script :
>
> RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
> download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
> download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
> cp: ./src/.libs/libsndfile.a: No such file or directory
> RMA:emscripten richard$ emmake
>
> I have not change emconfigure and emmake to use python 2.7 yet, maybe I should, although it says it should work with python 2 and 3...
>
> Frustrating....
>
>
>
>
>> On 12/06/17 10:35, Victor Lazzarini wrote:
>> Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
>> Ignore the commands before this in my previous email, I just copied from the wrong point.
>>
>> Start from:
>>> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
>>> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
>>> Resolving www.mega-nerd.com... 97.107.128.207
>>> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
>>> HTTP request sent, awaiting response... 200 OK
>>> Length: 1060692 (1.0M) [application/x-gzip]
>>> Saving to: `libsndfile-1.0.25.tar.gz.1'
>>>
>>> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s
>>>
>>> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
>>>
>>> patching file libsndfile-1.0.25/src/sndfile.c
>>> checking build system type... i686-pc-none
>>> checking host system type... i686-pc-none
>>> checking target system type... i686-pc-none
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>> checking for gawk... no
>>> checking for mawk... no
>>> checking for nawk... no
>>> checking for awk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
>>> checking for style of include used by make... GNU
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
>>> checking whether we are using the GNU C++ compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
>>> checking for a sed that does not truncate output... /usr/bin/sed
>>> checking how to print strings... printf
>>> checking for a sed that does not truncate output... (cached) /usr/bin/sed
>>> checking for grep that handles long lines and -e... /usr/bin/grep
>>> checking for egrep... /usr/bin/grep -E
>>> checking for fgrep... /usr/bin/grep -F
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
>>> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
>>> checking whether ln -s works... yes
>>> checking the maximum length of command line arguments... 196608
>>> checking whether the shell understands some XSI constructs... yes
>>> checking whether the shell understands "+="... yes
>>> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
>>> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
>>> checking for objdump... objdump
>>> checking how to recognize dependent libraries... unknown
>>> checking for dlltool... no
>>> checking how to associate runtime and link libraries... printf %s\n
>>> checking for archiver @FILE support... no
>>> checking for strip... strip
>>> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
>>> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
>>> checking for sysroot... no
>>> checking for mt... no
>>> checking if : is a manifest tool... no
>>> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
>>> checking for ANSI C header files... no
>>> checking for sys/types.h... yes
>>> checking for sys/stat.h... yes
>>> checking for stdlib.h... yes
>>> checking for string.h... yes
>>> checking for memory.h... yes
>>> checking for strings.h... yes
>>> checking for inttypes.h... yes
>>> checking for stdint.h... yes
>>> checking for unistd.h... yes
>>> checking for dlfcn.h... yes
>>> checking for objdir... .libs
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
>>> checking dynamic linker characteristics... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> no
>>> checking how to hardcode library paths into programs... immediate
>>> checking whether stripping libraries is possible... no
>>> checking if libtool supports shared libraries... no
>>> checking whether to build shared libraries... no
>>> checking whether to build static libraries... yes
>>> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking dynamic linker characteristics... no
>>> checking how to hardcode library paths into programs... immediate
>>> checking for windres... no
>>> checking for autogen... no
>>> checking for wine... no
>>> checking whether ln -s works... yes
>>> checking for ANSI C header files... (cached) no
>>> checking endian.h usability... yes
>>> checking endian.h presence... yes
>>> checking for endian.h... yes
>>> checking byteswap.h usability... yes
>>> checking byteswap.h presence... yes
>>> checking for byteswap.h... yes
>>> checking locale.h usability... yes
>>> checking locale.h presence... yes
>>> checking for locale.h... yes
>>> checking sys/time.h usability... yes
>>> checking sys/time.h presence... yes
>>> checking for sys/time.h... yes
>>> checking for sys/wait.h that is POSIX.1 compatible... yes
>>> checking whether S_IRGRP is declared... yes
>>> checking C99 struct flexible array support... yes
>>> checking size of wchar_t... 4
>>> checking size of short... 2
>>> checking size of int... 4
>>> checking size of long... 8
>>> checking size of float... 4
>>> checking size of double... 8
>>> checking size of void*... 8
>>> checking size of size_t... 4
>>> checking size of int64_t... 8
>>> checking size of long long... 8
>>> checking size of off_t... 4
>>> checking size of loff_t... 0
>>> checking size of off64_t... 0
>>> checking for getconf... getconf
>>> checking for CFLAGS value to request large file support... no
>>> checking for LDFLAGS value to request large file support... no
>>> checking for LIBS value to request large file support... no
>>> checking for _FILE_OFFSET_BITS... no
>>> checking for _LARGEFILE_SOURCE... no
>>> checking for _LARGE_FILES... no
>>> checking size of off_t... 4
>>> configure: WARNING: This machine does not seem to support 64 bit file offsets.
>>> checking for ssize_t... yes
>>> checking size of ssize_t... 4
>>> checking processor byte ordering... little
>>> checking for malloc... no
>>> checking for calloc... no
>>> checking for realloc... no
>>> checking for free... no
>>> checking for open... no
>>> checking for read... no
>>> checking for write... no
>>> checking for lseek... no
>>> checking for pread... no
>>> checking for pwrite... no
>>> checking for fstat... no
>>> checking for ftruncate... no
>>> checking for fsync... no
>>> checking for snprintf... no
>>> checking for vsnprintf... no
>>> checking for gmtime... yes
>>> checking for gmtime_r... yes
>>> checking for localtime... yes
>>> checking for localtime_r... yes
>>> checking for gettimeofday... yes
>>> checking for mmap... no
>>> checking for getpagesize... yes
>>> checking for setlocale... no
>>> checking for pipe... no
>>> checking for waitpid... yes
>>> checking for floor in -lm... no
>>> checking for floor... no
>>> checking for ceil... no
>>> checking for fmod... no
>>> checking for lrint... yes
>>> checking for lrintf... yes
>>> checking for octave... no
>>> checking for mkoctfile... no
>>> checking for octave-config... no
>>> checking for pkg-config... /usr/local/bin/pkg-config
>>> checking pkg-config is at least version 0.9.0... yes
>>> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
>>>
>>> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
>>> configure: WARNING: *** libvorbis) is either missing (possibly only the development
>>> configure: WARNING: *** headers) or is of an unsupported version.
>>> configure: WARNING: ***
>>> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
>>> configure: WARNING: *** are an all or nothing affair.
>>>
>>> checking processor clipping capabilities... disabled
>>> checking sndio.h usability... no
>>> checking sndio.h presence... no
>>> checking for sndio.h... no
>>> configure: WARNING: Touching files in directory tests/.
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
>>> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>>
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
>>> configure: creating ./config.status
>>> config.status: creating src/Makefile
>>> config.status: creating man/Makefile
>>> config.status: creating examples/Makefile
>>> config.status: creating tests/Makefile
>>> config.status: creating regtest/Makefile
>>> config.status: creating M4/Makefile
>>> config.status: creating doc/Makefile
>>> config.status: creating Win32/Makefile
>>> config.status: creating Octave/Makefile
>>> config.status: creating programs/Makefile
>>> config.status: creating Makefile
>>> config.status: creating src/version-metadata.rc
>>> config.status: creating tests/test_wrapper.sh
>>> config.status: creating tests/pedantic-header-test.sh
>>> config.status: creating doc/libsndfile.css
>>> config.status: creating build-test-tarball.mk
>>> config.status: creating libsndfile.spec
>>> config.status: creating sndfile.pc
>>> config.status: creating src/sndfile.h
>>> config.status: creating src/config.h
>>> config.status: executing depfiles commands
>>> config.status: executing libtool commands
>>>
>>> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
>>>
>>>  Configuration summary :
>>>
>>>    libsndfile version : .................. 1.0.25
>>>
>>>    Host CPU : ............................ i686
>>>    Host Vendor : ......................... pc
>>>    Host OS : ............................. none
>>>
>>>    Experimental code : ................... no
>>>    Using ALSA in example programs : ...... no
>>>    External FLAC/Ogg/Vorbis : ............ no
>>>
>>>  Tools :
>>>
>>>    Compiler is GCC : ..................... yes
>>>    GCC version : .........................
>>> ./configure: line 22318: test: -lt: unary operator expected
>>>
>>>  Installation directories :
>>>
>>>    Library directory : ................... /usr/local/lib
>>>    Program directory : ................... /usr/local/bin
>>>    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>>>    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
>>>
>>> Compiling some other packages against libsndfile may require
>>> the addition of '/usr/local/lib/pkgconfig' to the
>>> PKG_CONFIG_PATH environment variable.
>>>
>>>
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 20:35, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>>>>
>>>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>>>> checking build system type... i686-pc-none
>>>> checking host system type... i686-pc-none
>>>> checking target system type... i686-pc-none
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> checking whether build environment is sane... yes
>>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>>> checking for gawk... no
>>>> checking for mawk... no
>>>> checking for nawk... no
>>>> checking for awk... awk
>>>> checking whether make sets $(MAKE)... yes
>>>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>>>> checking whether the C compiler works... yes
>>>> checking for C compiler default output file name... a.out
>>>> checking for suffix of executables...
>>>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>>>> configure: error: cannot run C compiled programs.
>>>> If you meant to cross compile, use `--host'.
>>>> See `config.log' for more details
>>>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>>>> make: *** No targets specified and no makefile found.  Stop.
>>>>
>>>>
>>>>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>>>> steps in the Emscripten instructions.
>>>>>
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 11 Jun 2017, at 16:03, Richard <zappfinger@gmail.com> wrote:
>>>>>>
>>>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>>>>
>>>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>
>>>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>>>>
>>>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>>>>
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>
>>>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>>>>
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>>>>
>>>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>> File "./emconfigure", line 13, in <module>
>>>>>>>>>>   emconfigure.run()
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>>>   shared.Building.configure(sys.argv[1:])
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>>>   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>>>   errread, errwrite)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>>>   raise child_exception
>>>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>>>>
>>>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>>>>
>>>>>>>>>> Richard
>>>>>>>>>>
>>>>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>>>> Now I get:
>>>>>>>>>>>
>>>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>>>>
>>>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>>>>
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>>
>>>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>>>>
>>>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>>>>
>>>>>>>>>>>> it is now installed
>>>>>>>>>>>> Richard
>>>>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>>>>
>>>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>>>> File "./emsdk", line 2199, in <module>
>>>>>>>>>>>>>   sys.exit(main())
>>>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>>>   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>>>>
>>>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>>>> ..
>>>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>>>> Installation failed!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> and got:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>    https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-12 22:26
FromRory Walsh
SubjectRe: Web-based Csound, updates, future directions
Remote sound files are fine, but as far as I now there are no opcodes for reading midi from disk. Only the -F flag? 

On 12 June 2017 at 21:22, Steven Yi <stevenyi@gmail.com> wrote:

Be sure to do the source of the env.sh script within the terminal before you run any of our build scripts. That sourcing has to be done every time either by hand or by modifying your shell startup (as noted in the emsdk output). (Those paths are not permanently changed when you source the shell script.)


On Mon, Jun 12, 2017, 1:15 PM Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I installed 'latest' and then activated 'latest',
maybe that is a difference?
In any case, the script can't find the emscripten tools, as if they were not in your path, did you check it?

echo $PATH

see if the relevant dirs are there.

emsdk list

should also list your installed and active versions.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 12 Jun 2017, at 20:58, Richard <zappfinger@GMAIL.COM> wrote:
>
> I installed emscription again, following the exact steps. Like yesterday I had to get an earlier version:
>
> ./emsdk install sdk-1.37.12-64bit
> ./emsdk activate sdk-1.37.12-64bit
>
> (I also had to change the python version in emsdk to 2.7, since my default version is 3.5)
>
> I aslo did the source command and it seemed ok:
> Done installing tool 'emscripten-1.37.12'.
> Done installing SDK 'sdk-1.37.12-64bit'.
> RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
> Writing .emscripten configuration file to user home directory /Users/richard/
> The Emscripten configuration file /Users/richard/.emscripten has been rewritten with the following contents:
>
> import os
> LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
> EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
> BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
> NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
> EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
> SPIDERMONKEY_ENGINE = ''
> V8_ENGINE = ''
> TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
> COMPILER_ENGINE = NODE_JS
> JS_ENGINES = [NODE_JS]
>
> To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
>
> /Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
> RMA:emsdk-portable richard$ source ./emsdk_env.sh
> Setting environment variables:
> EMSDK = /Users/richard/Downloads/emsdk-portable
>
> But then I ran the download and build script :
>
> RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
> download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
> download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
> cp: ./src/.libs/libsndfile.a: No such file or directory
> RMA:emscripten richard$ emmake
>
> I have not change emconfigure and emmake to use python 2.7 yet, maybe I should, although it says it should work with python 2 and 3...
>
> Frustrating....
>
>
>
>
>> On 12/06/17 10:35, Victor Lazzarini wrote:
>> Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
>> Ignore the commands before this in my previous email, I just copied from the wrong point.
>>
>> Start from:
>>> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
>>> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
>>> Resolving www.mega-nerd.com... 97.107.128.207
>>> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
>>> HTTP request sent, awaiting response... 200 OK
>>> Length: 1060692 (1.0M) [application/x-gzip]
>>> Saving to: `libsndfile-1.0.25.tar.gz.1'
>>>
>>> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s
>>>
>>> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
>>>
>>> patching file libsndfile-1.0.25/src/sndfile.c
>>> checking build system type... i686-pc-none
>>> checking host system type... i686-pc-none
>>> checking target system type... i686-pc-none
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>> checking for gawk... no
>>> checking for mawk... no
>>> checking for nawk... no
>>> checking for awk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
>>> checking for style of include used by make... GNU
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
>>> checking whether we are using the GNU C++ compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
>>> checking for a sed that does not truncate output... /usr/bin/sed
>>> checking how to print strings... printf
>>> checking for a sed that does not truncate output... (cached) /usr/bin/sed
>>> checking for grep that handles long lines and -e... /usr/bin/grep
>>> checking for egrep... /usr/bin/grep -E
>>> checking for fgrep... /usr/bin/grep -F
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
>>> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
>>> checking whether ln -s works... yes
>>> checking the maximum length of command line arguments... 196608
>>> checking whether the shell understands some XSI constructs... yes
>>> checking whether the shell understands "+="... yes
>>> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
>>> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
>>> checking for objdump... objdump
>>> checking how to recognize dependent libraries... unknown
>>> checking for dlltool... no
>>> checking how to associate runtime and link libraries... printf %s\n
>>> checking for archiver @FILE support... no
>>> checking for strip... strip
>>> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
>>> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
>>> checking for sysroot... no
>>> checking for mt... no
>>> checking if : is a manifest tool... no
>>> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
>>> checking for ANSI C header files... no
>>> checking for sys/types.h... yes
>>> checking for sys/stat.h... yes
>>> checking for stdlib.h... yes
>>> checking for string.h... yes
>>> checking for memory.h... yes
>>> checking for strings.h... yes
>>> checking for inttypes.h... yes
>>> checking for stdint.h... yes
>>> checking for unistd.h... yes
>>> checking for dlfcn.h... yes
>>> checking for objdir... .libs
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
>>> checking dynamic linker characteristics... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> no
>>> checking how to hardcode library paths into programs... immediate
>>> checking whether stripping libraries is possible... no
>>> checking if libtool supports shared libraries... no
>>> checking whether to build shared libraries... no
>>> checking whether to build static libraries... yes
>>> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking dynamic linker characteristics... no
>>> checking how to hardcode library paths into programs... immediate
>>> checking for windres... no
>>> checking for autogen... no
>>> checking for wine... no
>>> checking whether ln -s works... yes
>>> checking for ANSI C header files... (cached) no
>>> checking endian.h usability... yes
>>> checking endian.h presence... yes
>>> checking for endian.h... yes
>>> checking byteswap.h usability... yes
>>> checking byteswap.h presence... yes
>>> checking for byteswap.h... yes
>>> checking locale.h usability... yes
>>> checking locale.h presence... yes
>>> checking for locale.h... yes
>>> checking sys/time.h usability... yes
>>> checking sys/time.h presence... yes
>>> checking for sys/time.h... yes
>>> checking for sys/wait.h that is POSIX.1 compatible... yes
>>> checking whether S_IRGRP is declared... yes
>>> checking C99 struct flexible array support... yes
>>> checking size of wchar_t... 4
>>> checking size of short... 2
>>> checking size of int... 4
>>> checking size of long... 8
>>> checking size of float... 4
>>> checking size of double... 8
>>> checking size of void*... 8
>>> checking size of size_t... 4
>>> checking size of int64_t... 8
>>> checking size of long long... 8
>>> checking size of off_t... 4
>>> checking size of loff_t... 0
>>> checking size of off64_t... 0
>>> checking for getconf... getconf
>>> checking for CFLAGS value to request large file support... no
>>> checking for LDFLAGS value to request large file support... no
>>> checking for LIBS value to request large file support... no
>>> checking for _FILE_OFFSET_BITS... no
>>> checking for _LARGEFILE_SOURCE... no
>>> checking for _LARGE_FILES... no
>>> checking size of off_t... 4
>>> configure: WARNING: This machine does not seem to support 64 bit file offsets.
>>> checking for ssize_t... yes
>>> checking size of ssize_t... 4
>>> checking processor byte ordering... little
>>> checking for malloc... no
>>> checking for calloc... no
>>> checking for realloc... no
>>> checking for free... no
>>> checking for open... no
>>> checking for read... no
>>> checking for write... no
>>> checking for lseek... no
>>> checking for pread... no
>>> checking for pwrite... no
>>> checking for fstat... no
>>> checking for ftruncate... no
>>> checking for fsync... no
>>> checking for snprintf... no
>>> checking for vsnprintf... no
>>> checking for gmtime... yes
>>> checking for gmtime_r... yes
>>> checking for localtime... yes
>>> checking for localtime_r... yes
>>> checking for gettimeofday... yes
>>> checking for mmap... no
>>> checking for getpagesize... yes
>>> checking for setlocale... no
>>> checking for pipe... no
>>> checking for waitpid... yes
>>> checking for floor in -lm... no
>>> checking for floor... no
>>> checking for ceil... no
>>> checking for fmod... no
>>> checking for lrint... yes
>>> checking for lrintf... yes
>>> checking for octave... no
>>> checking for mkoctfile... no
>>> checking for octave-config... no
>>> checking for pkg-config... /usr/local/bin/pkg-config
>>> checking pkg-config is at least version 0.9.0... yes
>>> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
>>>
>>> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
>>> configure: WARNING: *** libvorbis) is either missing (possibly only the development
>>> configure: WARNING: *** headers) or is of an unsupported version.
>>> configure: WARNING: ***
>>> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
>>> configure: WARNING: *** are an all or nothing affair.
>>>
>>> checking processor clipping capabilities... disabled
>>> checking sndio.h usability... no
>>> checking sndio.h presence... no
>>> checking for sndio.h... no
>>> configure: WARNING: Touching files in directory tests/.
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
>>> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>>
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
>>> configure: creating ./config.status
>>> config.status: creating src/Makefile
>>> config.status: creating man/Makefile
>>> config.status: creating examples/Makefile
>>> config.status: creating tests/Makefile
>>> config.status: creating regtest/Makefile
>>> config.status: creating M4/Makefile
>>> config.status: creating doc/Makefile
>>> config.status: creating Win32/Makefile
>>> config.status: creating Octave/Makefile
>>> config.status: creating programs/Makefile
>>> config.status: creating Makefile
>>> config.status: creating src/version-metadata.rc
>>> config.status: creating tests/test_wrapper.sh
>>> config.status: creating tests/pedantic-header-test.sh
>>> config.status: creating doc/libsndfile.css
>>> config.status: creating build-test-tarball.mk
>>> config.status: creating libsndfile.spec
>>> config.status: creating sndfile.pc
>>> config.status: creating src/sndfile.h
>>> config.status: creating src/config.h
>>> config.status: executing depfiles commands
>>> config.status: executing libtool commands
>>>
>>> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
>>>
>>>  Configuration summary :
>>>
>>>    libsndfile version : .................. 1.0.25
>>>
>>>    Host CPU : ............................ i686
>>>    Host Vendor : ......................... pc
>>>    Host OS : ............................. none
>>>
>>>    Experimental code : ................... no
>>>    Using ALSA in example programs : ...... no
>>>    External FLAC/Ogg/Vorbis : ............ no
>>>
>>>  Tools :
>>>
>>>    Compiler is GCC : ..................... yes
>>>    GCC version : .........................
>>> ./configure: line 22318: test: -lt: unary operator expected
>>>
>>>  Installation directories :
>>>
>>>    Library directory : ................... /usr/local/lib
>>>    Program directory : ................... /usr/local/bin
>>>    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>>>    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
>>>
>>> Compiling some other packages against libsndfile may require
>>> the addition of '/usr/local/lib/pkgconfig' to the
>>> PKG_CONFIG_PATH environment variable.
>>>
>>>
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 20:35, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>>>>
>>>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>>>> checking build system type... i686-pc-none
>>>> checking host system type... i686-pc-none
>>>> checking target system type... i686-pc-none
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> checking whether build environment is sane... yes
>>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>>> checking for gawk... no
>>>> checking for mawk... no
>>>> checking for nawk... no
>>>> checking for awk... awk
>>>> checking whether make sets $(MAKE)... yes
>>>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>>>> checking whether the C compiler works... yes
>>>> checking for C compiler default output file name... a.out
>>>> checking for suffix of executables...
>>>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>>>> configure: error: cannot run C compiled programs.
>>>> If you meant to cross compile, use `--host'.
>>>> See `config.log' for more details
>>>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>>>> make: *** No targets specified and no makefile found.  Stop.
>>>>
>>>>
>>>>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>>>> steps in the Emscripten instructions.
>>>>>
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 11 Jun 2017, at 16:03, Richard <zappfinger@gmail.com> wrote:
>>>>>>
>>>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>>>>
>>>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>
>>>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>>>>
>>>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>>>>
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>
>>>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>>>>
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>>>>
>>>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>> File "./emconfigure", line 13, in <module>
>>>>>>>>>>   emconfigure.run()
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>>>   shared.Building.configure(sys.argv[1:])
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>>>   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>>>   errread, errwrite)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>>>   raise child_exception
>>>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>>>>
>>>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>>>>
>>>>>>>>>> Richard
>>>>>>>>>>
>>>>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>>>> Now I get:
>>>>>>>>>>>
>>>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>>>>
>>>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>>>>
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>>
>>>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>>>>
>>>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>>>>
>>>>>>>>>>>> it is now installed
>>>>>>>>>>>> Richard
>>>>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>>>>
>>>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>>>> File "./emsdk", line 2199, in <module>
>>>>>>>>>>>>>   sys.exit(main())
>>>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>>>   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>>>>
>>>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>>>> ..
>>>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>>>> Installation failed!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> and got:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>    https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-12 22:41
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
yes, but -F works just the same. You copy the file into the emscripten filesystem and csound reads it from there. There is an example for files in local disk (csound.github.io/wasm/midiplayer.html) and remote should be similar.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Jun 2017, at 22:27, Rory Walsh <rorywalsh@EAR.IE> wrote:

Remote sound files are fine, but as far as I now there are no opcodes for reading midi from disk. Only the -F flag? 

On 12 June 2017 at 21:22, Steven Yi <stevenyi@gmail.com> wrote:

Be sure to do the source of the env.sh script within the terminal before you run any of our build scripts. That sourcing has to be done every time either by hand or by modifying your shell startup (as noted in the emsdk output). (Those paths are not permanently changed when you source the shell script.)


On Mon, Jun 12, 2017, 1:15 PM Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I installed 'latest' and then activated 'latest',
maybe that is a difference?
In any case, the script can't find the emscripten tools, as if they were not in your path, did you check it?

echo $PATH

see if the relevant dirs are there.

emsdk list

should also list your installed and active versions.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 12 Jun 2017, at 20:58, Richard <zappfinger@GMAIL.COM> wrote:
>
> I installed emscription again, following the exact steps. Like yesterday I had to get an earlier version:
>
> ./emsdk install sdk-1.37.12-64bit
> ./emsdk activate sdk-1.37.12-64bit
>
> (I also had to change the python version in emsdk to 2.7, since my default version is 3.5)
>
> I aslo did the source command and it seemed ok:
> Done installing tool 'emscripten-1.37.12'.
> Done installing SDK 'sdk-1.37.12-64bit'.
> RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
> Writing .emscripten configuration file to user home directory /Users/richard/
> The Emscripten configuration file /Users/richard/.emscripten has been rewritten with the following contents:
>
> import os
> LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
> EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
> BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
> NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
> EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
> SPIDERMONKEY_ENGINE = ''
> V8_ENGINE = ''
> TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
> COMPILER_ENGINE = NODE_JS
> JS_ENGINES = [NODE_JS]
>
> To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
>
> /Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
> RMA:emsdk-portable richard$ source ./emsdk_env.sh
> Setting environment variables:
> EMSDK = /Users/richard/Downloads/emsdk-portable
>
> But then I ran the download and build script :
>
> RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
> download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
> download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
> cp: ./src/.libs/libsndfile.a: No such file or directory
> RMA:emscripten richard$ emmake
>
> I have not change emconfigure and emmake to use python 2.7 yet, maybe I should, although it says it should work with python 2 and 3...
>
> Frustrating....
>
>
>
>
>> On 12/06/17 10:35, Victor Lazzarini wrote:
>> Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
>> Ignore the commands before this in my previous email, I just copied from the wrong point.
>>
>> Start from:
>>> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
>>> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
>>> Resolving www.mega-nerd.com... 97.107.128.207
>>> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
>>> HTTP request sent, awaiting response... 200 OK
>>> Length: 1060692 (1.0M) [application/x-gzip]
>>> Saving to: `libsndfile-1.0.25.tar.gz.1'
>>>
>>> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s
>>>
>>> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
>>>
>>> patching file libsndfile-1.0.25/src/sndfile.c
>>> checking build system type... i686-pc-none
>>> checking host system type... i686-pc-none
>>> checking target system type... i686-pc-none
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>> checking for gawk... no
>>> checking for mawk... no
>>> checking for nawk... no
>>> checking for awk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
>>> checking for style of include used by make... GNU
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
>>> checking whether we are using the GNU C++ compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
>>> checking for a sed that does not truncate output... /usr/bin/sed
>>> checking how to print strings... printf
>>> checking for a sed that does not truncate output... (cached) /usr/bin/sed
>>> checking for grep that handles long lines and -e... /usr/bin/grep
>>> checking for egrep... /usr/bin/grep -E
>>> checking for fgrep... /usr/bin/grep -F
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
>>> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
>>> checking whether ln -s works... yes
>>> checking the maximum length of command line arguments... 196608
>>> checking whether the shell understands some XSI constructs... yes
>>> checking whether the shell understands "+="... yes
>>> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
>>> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
>>> checking for objdump... objdump
>>> checking how to recognize dependent libraries... unknown
>>> checking for dlltool... no
>>> checking how to associate runtime and link libraries... printf %s\n
>>> checking for archiver @FILE support... no
>>> checking for strip... strip
>>> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
>>> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
>>> checking for sysroot... no
>>> checking for mt... no
>>> checking if : is a manifest tool... no
>>> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
>>> checking for ANSI C header files... no
>>> checking for sys/types.h... yes
>>> checking for sys/stat.h... yes
>>> checking for stdlib.h... yes
>>> checking for string.h... yes
>>> checking for memory.h... yes
>>> checking for strings.h... yes
>>> checking for inttypes.h... yes
>>> checking for stdint.h... yes
>>> checking for unistd.h... yes
>>> checking for dlfcn.h... yes
>>> checking for objdir... .libs
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
>>> checking dynamic linker characteristics... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> no
>>> checking how to hardcode library paths into programs... immediate
>>> checking whether stripping libraries is possible... no
>>> checking if libtool supports shared libraries... no
>>> checking whether to build shared libraries... no
>>> checking whether to build static libraries... yes
>>> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking dynamic linker characteristics... no
>>> checking how to hardcode library paths into programs... immediate
>>> checking for windres... no
>>> checking for autogen... no
>>> checking for wine... no
>>> checking whether ln -s works... yes
>>> checking for ANSI C header files... (cached) no
>>> checking endian.h usability... yes
>>> checking endian.h presence... yes
>>> checking for endian.h... yes
>>> checking byteswap.h usability... yes
>>> checking byteswap.h presence... yes
>>> checking for byteswap.h... yes
>>> checking locale.h usability... yes
>>> checking locale.h presence... yes
>>> checking for locale.h... yes
>>> checking sys/time.h usability... yes
>>> checking sys/time.h presence... yes
>>> checking for sys/time.h... yes
>>> checking for sys/wait.h that is POSIX.1 compatible... yes
>>> checking whether S_IRGRP is declared... yes
>>> checking C99 struct flexible array support... yes
>>> checking size of wchar_t... 4
>>> checking size of short... 2
>>> checking size of int... 4
>>> checking size of long... 8
>>> checking size of float... 4
>>> checking size of double... 8
>>> checking size of void*... 8
>>> checking size of size_t... 4
>>> checking size of int64_t... 8
>>> checking size of long long... 8
>>> checking size of off_t... 4
>>> checking size of loff_t... 0
>>> checking size of off64_t... 0
>>> checking for getconf... getconf
>>> checking for CFLAGS value to request large file support... no
>>> checking for LDFLAGS value to request large file support... no
>>> checking for LIBS value to request large file support... no
>>> checking for _FILE_OFFSET_BITS... no
>>> checking for _LARGEFILE_SOURCE... no
>>> checking for _LARGE_FILES... no
>>> checking size of off_t... 4
>>> configure: WARNING: This machine does not seem to support 64 bit file offsets.
>>> checking for ssize_t... yes
>>> checking size of ssize_t... 4
>>> checking processor byte ordering... little
>>> checking for malloc... no
>>> checking for calloc... no
>>> checking for realloc... no
>>> checking for free... no
>>> checking for open... no
>>> checking for read... no
>>> checking for write... no
>>> checking for lseek... no
>>> checking for pread... no
>>> checking for pwrite... no
>>> checking for fstat... no
>>> checking for ftruncate... no
>>> checking for fsync... no
>>> checking for snprintf... no
>>> checking for vsnprintf... no
>>> checking for gmtime... yes
>>> checking for gmtime_r... yes
>>> checking for localtime... yes
>>> checking for localtime_r... yes
>>> checking for gettimeofday... yes
>>> checking for mmap... no
>>> checking for getpagesize... yes
>>> checking for setlocale... no
>>> checking for pipe... no
>>> checking for waitpid... yes
>>> checking for floor in -lm... no
>>> checking for floor... no
>>> checking for ceil... no
>>> checking for fmod... no
>>> checking for lrint... yes
>>> checking for lrintf... yes
>>> checking for octave... no
>>> checking for mkoctfile... no
>>> checking for octave-config... no
>>> checking for pkg-config... /usr/local/bin/pkg-config
>>> checking pkg-config is at least version 0.9.0... yes
>>> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
>>>
>>> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
>>> configure: WARNING: *** libvorbis) is either missing (possibly only the development
>>> configure: WARNING: *** headers) or is of an unsupported version.
>>> configure: WARNING: ***
>>> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
>>> configure: WARNING: *** are an all or nothing affair.
>>>
>>> checking processor clipping capabilities... disabled
>>> checking sndio.h usability... no
>>> checking sndio.h presence... no
>>> checking for sndio.h... no
>>> configure: WARNING: Touching files in directory tests/.
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
>>> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>>
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
>>> configure: creating ./config.status
>>> config.status: creating src/Makefile
>>> config.status: creating man/Makefile
>>> config.status: creating examples/Makefile
>>> config.status: creating tests/Makefile
>>> config.status: creating regtest/Makefile
>>> config.status: creating M4/Makefile
>>> config.status: creating doc/Makefile
>>> config.status: creating Win32/Makefile
>>> config.status: creating Octave/Makefile
>>> config.status: creating programs/Makefile
>>> config.status: creating Makefile
>>> config.status: creating src/version-metadata.rc
>>> config.status: creating tests/test_wrapper.sh
>>> config.status: creating tests/pedantic-header-test.sh
>>> config.status: creating doc/libsndfile.css
>>> config.status: creating build-test-tarball.mk
>>> config.status: creating libsndfile.spec
>>> config.status: creating sndfile.pc
>>> config.status: creating src/sndfile.h
>>> config.status: creating src/config.h
>>> config.status: executing depfiles commands
>>> config.status: executing libtool commands
>>>
>>> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
>>>
>>>  Configuration summary :
>>>
>>>    libsndfile version : .................. 1.0.25
>>>
>>>    Host CPU : ............................ i686
>>>    Host Vendor : ......................... pc
>>>    Host OS : ............................. none
>>>
>>>    Experimental code : ................... no
>>>    Using ALSA in example programs : ...... no
>>>    External FLAC/Ogg/Vorbis : ............ no
>>>
>>>  Tools :
>>>
>>>    Compiler is GCC : ..................... yes
>>>    GCC version : .........................
>>> ./configure: line 22318: test: -lt: unary operator expected
>>>
>>>  Installation directories :
>>>
>>>    Library directory : ................... /usr/local/lib
>>>    Program directory : ................... /usr/local/bin
>>>    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>>>    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
>>>
>>> Compiling some other packages against libsndfile may require
>>> the addition of '/usr/local/lib/pkgconfig' to the
>>> PKG_CONFIG_PATH environment variable.
>>>
>>>
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 11 Jun 2017, at 20:35, Richard <zappfinger@gmail.com> wrote:
>>>>
>>>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>>>>
>>>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>>>> checking build system type... i686-pc-none
>>>> checking host system type... i686-pc-none
>>>> checking target system type... i686-pc-none
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> checking whether build environment is sane... yes
>>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>>> checking for gawk... no
>>>> checking for mawk... no
>>>> checking for nawk... no
>>>> checking for awk... awk
>>>> checking whether make sets $(MAKE)... yes
>>>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>>>> checking whether the C compiler works... yes
>>>> checking for C compiler default output file name... a.out
>>>> checking for suffix of executables...
>>>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>>>> configure: error: cannot run C compiled programs.
>>>> If you meant to cross compile, use `--host'.
>>>> See `config.log' for more details
>>>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>>>> make: *** No targets specified and no makefile found.  Stop.
>>>>
>>>>
>>>>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>>>> steps in the Emscripten instructions.
>>>>>
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 11 Jun 2017, at 16:03, Richard <zappfinger@gmail.com> wrote:
>>>>>>
>>>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>>>>
>>>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 11 Jun 2017, at 15:14, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>
>>>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>>>>
>>>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 11 Jun 2017, at 14:45, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>>>>
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>
>>>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>>>>
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>>>>
>>>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>> File "./emconfigure", line 13, in <module>
>>>>>>>>>>   emconfigure.run()
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>>>   shared.Building.configure(sys.argv[1:])
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>>>   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>>>   errread, errwrite)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>>>   raise child_exception
>>>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>>>>
>>>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>>>>
>>>>>>>>>> Richard
>>>>>>>>>>
>>>>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>>>> Now I get:
>>>>>>>>>>>
>>>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>>>>
>>>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>>>>
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>>
>>>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>>>>
>>>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>>>>
>>>>>>>>>>>> it is now installed
>>>>>>>>>>>> Richard
>>>>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>>>>
>>>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>>>> File "./emsdk", line 2199, in <module>
>>>>>>>>>>>>>   sys.exit(main())
>>>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>>>   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>>>>
>>>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>>>> ..
>>>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>>>> Installation failed!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> and got:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai <khirai@ongaku.isa-geek.net> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess <pete.soundtechnician@gmail.com>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess <pete.soundtechnician@GMAIL.COM>
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>    https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-13 08:52
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
I had another look at this today, and this is what happens:

1) if the PATH to the tools is not set anywhere, you will get the error

download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found

2) sourcing the emsdk_env.sh files resolves this. You can add the line source /path/to/emsdk_env.sh to
the .bash_profile in your $HOME directory, then every time you open a terminal, all the variables will
be properly set.

3) you should also set EMSCRIPTEN_ROOT=  to your emscripten tools directory
you will need it later.


========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 12 Jun 2017, at 20:58, Richard  wrote:
> 
> I installed emscription again, following the exact steps. Like yesterday I had to get an earlier version:
> 
> ./emsdk install sdk-1.37.12-64bit
> ./emsdk activate sdk-1.37.12-64bit
> 
> (I also had to change the python version in emsdk to 2.7, since my default version is 3.5)
> 
> I aslo did the source command and it seemed ok:
> Done installing tool 'emscripten-1.37.12'.
> Done installing SDK 'sdk-1.37.12-64bit'.
> RMA:emsdk-portable richard$ ./emsdk activate sdk-1.37.12-64bit
> Writing .emscripten configuration file to user home directory /Users/richard/
> The Emscripten configuration file /Users/richard/.emscripten has been rewritten with the following contents:
> 
> import os
> LLVM_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit'
> EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/optimizer'
> BINARYEN_ROOT='/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit/binaryen'
> NODE_JS='/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin/node'
> EMSCRIPTEN_ROOT='/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12'
> SPIDERMONKEY_ENGINE = ''
> V8_ENGINE = ''
> TEMP_DIR = '/var/folders/r0/103fxm8x32j76d1yv589d0jc0000gn/T'
> COMPILER_ENGINE = NODE_JS
> JS_ENGINES = [NODE_JS]
> 
> To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
> 
> /Users/richard/Downloads/emsdk-portable:/Users/richard/Downloads/emsdk-portable/clang/e1.37.12_64bit:/Users/richard/Downloads/emsdk-portable/node/4.1.1_64bit/bin:/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12
> RMA:emsdk-portable richard$ source ./emsdk_env.sh
> Setting environment variables:
> EMSDK = /Users/richard/Downloads/emsdk-portable
> 
> But then I ran the download and build script :
> 
> RMA:emscripten richard$ sh download_and_build_libsndfile_wasm.sh
> download_and_build_libsndfile_wasm.sh: line 13: emconfigure: command not found
> download_and_build_libsndfile_wasm.sh: line 14: emmake: command not found
> cp: ./src/.libs/libsndfile.a: No such file or directory
> RMA:emscripten richard$ emmake
> 
> I have not change emconfigure and emmake to use python 2.7 yet, maybe I should, although it says it should work with python 2 and 3...
> 
> Frustrating....
> 
> 
> 
> 
> On 12/06/17 10:35, Victor Lazzarini wrote:
>> Note also, that if you want to build wasm, you should run download_and_build_libsndfile_wasm.sh
>> Ignore the commands before this in my previous email, I just copied from the wrong point.
>> 
>> Start from:
>>> ligeti:emscripten victor$ sh download_and_build_libsndfile_wasm.sh
>>> --2017-06-12 09:24:21--  http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
>>> Resolving www.mega-nerd.com... 97.107.128.207
>>> Connecting to www.mega-nerd.com|97.107.128.207|:80... connected.
>>> HTTP request sent, awaiting response... 200 OK
>>> Length: 1060692 (1.0M) [application/x-gzip]
>>> Saving to: `libsndfile-1.0.25.tar.gz.1'
>>> 
>>> 100%[=================================================================================================>] 1,060,692    722K/s   in 1.4s
>>> 
>>> 2017-06-12 09:24:23 (722 KB/s) - `libsndfile-1.0.25.tar.gz.1' saved [1060692/1060692]
>>> 
>>> patching file libsndfile-1.0.25/src/sndfile.c
>>> checking build system type... i686-pc-none
>>> checking host system type... i686-pc-none
>>> checking target system type... i686-pc-none
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>> checking for gawk... no
>>> checking for mawk... no
>>> checking for nawk... no
>>> checking for awk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for gcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -g... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to accept ISO C89... none needed
>>> checking for style of include used by make... GNU
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... gcc3
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc and cc understand -c and -o together... yes
>>> checking whether we are using the GNU C++ compiler... yes
>>> checking whether /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -g... yes
>>> checking dependency style of /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... gcc3
>>> checking for a sed that does not truncate output... /usr/bin/sed
>>> checking how to print strings... printf
>>> checking for a sed that does not truncate output... (cached) /usr/bin/sed
>>> checking for grep that handles long lines and -e... /usr/bin/grep
>>> checking for egrep... /usr/bin/grep -E
>>> checking for fgrep... /usr/bin/grep -F
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> checking for BSD- or MS-compatible name lister (nm)... /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm
>>> checking the name lister (/Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm) interface... BSD nm
>>> checking whether ln -s works... yes
>>> checking the maximum length of command line arguments... 196608
>>> checking whether the shell understands some XSI constructs... yes
>>> checking whether the shell understands "+="... yes
>>> checking how to convert i686-pc-none file names to i686-pc-none format... func_convert_file_noop
>>> checking how to convert i686-pc-none file names to toolchain format... func_convert_file_noop
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to reload object files... -r
>>> checking for objdump... objdump
>>> checking how to recognize dependent libraries... unknown
>>> checking for dlltool... no
>>> checking how to associate runtime and link libraries... printf %s\n
>>> checking for archiver @FILE support... no
>>> checking for strip... strip
>>> checking for ranlib... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emranlib
>>> checking command to parse /Users/victor/src/emsdk_portable/clang/e1.37.9_64bit/llvm-nm output from /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc object... ok
>>> checking for sysroot... no
>>> checking for mt... no
>>> checking if : is a manifest tool... no
>>> checking how to run the C preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc -E
>>> checking for ANSI C header files... no
>>> checking for sys/types.h... yes
>>> checking for sys/stat.h... yes
>>> checking for stdlib.h... yes
>>> checking for string.h... yes
>>> checking for memory.h... yes
>>> checking for strings.h... yes
>>> checking for inttypes.h... yes
>>> checking for stdint.h... yes
>>> checking for unistd.h... yes
>>> checking for dlfcn.h... yes
>>> checking for objdir... .libs
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -fno-rtti -fno-exceptions... yes
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... yes
>>> checking dynamic linker characteristics... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> no
>>> checking how to hardcode library paths into programs... immediate
>>> checking whether stripping libraries is possible... no
>>> checking if libtool supports shared libraries... no
>>> checking whether to build shared libraries... no
>>> checking whether to build static libraries... yes
>>> checking how to run the C++ preprocessor... /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ -E
>>> checking for ld used by /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++... /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc
>>> checking if the linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) is GNU ld... yes
>>> ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking for /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ option to produce PIC... -fPIC -DPIC
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ PIC flag -fPIC -DPIC works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ static flag -static works... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ supports -c -o file.o... (cached) yes
>>> checking whether the /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ linker (/Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc) supports shared libraries... no
>>> checking dynamic linker characteristics... no
>>> checking how to hardcode library paths into programs... immediate
>>> checking for windres... no
>>> checking for autogen... no
>>> checking for wine... no
>>> checking whether ln -s works... yes
>>> checking for ANSI C header files... (cached) no
>>> checking endian.h usability... yes
>>> checking endian.h presence... yes
>>> checking for endian.h... yes
>>> checking byteswap.h usability... yes
>>> checking byteswap.h presence... yes
>>> checking for byteswap.h... yes
>>> checking locale.h usability... yes
>>> checking locale.h presence... yes
>>> checking for locale.h... yes
>>> checking sys/time.h usability... yes
>>> checking sys/time.h presence... yes
>>> checking for sys/time.h... yes
>>> checking for sys/wait.h that is POSIX.1 compatible... yes
>>> checking whether S_IRGRP is declared... yes
>>> checking C99 struct flexible array support... yes
>>> checking size of wchar_t... 4
>>> checking size of short... 2
>>> checking size of int... 4
>>> checking size of long... 8
>>> checking size of float... 4
>>> checking size of double... 8
>>> checking size of void*... 8
>>> checking size of size_t... 4
>>> checking size of int64_t... 8
>>> checking size of long long... 8
>>> checking size of off_t... 4
>>> checking size of loff_t... 0
>>> checking size of off64_t... 0
>>> checking for getconf... getconf
>>> checking for CFLAGS value to request large file support... no
>>> checking for LDFLAGS value to request large file support... no
>>> checking for LIBS value to request large file support... no
>>> checking for _FILE_OFFSET_BITS... no
>>> checking for _LARGEFILE_SOURCE... no
>>> checking for _LARGE_FILES... no
>>> checking size of off_t... 4
>>> configure: WARNING: This machine does not seem to support 64 bit file offsets.
>>> checking for ssize_t... yes
>>> checking size of ssize_t... 4
>>> checking processor byte ordering... little
>>> checking for malloc... no
>>> checking for calloc... no
>>> checking for realloc... no
>>> checking for free... no
>>> checking for open... no
>>> checking for read... no
>>> checking for write... no
>>> checking for lseek... no
>>> checking for pread... no
>>> checking for pwrite... no
>>> checking for fstat... no
>>> checking for ftruncate... no
>>> checking for fsync... no
>>> checking for snprintf... no
>>> checking for vsnprintf... no
>>> checking for gmtime... yes
>>> checking for gmtime_r... yes
>>> checking for localtime... yes
>>> checking for localtime_r... yes
>>> checking for gettimeofday... yes
>>> checking for mmap... no
>>> checking for getpagesize... yes
>>> checking for setlocale... no
>>> checking for pipe... no
>>> checking for waitpid... yes
>>> checking for floor in -lm... no
>>> checking for floor... no
>>> checking for ceil... no
>>> checking for fmod... no
>>> checking for lrint... yes
>>> checking for lrintf... yes
>>> checking for octave... no
>>> checking for mkoctfile... no
>>> checking for octave-config... no
>>> checking for pkg-config... /usr/local/bin/pkg-config
>>> checking pkg-config is at least version 0.9.0... yes
>>> configure: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***
>>> 
>>> configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
>>> configure: WARNING: *** libvorbis) is either missing (possibly only the development
>>> configure: WARNING: *** headers) or is of an unsupported version.
>>> configure: WARNING: ***
>>> configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
>>> configure: WARNING: *** are an all or nothing affair.
>>> 
>>> checking processor clipping capabilities... disabled
>>> checking sndio.h usability... no
>>> checking sndio.h presence... no
>>> checking for sndio.h... no
>>> configure: WARNING: Touching files in directory tests/.
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -std=gnu99... yes
>>> checking for version of /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc... ERROR:root:no input files
>>> note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
>>> 
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/em++ accepts -Wextra... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wdeclaration-after-statement... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -Wpointer-arith... yes
>>> checking if /Users/victor/src/emsdk_portable/emscripten/1.37.9/emcc accepts -funsigned-char... yes
>>> configure: creating ./config.status
>>> config.status: creating src/Makefile
>>> config.status: creating man/Makefile
>>> config.status: creating examples/Makefile
>>> config.status: creating tests/Makefile
>>> config.status: creating regtest/Makefile
>>> config.status: creating M4/Makefile
>>> config.status: creating doc/Makefile
>>> config.status: creating Win32/Makefile
>>> config.status: creating Octave/Makefile
>>> config.status: creating programs/Makefile
>>> config.status: creating Makefile
>>> config.status: creating src/version-metadata.rc
>>> config.status: creating tests/test_wrapper.sh
>>> config.status: creating tests/pedantic-header-test.sh
>>> config.status: creating doc/libsndfile.css
>>> config.status: creating build-test-tarball.mk
>>> config.status: creating libsndfile.spec
>>> config.status: creating sndfile.pc
>>> config.status: creating src/sndfile.h
>>> config.status: creating src/config.h
>>> config.status: executing depfiles commands
>>> config.status: executing libtool commands
>>> 
>>> -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
>>> 
>>>  Configuration summary :
>>> 
>>>    libsndfile version : .................. 1.0.25
>>> 
>>>    Host CPU : ............................ i686
>>>    Host Vendor : ......................... pc
>>>    Host OS : ............................. none
>>> 
>>>    Experimental code : ................... no
>>>    Using ALSA in example programs : ...... no
>>>    External FLAC/Ogg/Vorbis : ............ no
>>> 
>>>  Tools :
>>> 
>>>    Compiler is GCC : ..................... yes
>>>    GCC version : .........................
>>> ./configure: line 22318: test: -lt: unary operator expected
>>> 
>>>  Installation directories :
>>> 
>>>    Library directory : ................... /usr/local/lib
>>>    Program directory : ................... /usr/local/bin
>>>    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
>>>    HTML docs directory : ................. /usr/local/share/doc/libsndfile1-dev/html
>>> 
>>> Compiling some other packages against libsndfile may require
>>> the addition of '/usr/local/lib/pkgconfig' to the
>>> PKG_CONFIG_PATH environment variable.
>>> 
>>> 
>>> 
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 11 Jun 2017, at 20:35, Richard  wrote:
>>>> 
>>>> Tried it all again, but I cannot get passed the initial step of running the script ( I also upgraded my command line tools):
>>>> 
>>>> RMA:1.37.12 richard$ sh ./download_and_build_libsndfile.sh
>>>> checking build system type... i686-pc-none
>>>> checking host system type... i686-pc-none
>>>> checking target system type... i686-pc-none
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> checking whether build environment is sane... yes
>>>> checking for a thread-safe mkdir -p... Cfg/install-sh -c -d
>>>> checking for gawk... no
>>>> checking for mawk... no
>>>> checking for nawk... no
>>>> checking for awk... awk
>>>> checking whether make sets $(MAKE)... yes
>>>> checking for gcc... /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emcc
>>>> checking whether the C compiler works... yes
>>>> checking for C compiler default output file name... a.out
>>>> checking for suffix of executables...
>>>> checking whether we are cross compiling... configure: error: in `/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25':
>>>> configure: error: cannot run C compiled programs.
>>>> If you meant to cross compile, use `--host'.
>>>> See `config.log' for more details
>>>> ERROR:root:Configure step failed with non-zero return code 1! Command line: ['./configure', '--enable-static', '--disable-shared', '--disable-libtool-lock', '--disable-cpu-clip', '--disable-sqlite', '--disable-alsa', '--disable-external-libs', '--build=i686'] at /Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/deps/libsndfile-1.0.25
>>>> make: *** No targets specified and no makefile found.  Stop.
>>>> 
>>>> 
>>>> On 11/06/17 19:25, Victor Lazzarini wrote:
>>>>> You get the csound sources from git and then follow the instructions in the emscripten/README.md file of the csound
>>>>> sources. Make sure that the Emscripten toolchain is fully installed and that all the paths are set correctly to the Emscripten
>>>>> binaries. Half-installed with nothing of their bin directories in your PATH will not work, so you need to complete all
>>>>> steps in the Emscripten instructions.
>>>>> 
>>>>> 
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 11 Jun 2017, at 16:03, Richard  wrote:
>>>>>> 
>>>>>> Ok, but what sources and where do I put them? Do I need the whole csound folder from git or just the emscripten folder?
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> 
>>>>>> On 11/06/17 16:59, Victor Lazzarini wrote:
>>>>>>> All you need to do is run the scripts as in the instructions (of course, assuming you have the latest sources from git develop).
>>>>>>> Nothing else. With Emscripten properly installed, it will compile everything.  That’s what I did here.
>>>>>>> 
>>>>>>> The errors below are saying that emscripten is not properly installed or configured, because the script can’t find the commands.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 11 Jun 2017, at 15:14, Richard  wrote:
>>>>>>>> 
>>>>>>>> I followed these steps and emscription works. I compiled this nice little GUI package with it. https://medium.com/@shiyan/rejuvenate-my-old-opengl-gui-with-webassembly-1d46a6baa52e and it runs in the browser.
>>>>>>>> 
>>>>>>>> My problem is that that the csound instructions are not clear. Does the 'download_and_install' script do all the work or do I have to clone the csound/emscription folder also into my local emscription folder?
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> On 11/06/17 16:02, Victor Lazzarini wrote:
>>>>>>>>> Emscripten is not properly installed and configured (paths etc). Follow all instructions in the Emscripten site. That is what I did.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 11 Jun 2017, at 14:45, Richard  wrote:
>>>>>>>>>> 
>>>>>>>>>> Not sure what goes wrong now. I get:
>>>>>>>>>> 
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>> 
>>>>>>>>>> I already changed emconfigure and emmake to use python2.7.
>>>>>>>>>> The download script calls emconfigure and emmake without './' preceding it, so I changed that. Then I get:
>>>>>>>>>> 
>>>>>>>>>> RMA:1.37.12 richard$ sudo ./download_and_build_libsndfile.sh
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: ./emconfigure: No such file or directory
>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: ./emmake: No such file or directory
>>>>>>>>>> 
>>>>>>>>>> But executing the line on its own it tries to do something:
>>>>>>>>>> RMA:1.37.12 richard$ ./emconfigure ./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$
>>>>>>>>>> ERROR:root:Exception thrown when invoking Popen in configure with args: "./configure --enable-static --disable-shared --disable-libtool-lock --disable-cpu-clip --disable-sqlite --disable-alsa --disable-external-lib$"!
>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>> File "./emconfigure", line 13, in 
>>>>>>>>>>   emconfigure.run()
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/emconfigure.py", line 46, in run
>>>>>>>>>>   shared.Building.configure(sys.argv[1:])
>>>>>>>>>> File "/Users/richard/Downloads/emsdk-portable/emscripten/1.37.12/tools/shared.py", line 1487, in configure
>>>>>>>>>>   process = Popen(args, stdout=None if EM_BUILD_VERBOSE_LEVEL >= 2 else stdout, stderr=None if EM_BUILD_VERBOSE_LEVEL >= 1 else stderr, env=env)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
>>>>>>>>>>   errread, errwrite)
>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>>>>>>>>>   raise child_exception
>>>>>>>>>> OSError: [Errno 2] No such file or directory
>>>>>>>>>> 
>>>>>>>>>> It looks like there is no 'configure' directory??
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> 
>>>>>>>>>> On 11/06/17 15:07, Richard wrote:
>>>>>>>>>>> I tried to execute the download_and_install script. To my surprise, OS X does not come with wget, so had to install that first.
>>>>>>>>>>> Now I get:
>>>>>>>>>>> 
>>>>>>>>>>> libsndfile-1.0.25.tar.gz 100%[==========================================================================>] 1.01M  1.30MB/s    in 0.8s
>>>>>>>>>>> 
>>>>>>>>>>> 2017-06-11 14:55:09 (1.30 MB/s) - ‘libsndfile-1.0.25.tar.gz’ saved [1060692/1060692]
>>>>>>>>>>> 
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 8: ../patches/sndfile.c.patch: No such file or directory
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 13: emconfigure: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 14: emmake: command not found
>>>>>>>>>>> ./download_and_build_libsndfile.sh: line 15: cd: ./src/.libs: No such file or directory
>>>>>>>>>>> 
>>>>>>>>>>> Do I have to copy the csound emscripten folder to my enscripten folder, or the whole csound folder?
>>>>>>>>>>> 
>>>>>>>>>>> Richard
>>>>>>>>>>> 
>>>>>>>>>>> On 11/06/17 13:20, Richard wrote:
>>>>>>>>>>>> Ok, I had to use these commands to get rid of that:
>>>>>>>>>>>> 
>>>>>>>>>>>> ./emsdk install sdk-1.37.12-64bit
>>>>>>>>>>>> ./emsdk activate sdk-1.37.12-64bit
>>>>>>>>>>>> 
>>>>>>>>>>>> it is now installed
>>>>>>>>>>>> Richard
>>>>>>>>>>>> On 11/06/17 13:03, Richard wrote:
>>>>>>>>>>>>> Confusing, since on the original website it says to install webassembly first and then emscripten, it seems.
>>>>>>>>>>>>> Anyway, I can't get past the first command (emsdk update):
>>>>>>>>>>>>> 
>>>>>>>>>>>>> RMA:emsdk-portable richard$ ./emsdk update
>>>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>>>> File "./emsdk", line 2199, in 
>>>>>>>>>>>>>   sys.exit(main())
>>>>>>>>>>>>> File "./emsdk", line 1853, in main
>>>>>>>>>>>>>   if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
>>>>>>>>>>>>> TypeError: object of type 'filter' has no len()
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I guessed it had to do with my default Python version (3.5). I changed the first line in emsdk to use python2.7 and got a bit further.
>>>>>>>>>>>>> But on the command 'emsdk install latest' it failed:
>>>>>>>>>>>>> ..
>>>>>>>>>>>>> Installing SDK 'sdk-1.37.13-64bit'..
>>>>>>>>>>>>> Installing tool 'clang-e1.37.13-64bit'..
>>>>>>>>>>>>> HTTP error with URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/osx_64bit/emscripten-llvm-e1.37.13.tar.gz': HTTP Error 403: Forbidden
>>>>>>>>>>>>> Installation failed!
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>> On 11/06/17 12:37, Victor Lazzarini wrote:
>>>>>>>>>>>>>> You need emscripten:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> https://github.com/csound/csound/blob/develop/emscripten/README.md
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 11 Jun 2017, at 11:15, Richard  wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> How do I install WebAssembly on OS X?
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> The web page says use brew, but it does not show the exact line...
>>>>>>>>>>>>>>> I tried:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> brew install webassembly
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> and got:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Error: No available formula with the name "webassembly"
>>>>>>>>>>>>>>> ==> Searching for a previously deleted formula...
>>>>>>>>>>>>>>> Warning: homebrew/core is shallow clone. To get complete history run:
>>>>>>>>>>>>>>> git -C "$(brew --repo homebrew/core)" fetch --unshallow
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Error: No previously deleted formula found.
>>>>>>>>>>>>>>> ==> Searching for similarly named formulae...
>>>>>>>>>>>>>>> Error: No similarly named formulae found.
>>>>>>>>>>>>>>> ==> Searching taps...
>>>>>>>>>>>>>>> Error: No formulae found in taps.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 10/06/17 23:32, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> I have ported the csound.js frontend from PNaCl csound and added some examples from the
>>>>>>>>>>>>>>>> PNaCl collection (to the wasm subdirectory). It’s now fairly simple to port/adapt code that used
>>>>>>>>>>>>>>>> to run with PNaCl to run with WASM.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> I’ve added some extra functionality to CsoundObj, including a means of freeing up memory,
>>>>>>>>>>>>>>>> which wasn’t there (I expect that the code was leaking memory without it, but now it should be
>>>>>>>>>>>>>>>> OK, provided that the CsoundObj gets destroyed explicitly).
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 10 Jun 2017, at 18:01, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I have installed the WebAssembly toolchain on my Linux computer, run
>>>>>>>>>>>>>>>>> the build scripts, and got Csound to play "Trapped" in my browser.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> There are a couple of minor irritations that I will fix or document.
>>>>>>>>>>>>>>>>> On the whole it was painless.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Thanks again to hfmanson, Victor, and anyone else who made this possible.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> As I did for the PNaCl build, I will add some of the plugin C++
>>>>>>>>>>>>>>>>> opcodes to be statically linked into the WebAssembly build of the
>>>>>>>>>>>>>>>>> Csound library. I will also try to port my examples at
>>>>>>>>>>>>>>>>> gogins.github.io to use WebAssembly instead of PNaCl. Some of these
>>>>>>>>>>>>>>>>> are full-scale pieces with visuals that have been performed.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On Thu, Jun 8, 2017 at 7:04 PM, Victor Lazzarini
>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>> Btw I’ve added a new example, adapted from PNaCl Csound. It wasn’t difficult to adapt it.
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 9 Jun 2017, at 00:02, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> yes, I don’t  think it has been rolled out to mobile platforms. I tried on iOS and it didn’t run.
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 22:52, Kelly Hirai  wrote:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm/RandomGenerator.html
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> not getting it on chrome 58.0.3029.83 for android 7.
>>>>>>>>>>>>>>>>>>>> "aww snap" it says.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> firefox on linux i have randomgenerator running in 3 tabs. :)
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> occasionally the rhythm changes so... there are some timing issues.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> very cool. really looking forward to sharing compositions this way.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> kelly
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 06/08/2017 05:10 PM, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>> Requires a minimum of FF 52 or Chrome 57 afaik.
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Wasm is very new, was only added to production browsers last month.
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 21:57, Tarmo Johannes  wrote:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> I probably need an update of the browsers,
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Mine Firefox  51.0.1 (that I cannot update due to some plugins that are broken
>>>>>>>>>>>>>>>>>>>>>> with later versions) and Chrome 55
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> both stop at state "loading... " on the screen an javascript console reports:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> uncaught exception: no binaryen method succeeded. consider enabling more
>>>>>>>>>>>>>>>>>>>>>> options, like interpreting, if you want that: https://github.com/kripken/
>>>>>>>>>>>>>>>>>>>>>> emscripten/wiki/WebAssembly#binaryen-methods
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Jut to let know, this is not a problem, I need to update.
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Thank you!
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> tarmo
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On neljapäev, 8. juuni 2017 20:22.00 EEST you wrote:
>>>>>>>>>>>>>>>>>>>>>>> I’ve put up a simple example at
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> https://csound.github.io/wasm
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> tested on the latest chrome (59), but I believe it will run on firefox 52 as
>>>>>>>>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> On 8 Jun 2017, at 18:56, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>> Awesome! I can't remember when I started Csound now, probably around 2013,
>>>>>>>>>>>>>>>>>>>>>>>> but I didn't know any javascript until recently, so I probably never took
>>>>>>>>>>>>>>>>>>>>>>>> notice of it. Regardless, I'll check out both
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 11:12 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> A javascript Csound has existed since 2013, compiled with
>>>>>>>>>>>>>>>>>>>>>>>> emscripten. Now a web assembly version is possible as well.
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017, at 22:59, Peter Burgess 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>> Thanks for the update! I've been considering Web based Csound again,
>>>>>>>>>>>>>>>>>>>>>>>>> though I never got my head round pnacl... So you can akready use Csound
>>>>>>>>>>>>>>>>>>>>>>>>> with java script? My Web application isn't real time, so that might be a
>>>>>>>>>>>>>>>>>>>>>>>>> good easy way for me to realise my plans
>>>>>>>>>>>>>>>>>>>>>>>>> On 7 Jun 2017 10:24 p.m., "Victor Lazzarini" 
>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> The bad news: Google decided to kill PNaCl, and from 2018 it
>>>>>>>>>>>>>>>>>>>>>>>>> will be dropped from its browsers. So, we’ll stop producing pnacl
>>>>>>>>>>>>>>>>>>>>>>>>> packages at some point. It’s a shame because the technology is good and
>>>>>>>>>>>>>>>>>>>>>>>>> it supports better performance.
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> The good news: a web-assembly (WASM) build of Csound has been developed
>>>>>>>>>>>>>>>>>>>>>>>>> (thanks to hfmanson who
>>>>>>>>>>>>>>>>>>>>>> produced a build script for us). It uses the
>>>>>>>>>>>>>>>>>>>>>>>>> same model as js csound and very similar infrastructure, so it’s a
>>>>>>>>>>>>>>>>>>>>>>>>> drop-in replacement for it.
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> I have tested the builds with trapped and the performance is as follows:
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> 1. benchmark (native): 2.9s
>>>>>>>>>>>>>>>>>>>>>>>>> 2. PNaCl: 3.6s
>>>>>>>>>>>>>>>>>>>>>>>>> 3. JS: 13s
>>>>>>>>>>>>>>>>>>>>>>>>> 4. WASM: 6.4s
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> So it’s not as good pnacl, but it’s twice as fast as the JS version. It’s
>>>>>>>>>>>>>>>>>>>>>>>>> not as good for RT audio
>>>>>>>>>>>>>>>>>>>>>> either as it depends on Web Audio, which is
>>>>>>>>>>>>>>>>>>>>>>>>> still pretty awful.
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> As with many technologies in the past, the superior version (PNaCl) was
>>>>>>>>>>>>>>>>>>>>>>>>> not the one to be
>>>>>>>>>>>>>>>>>>>>>> adopted generally.
>>>>>>>>>>>>>>>>>>>>>>>>> Anyway, at least we have a way of ensuring the continuation of Web-based
>>>>>>>>>>>>>>>>>>>>>>>>> Csound.
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>>>>>>>>>>>>>>>>>>>>> can be posted here
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>    https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>     https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-13 10:18
Fromfra
SubjectRe: Web-based Csound, updates, future directions
Hi,
just to say that on linux (Ubuntu 16.04) after source /path/to/emsdk_env.sh
i also had to export EMSCRIPTEN_ROOT.
After that build was ok.

Thanks,
ciao,
francesco.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-13 11:34
FromVictor Lazzarini
SubjectRe: Web-based Csound, updates, future directions
Good. I’ve added a collection of examples to the ./wasm directory which you can try out if
you wish.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Jun 2017, at 10:18, fra  wrote:
> 
> Hi,
> just to say that on linux (Ubuntu 16.04) after source /path/to/emsdk_env.sh
> i also had to export EMSCRIPTEN_ROOT.
> After that build was ok.
> 
> Thanks,
> ciao,
> francesco.
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here