[Csnd] Webaudio
Date | 2018-11-05 08:13 |
From | Oeyvind Brandtsegg |
Subject | [Csnd] Webaudio |
Hi,
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
What is the current best practice for Csound on the web? Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2018-11-05 09:16 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Webaudio |
It should just need downloading the package https://github.com/csound/csound/releases/download/6.12.0/csound6.12.0-Web.zip and using 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 5 Nov 2018, at 08:13, Oeyvind Brandtsegg |
Date | 2018-11-05 09:44 |
From | Rory Walsh |
Subject | Re: [Csnd] Webaudio |
As far as I know, you'll need to launch a web server to run these examples. If you wish to use Csound without a web server, hlolli has a fork that presents everything as a single JS file and it doesn't require a web server to run. I've been using it to embed working Csound examples directly into my lecture notes 😉 On Mon, 5 Nov 2018 at 09:17, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: It should just need downloading the package |
Date | 2018-11-05 10:09 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Webaudio |
Thanks so much! I see Andreas here is running the examples easily in Firefox, but not in Chrome. I've tried Opera and Chrome, and it seems there is a problem loading Csound. Looking at the dev console in Chrome, I have: minimal.html:1 Uncaught (in promise) DOMException: The user aborted a request. Promise.then (async) Promise @ CsoundNode.js:295 importScripts @ CsoundNode.js:294 csound_load_script @ CsoundObj.js:322 load (async) csound_load_script @ CsoundObj.js:62 Promise @ CsoundObj.js:319 importScripts @ CsoundObj.js:318 (anonymous) @ csound.js:57 load (async) load_dep @ csound.js:37 createModule @ csound.js:55 (anonymous) @ csound.js:449 Also, on a minor note, there was an examples/index.htm file in the 6.11 version of the zip file, but this is absent in the 6.12 version. Just wanted to ask if that was intentional. And, Rory, is there a minimal exampl of how to use the csound-wasm-browser.js ? all best Den man. 5. nov. 2018 kl. 10:45 skrev Rory Walsh <rorywalsh@ear.ie>:
Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2018-11-05 10:28 |
From | Rory Walsh |
Subject | Re: [Csnd] Webaudio |
On Mon, 5 Nov 2018 at 10:10, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
|
Date | 2018-11-05 10:35 |
From | Rory Walsh |
Subject | Re: [Csnd] Webaudio |
I can put together a simple example a little later. On Mon, 5 Nov 2018 at 10:28, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2018-11-05 11:22 |
From | John ff |
Subject | Re: [Csnd] Webaudio |
Slightly off subject, is there any point in the netcsound service continuing in the light of Webaudio? Sent from TypeApp On Nov 5, 2018, 09:46, at 09:46, Rory Walsh |
Date | 2018-11-05 11:41 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Webaudio |
Great, thanks. Got it running now, but had to use Firefox to make it run locally from a folder. Is there a trick I could use to allow it to run in all browsers? Den man. 5. nov. 2018 kl. 10:16 skrev Victor Lazzarini <Victor.Lazzarini@mu.ie>: It should just need downloading the package Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2018-11-05 12:18 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Webaudio |
There should be no trick. I have not looked at these, since Steven had been maintaining it, but it should run out of the box on the major browsers. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 Nov 2018, at 11:41, Oeyvind Brandtsegg |
Date | 2018-11-05 12:30 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Webaudio |
It works here on Chrome, just tested. I ran a http server (http-server from npm) and I can get minimal.html up and running. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 Nov 2018, at 12:18, Victor Lazzarini |
Date | 2018-11-05 12:42 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Webaudio |
Thank you. That was the trick. I actually just ran the local file in the browser without running a server... Den man. 5. nov. 2018 kl. 13:30 skrev Victor Lazzarini <Victor.Lazzarini@mu.ie>: It works here on Chrome, just tested. I ran a http server (http-server from npm) Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2018-11-05 12:57 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] Webaudio |
You can also run a web server with Python 3: python3 -m http.server Op ma 5 nov. 2018 om 13:43 schreef Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no>:
|
Date | 2018-11-05 13:23 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Webaudio |
The only thing I noticed is that console messages stopped working. I will need to investigate this. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 Nov 2018, at 12:42, Oeyvind Brandtsegg |
Date | 2018-11-06 13:12 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Webaudio |
All good, thanks a lot. I will use it in the context of showing to students the many ways one can interface with Csound. Den man. 5. nov. 2018 kl. 14:23 skrev Victor Lazzarini <Victor.Lazzarini@mu.ie>: The only thing I noticed is that console messages stopped working. I will need to investigate this. Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2018-11-06 13:40 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Webaudio |
We're investigating, but at the moment Csound messages can only be seen in the browser developer console and can't be
captured/redirected from there.
That's a bit of a pain, but otherwise everything else should work.
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2018-11-07 14:21 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Webaudio |
We managed to figure out what was wrong (a change in Emscripten) and issued a hotfix. There is now a new release package, which also includes an index page for the examples. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 6 Nov 2018, at 13:40, Victor Lazzarini |
Date | 2018-11-07 14:25 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Webaudio |
Very nice. Thank you. Den ons. 7. nov. 2018, 3.21 p.m. skrev Victor Lazzarini <Victor.Lazzarini@mu.ie>: We managed to figure out what was wrong (a change in Emscripten) and issued |