Csound Csound-dev Csound-tekno Search About

Re: [Csnd] [EXTERNAL] [Csnd] csound.js ReadScore method

Date2020-11-24 22:37
FromJean Basile Sosa
SubjectRe: [Csnd] [EXTERNAL] [Csnd] csound.js ReadScore method
Indeed It should work, but not...

I don't understand, sorry Victor.

For me Csound on web is working as you could see here (just click play):
http://csound.jeanbasilesosa.com/

But if I click on the score button, no result.

I would like to click on the score button and then call a
   function score() {
      csound.ReadScore(document.getElementById('score').value);
    }

And then for exemple "i 1.02 0 246.942 0.0155 0.014 1 246.942 0 0.9789 1.1687 0 0 1.019 1.0115 1.0104" should be send and csound should be play,

But in my exemple nothing happens :(

Maybe do you have an other advice?

Merci,

Jean Basile

 



 

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-11-24 23:07
FromSteven Yi
SubjectRe: [Csnd] [EXTERNAL] [Csnd] csound.js ReadScore method
I think the problem is that you have a button with the id of score:

    

So that is what is being grabbed by your code in score() does not have
the contents you expect. Try renaming that button's id and I think it
will work for you.

On Tue, Nov 24, 2020 at 5:38 PM Jean Basile Sosa
 wrote:
>
> Indeed It should work, but not...
>
> I don't understand, sorry Victor.
>
> For me Csound on web is working as you could see here (just click play):
> http://csound.jeanbasilesosa.com/
>
> But if I click on the score button, no result.
>
> I would like to click on the score button and then call a
>    function score() {
>       csound.ReadScore(document.getElementById('score').value);
>     }
>
> And then for exemple "i 1.02 0 246.942 0.0155 0.014 1 246.942 0 0.9789 1.1687 0 0 1.019 1.0115 1.0104" should be send and csound should be play,
>
> But in my exemple nothing happens :(
>
> Maybe do you have an other advice?
>
> Merci,
>
> Jean Basile
>
>
>
>
>
>
>
> 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