about csound on the web newbie questions
Date | 2017-06-12 16:55 |
From | Francesco Porta |
Subject | about csound on the web newbie questions |
Hi All, i'm a very basic knowledge about html and javascript and i was reading the post about csound webassembly. What i would like to ask is for a really really simple example because looking at csound emscripten folder I see too much for my little brain. I have built webassembly csound (is that correct?) following the instructions in emscripten folder and I am able to play with examples but now I would like to write somethings to my own. So can I have only an index.html file that "import" libcsound.js? Or what i need to do? Any help, hint or how to look is really appreciated. 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 |
Date | 2017-06-12 17:08 |
From | Michael Gogins |
Subject | Re: about csound on the web newbie questions |
I will add to the emscripten/README.md file a very basic working example with sufficient explanation of what is going on. There are working examples scattered about but, as you say, no clear, easy to follow minimal example in an obvious place. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jun 12, 2017 at 11:55 AM, Francesco Porta |
Date | 2017-06-15 02:56 |
From | Michael Gogins |
Subject | Re: about csound on the web newbie questions |
I have done as you asked, more or less. To make a simple obvious example work, I had to slightly modify the Csound C and JavaScript sources a little in the https://github.com/csound/csound/tree/develop/emscripten directory, so Csound for WebAssembly has to be rebuilt before my example (https://github.com/csound/csound/blob/develop/emscripten/examples-wasm/minimal.html) will work. My changes were to enable csoundCompileCsdText to work in the WebAssembly build. However, there is a running version of the example (with a rebuilt version of Csound for WebAssembly) in my own repository at https://gogins.github.io. This example will probably run for you from here: https://gogins.github.io/csound/wasm/minimal.html. It's fairly self-explanatory and you can examine the source code. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jun 12, 2017 at 12:08 PM, Michael Gogins |
Date | 2017-06-15 03:30 |
From | Guillermo Senna |
Subject | Re: about csound on the web newbie questions |
What kind of sorcery is this? I opened the html in vanilla Firefox, Linux and it worked without me having to install any extra web component. Are we already living in the future? Congratulations to all the people working on this! It also (almost sort of) worked on my Android device, but Xanadu seems to be a little too much for it. Cheers. On 14/06/17 22:56, Michael Gogins wrote: > I have done as you asked, more or less. > > To make a simple obvious example work, I had to slightly modify the > Csound C and JavaScript sources a little in the > https://github.com/csound/csound/tree/develop/emscripten directory, so > Csound for WebAssembly has to be rebuilt before my example > (https://github.com/csound/csound/blob/develop/emscripten/examples-wasm/minimal.html) > will work. My changes were to enable csoundCompileCsdText to work in > the WebAssembly build. > > However, there is a running version of the example (with a rebuilt > version of Csound for WebAssembly) in my own repository at > https://gogins.github.io. > > This example will probably run for you from here: > https://gogins.github.io/csound/wasm/minimal.html. It's fairly > self-explanatory and you can examine the source code. > > Regards, > Mike > > ----------------------------------------------------- > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Mon, Jun 12, 2017 at 12:08 PM, Michael Gogins > |
Date | 2017-06-15 15:33 |
From | luis jure |
Subject | Re: about csound on the web newbie questions |
el 2017-06-14 a las 23:30 Guillermo Senna escribió: > What kind of sorcery is this? I opened the html in vanilla Firefox, > Linux and it worked without me having to install any extra web > component. indeed! the same here. guys, could you please slow down a little bit until guys like me can catch up with all the recent developments? Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-06-15 16:12 |
From | Michael Gogins |
Subject | Re: about csound on the web newbie questions |
WebAssembly has the potential to change the world of software in some significant ways -- if it is widely adopted and if it proves to be secure. WebAssembly already has been widely adopted by the W3C standards group and by the major browsers. If it is widely adopted by software developers AND if it proves to be secure, then fairly quickly I would expect all "native execution" environments (Java applets, Netscape plugins, other binary plugin formats, PNaCl, Emscripten) on the Web to be replaced by WebAssembly. This could happen over just the next year or two. The main reason for WebAssembly to be used instead of Java applets or other native execution environments is security. But security truly is a big deal. WebAssembly runs in the same security sandbox as Web pages and their associated JavaScript. Standardization is also a big deal. WebAssembly also is designed to run on servers and desktops, as JavaScript now does in node.js and NW.js. What this means for Csound is that, potentially, the existing AT LEAST SIX ways of running HTML5 with Csound (Csound for Android, csound.node, the qthtml branch of CsoundQt, Csound for PNaCl, Csound for Emscripten, there may be more, and of course Csound for WebAssembly) could be replaced by JUST ONE (Csound for WebAssembly). For example, the current version of NW.js is said to support WebAssembly. This would free up a significant amount of time for Csound developers. But the most important thing is that with WebAssembly, Csound will be running in the most widely used development environment in the world -- the HTML5 environment. JavaScript acts as "glue" that will enable Csound to be used with virtual reality, databases, position sensors, math typesetting, 3D animation, MIDI, styleable user interfaces, and all the other capabilities that are a standard part of HTML5, not to mention other libraries that will now start being ported to WebAssembly, such as game engines. I'd like to thank (in no particular order) Steven Yi, Victor Lazzarini, hfmanson, Edward Costello, and others who made this possible. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Jun 15, 2017 at 10:33 AM, luis jure |