Csound Csound-dev Csound-tekno Search About

[Csnd] Using sound file with soundin/diskin2

Date2020-03-16 15:40
FromTarmo 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
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

Date2020-03-16 15:50
FromRory Walsh
SubjectRe: [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:
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
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

Date2020-03-16 16:18
FromTarmo Johannes
SubjectRe: [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:
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:
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
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
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

Date2020-03-16 20:03
FromRory Walsh
SubjectRe: [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:
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:
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:
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
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
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

Date2020-03-16 21:41
FromTarmo Johannes
SubjectRe: [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:
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:
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:
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:
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
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
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
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