Csound Csound-dev Csound-tekno Search About

[Csnd] Suppressing console output in vanilla-WASM?

Date2026-01-05 17:29
FromIain Duncan
Subject[Csnd] Suppressing console output in vanilla-WASM?
Hi colleagues, I'm try to stop csound logging to the javascript console, but setting the -d or -m16 options from csound.setOption() does not appear to have any effect. Can anyone tell me how this should be done with vanilla wasm?

thanks!
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

Date2026-01-05 17:39
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Suppressing console output in vanilla-WASM?
Is this using csound 6 or 7?

In any case, csound.setOption() needs to be called before csound.start() to have any effect. For
Csound 6, only one option can be used, no spaces. 

I have not tried to shut off the logging so these are just suggestions. The logging is done by
the wrapper, maybe Hlolli or Steven know another method.

best
========================
Prof. Victor Lazzarini
Maynooth University
Ireland






> On 5 Jan 2026, at 17:29, Iain Duncan  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.
> Hi colleagues, I'm try to stop csound logging to the javascript console, but setting the -d or -m16 options from csound.setOption() does not appear to have any effect. Can anyone tell me how this should be done with vanilla wasm? 
> 
> thanks!
> 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

Date2026-01-05 19:29
FromIain Duncan
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Suppressing console output in vanilla-WASM?
Thanks Victor, I'm still on the Csound6 version. Switching to two successive calls to setOption did it.

iain

On Mon, Jan 5, 2026 at 9:39 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
Is this using csound 6 or 7?

In any case, csound.setOption() needs to be called before csound.start() to have any effect. For
Csound 6, only one option can be used, no spaces.

I have not tried to shut off the logging so these are just suggestions. The logging is done by
the wrapper, maybe Hlolli or Steven know another method.

best
========================
Prof. Victor Lazzarini
Maynooth University
Ireland






> On 5 Jan 2026, at 17:29, Iain Duncan <iainduncanlists@GMAIL.COM> 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.
> Hi colleagues, I'm try to stop csound logging to the javascript console, but setting the -d or -m16 options from csound.setOption() does not appear to have any effect. Can anyone tell me how this should be done with vanilla wasm?
>
> thanks!
> 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

Date2026-01-05 22:54
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Suppressing console output in vanilla-WASM?
Good. On 7, that function can take any set of args as for instance in CsOptions.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 5 Jan 2026, at 19:30, Iain Duncan <iainduncanlists@gmail.com> wrote:


Thanks Victor, I'm still on the Csound6 version. Switching to two successive calls to setOption did it.

iain

On Mon, Jan 5, 2026 at 9:39 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
Is this using csound 6 or 7?

In any case, csound.setOption() needs to be called before csound.start() to have any effect. For
Csound 6, only one option can be used, no spaces.

I have not tried to shut off the logging so these are just suggestions. The logging is done by
the wrapper, maybe Hlolli or Steven know another method.

best
========================
Prof. Victor Lazzarini
Maynooth University
Ireland






> On 5 Jan 2026, at 17:29, Iain Duncan <iainduncanlists@GMAIL.COM> 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.
> Hi colleagues, I'm try to stop csound logging to the javascript console, but setting the -d or -m16 options from csound.setOption() does not appear to have any effect. Can anyone tell me how this should be done with vanilla wasm?
>
> thanks!
> 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