[Csnd] Using sound file with soundin/diskin2
Date | 2020-03-16 15:40 |
From | Tarmo Johannes |
Subject | [Csnd] Using sound file with soundin/diskin2 |
Hi, Is it and how is it possible to use diskin/soundin on Csound for Web to load and play a sound file (hosted in the same folder as html file)? ( I am currently trying out with Hlödver's one file csound-wasm-browser.js from https://github.com/hlolli/csound-wasm but I believe it should be the same with "official" Csound for Web? Thanks! tarmo |
Date | 2020-03-16 15:50 |
From | Rory Walsh |
Subject | Re: [Csnd] Using sound file with soundin/diskin2 |
You need to add the files to the file server. Take a look at this simple sketch: Look at setupCsound.js, that's where the magic happens. On Mon, 16 Mar 2020 at 15:40, Tarmo Johannes <trmjhnns@gmail.com> wrote:
|
Date | 2020-03-16 16:18 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Using sound file with soundin/diskin2 |
Thanks! Please check the link - t gives Error 520 - unknown error - or could you send just the snippet? Thanks! tarmo Kontakt Rory Walsh (<rorywalsh@ear.ie>) kirjutas kuupäeval E, 16. märts 2020 kell 17:50:
|
Date | 2020-03-16 20:03 |
From | Rory Walsh |
Subject | Re: [Csnd] Using sound file with soundin/diskin2 |
Sorry Tarmo, I'm not at my PC right now, but the link opened fine for me, even on my phone? Can you try again, otherwise I'll post the code tomorrow. On Mon 16 Mar 2020, 16:18 Tarmo Johannes, <trmjhnns@gmail.com> wrote:
|
Date | 2020-03-16 21:41 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Using sound file with soundin/diskin2 |
Yes, now it opened. Thanks! tarmo Kontakt Rory Walsh (<rorywalsh@ear.ie>) kirjutas kuupäeval E, 16. märts 2020 kell 22:04:
|