[Csnd] The Absolute Vanilla Guide to Webaudio Csound

So I decided to try doing a set of tutorials for Csound WASM that are different to what Steven and Hlodver have put together.
They have a philosophy (correct) of the Web developer who works with all the toolchains and gets everything right, the modules,
the standard.

This one is not that, it’s just about getting Csound running no matter what with the bare minimum of dependencies and fuss.
I am trying to work on get things running from nothing. So I set up the repo and put in the first tutorial which does the absolute
minimum (plays a sound in response to a user action) with very little code.

Hopefully, in my free time, I will add to this, building up to do other things. The repo is organised with READMEs detailing the code
and index.html files embedding the JS scripts.

This very, very welcome. Thank you, Victor!
Tarmo

P, 13. november 2022 18:30 Victor Lazzarini <Victor.Lazzarini@mu.ie> kirjutas:

So I decided to try doing a set of tutorials for Csound WASM that are different to what Steven and Hlodver have put together.
They have a philosophy (correct) of the Web developer who works with all the toolchains and gets everything right, the modules,
the standard.

This one is not that, it’s just about getting Csound running no matter what with the bare minimum of dependencies and fuss.
I am trying to work on get things running from nothing. So I set up the repo and put in the first tutorial which does the absolute
minimum (plays a sound in response to a user action) with very little code.

https://github.com/vlazzarini/vanilla

Hopefully, in my free time, I will add to this, building up to do other things. The repo is organised with READMEs detailing the code
and index.html files embedding the JS scripts.

Prof. Victor Lazzarini
Maynooth University
Ireland

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

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

That's really useful, thanks.

I started with web audio Csound a couple of months ago and found it quite hard to find what's relevant/up-to-date particular in terms of examples/practical demonstrations so think these tutorials will be handy.
Most of the top results via google for 'web csound' or similar seem no longer relevant (I think) eg:

https://csound.com/docs/web

all those seem to maybe be the old approach (non WASM ie pnacl etc?). The following uses WASM but not the latest incarnation, I don't think, but not really sure:
https://csound.com/wasm/canvas.html

yes, we should take those down. I think all the links are earlier wasm versions based on Emscripten, which have been replaced by the latest wasm code.

I will remove what I can so that the only remaining things are the latest.

Prof. Victor Lazzarini
Maynooth University
Ireland

I believe that’s all gone. The authoritative tutorial for Csound WASM is at

which should give a good idea of the current way of doing things.

Wonderful. This will be so helpful.

What is interesting is with the new TPWA support on the Anroid app
store you can use webaudio csound to create a javascript PWA which can
then be submitted as a full blown native android app:
https://developers.google.com/codelabs/pwa-in-play#0

This also works for modern windows in the windows app store:

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

Ah great thanks, I will have a look at the tutorial.