| That should work. Maybe open the JS console and see if Csound is running Ok, you see the Csound messages there.
You can even try invoking csound.ReadScore() on the console REPL to see if it runs from there.
Prof. Victor Lazzarini
Maynooth University
Ireland
> On Nov 24, 2020, at 6:22 PM, Jean Basile Sosa wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> Hello,
>
> Could you help me to understand the csound.js ReadScore method please ?
>
> I would like to declare something like that, of course relative to an orchestra complied via the csound.CompileOrc method :
>
> In html:
>
>
>
> In javascript:
>
> function moduleDidLoad() {
> csound.Play();
> csound.CompileOrc(document.getElementById('instruments').value);
> document.getElementById("score").innerHTML = "SCORE";
> attachListeners();
> }
>
> function attachListeners() {
> document.getElementById("score").addEventListener("click", score);
> }
>
> function score() {
> csound.ReadScore(document.getElementById('score').value);
> }
>
> When I "click" on the score button, nothing happens because I guess the score lines are not relatived to any orchestra?
> Could you tell me how can I fire the csound.js ReadScore method to send some score lines to an instrument within the web please?
>
> Best,
>
> Jean Basile
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C92ef21e629a04929ab3708d890a5e6c4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637418389504647960%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=cZhMarhi%2FYN0V6GXZ1DnYifcrXv%2BuORyuMwhEI4iAdo%3D&reserved=0
> Send bugs reports to
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C92ef21e629a04929ab3708d890a5e6c4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637418389504647960%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=tZ7ZZ5WXzSapFlky8t%2BoAsdHmPPSFi2u9%2BfPT2QqaIQ%3D&reserved=0
> 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
|