[Csnd] Csound WASM fs
Date | 2022-11-12 19:49 |
From | Victor Lazzarini |
Subject | [Csnd] Csound WASM fs |
I was trying to figure out the way to use the fs to copy in a CSD etc, the code I tried csd = await fetch("./my.csd") dat = await csd.arrayBuffer(); await csound.fs.writeFile("my.csd", new Uint8Array(dat)); await csound.compileCsd("my.csd"); await csound.start(); does that look right? The csd is in the same server directory as the html page. Somehow it seems to get stuck in compileCsd(). 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 |
Date | 2022-11-12 22:10 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound WASM fs |
That’s working fine here now. It’s all a matter of getting all the async stuff lined up properly. Got my MIDI file player working now with Csound WASM, you can check it here https://vlazzarini.github.io/wasm/midiplayer.html ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 12 Nov 2022, at 19:49, Victor Lazzarini |
Date | 2022-11-12 22:48 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound WASM fs |
and here’s a short video https://youtu.be/0TRXOOb3cOI ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 12 Nov 2022, at 22:10, Victor Lazzarini |
Date | 2022-11-12 23:08 |
From | joachim heintz |
Subject | Re: [Csnd] Csound WASM fs |
amazing --- also the other examples on https://vlazzarini.github.io/wasm/ thanks for sharing! j On 12/11/2022 23:48, Victor Lazzarini wrote: > and here’s a short video > > https://youtu.be/0TRXOOb3cOI > > ======================== > Prof. Victor Lazzarini > Maynooth University > Ireland > >> On 12 Nov 2022, at 22:10, Victor Lazzarini |
Date | 2022-11-12 23:43 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] Re: [Csnd] Csound WASM fs |
I think that what Steven and Hlodver have done really simplified the process. Converting old examples was not too difficult even when it involved more or less a total rewrite. Prof. Victor Lazzarini Maynooth University Ireland > On 12 Nov 2022, at 23:08, joachim heintz |