[Csnd] Csound running on Chrome
Date | 2013-11-15 12:45 |
From | Victor Lazzarini |
Subject | [Csnd] Csound running on Chrome |
I’ve been working on port of Csound to run on the Chrome browser, as a pNaCL client/app. This now is complete, so html5+pNaCL webpages can be designed with it. I managed to put together an interactive example. Here is a demo: http://www.youtube.com/watch?v=RHwpsgprOFE&feature=youtu.be The code is in GIT under ./nacl (requires a pnacl build of libsndfile). Regard Victor |
Date | 2013-11-15 12:52 |
From | peiman khosravi |
Subject | Re: [Csnd] Csound running on Chrome |
Oh my god, that's amazing. Great for teaching. On 15 November 2013 12:45, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: I’ve been working on port of Csound to run on the Chrome browser, as a pNaCL client/app. |
Date | 2013-11-15 13:27 |
From | andy fillebrown |
Subject | Re: [Csnd] Csound running on Chrome |
Nice! On Fri, Nov 15, 2013 at 7:52 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2013-11-15 14:04 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Csound running on Chrome |
Very nice, thanks, it'll be great for the DSP eartraining course! Oeyvind 2013/11/15 andy fillebrown |
Date | 2013-11-15 14:10 |
From | Michael Gogins |
Subject | Re: [Csnd] Csound running on Chrome |
This shows how to write files from the PNaCl sandbox to the local host computer's filesystem: http://mainroach.blogspot.com/2012/08/nacl-writing-files-outside-sandbox.html#!/2012/08/nacl-writing-files-outside-sandbox.html.
This shows how to read files from the local host computer's filesystem: http://mainroach.blogspot.com/2012/08/nacl-writing-files-outside-sandbox.html#!/2012/07/native-client-and-loading-user-chosen.html.
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Nov 15, 2013 at 9:04 AM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: Very nice, thanks, it'll be great for the DSP eartraining course! |
Date | 2013-11-15 14:26 |
From | Richard Dobson |
Subject | Re: [Csnd] Csound running on Chrome |
Congratulations. The word "awesome" is somewhat overused these days, but this must surely be a case where it is entirely appropriate. Incredible work; and so quick too - two days? The educational possibilities alone are vast. I hope to see an emscripten verison too; the more platforms for Csound on the net the better! Richard Dobson On 15/11/2013 12:45, Victor Lazzarini wrote: > I’ve been working on port of Csound to run on the Chrome browser, as > a pNaCL client/app. This now is complete, so html5+pNaCL webpages > can be designed with it. > > I managed to put together an interactive example. Here is a demo: > > http://www.youtube.com/watch?v=RHwpsgprOFE&feature=youtu.be > > The code is in GIT under ./nacl (requires a pnacl build of > libsndfile). > |
Date | 2013-11-15 14:29 |
From | Rory Walsh |
Subject | Re: [Csnd] Csound running on Chrome |
I guess it won't be too long before all the examples in the online manual can be hacked in place on a browser :) On 15 November 2013 14:26, Richard Dobson |
Date | 2013-11-15 14:32 |
From | Michael Gogins |
Subject | Re: [Csnd] Csound running on Chrome |
Yes, if the resources (samples, analysis files, etc.) the examples need are in the "app." Also, this makes it SO EASY to embed Csound as an audio engine in an online game. It is online gaming that is driving this technology.
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Nov 15, 2013 at 9:29 AM, Rory Walsh <rorywalsh@ear.ie> wrote: I guess it won't be too long before all the examples in the online |
Date | 2013-11-15 14:40 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
I don’t think this is useful for Csound, because to use pepper file IO would mean ditching libsndfile and rewrite the whole file IO backend specifically for this, which is an enormous task. We need to look for options that allow fopen() and fread() to be used. The notes mention a nacls_mount library that might allow a filesystem to be mounted and used with fread() etc. (https://developers.google.com/native-client/sdk/release-notes), so that might be a way in. Victor On 15 Nov 2013, at 14:10, Michael Gogins |
Date | 2013-11-15 14:48 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound running on Chrome |
Thanks; I was noting elsewhere that I was impressed how easy it was to use the nacl_sdk, and that there were only a few steps involved in it, so I guess it really qualifies as a RADE. Steven has put the first pnacl effort up in his site, so you can try it by yourself. Not very exciting, but works. http://kunstmusik.com/example/ You will need Chrome 31 (check if pnacl is enable by typing chrome://nacl in the address bar). It takes a little while to load (depending on your connection) the first time you open the page, so wait for the status to change to RUNNING, before playing it. I have tested in on OSX, Windows and Linux (ubuntu). Regards Victor On 15 Nov 2013, at 14:26, Richard Dobson |
Date | 2013-11-15 14:52 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
Here’s the page for nacl_mounts https://developers.google.com/native-client/devguide/coding/naclmounts?hl=en On 15 Nov 2013, at 14:40, Victor Lazzarini |
Date | 2013-11-15 14:52 |
From | Michael Gogins |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
Attachments | None None |
Actually I wouldn't dream of ditching libsndfile. I was thinking of some simple hack to copy files easily or even automatically to and from the sandbox. Regards, On Nov 15, 2013 9:40 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I don’t think this is useful for Csound, because to use pepper file IO would mean ditching libsndfile and rewrite the whole file IO backend specifically for this, which is |
Date | 2013-11-15 15:02 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
Ok, but the pages you posted seemed to indicate the use of pepper API instead of the usual C stdio. I am looking here now that actually nacl_mounts has become nacl_io in pepper_31 and provides full C stdio compatibility, so it should all work OK. https://developers.google.com/native-client/dev/devguide/coding/nacl_io Victor On 15 Nov 2013, at 14:52, Michael Gogins |
Date | 2013-11-15 15:24 |
From | Michael Gogins |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
Attachments | None None |
But that would only be inside the sandbox, no? Regards, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Nov 15, 2013 at 10:02 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Ok, but the pages you posted seemed to indicate the use of pepper API instead of the usual C stdio. |
Date | 2013-11-15 15:43 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
yes, it’s the html5s filesystem, which the app should mount. I see how I can read from the server, there is no problem there (it looks). There is also persistent local storage. We just have to find how to access the mounted file system so files can be copied there. Victor On 15 Nov 2013, at 15:24, Michael Gogins |
Date | 2013-11-15 16:10 |
From | Michael Gogins |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
Attachments | None None |
That is exactly what I was talking about. Regards, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Nov 15, 2013 at 10:43 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: yes, it’s the html5s filesystem, which the app should mount. I see how I can read from the server, there is no problem |
Date | 2013-11-15 16:35 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] [Csnd] Csound running on Chrome |
yes, but that blog was discussing accessing files through the pepper API, which is not possible/useful with Csound. Victor On 15 Nov 2013, at 16:10, Michael Gogins |
Date | 2013-11-15 16:59 |
From | Richard Dobson |
Subject | Re: [Csnd] Csound running on Chrome |
.. > > The code is in GIT under ./nacl (requires a pnacl build of libsndfile). > I have discovered that as a complete git newbie I do not understand what this means. What git command should I use to download csound with the nacl materials? Richard Dobson |
Date | 2013-11-15 18:06 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound running on Chrome |
On OSX/linux: git clone git://git.code.sf.net/p/csound/csound6-git csound-csound6-git Victor On 15 Nov 2013, at 16:59, Richard Dobson |
Date | 2013-11-16 07:50 |
From | zappfinger |
Subject | [Csnd] Re: Csound running on Chrome |
Amazing developments here...very nice! Richard -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-running-on-Chrome-tp5729697p5729747.html Sent from the Csound - General mailing list archive at Nabble.com. |