Csound Csound-dev Csound-tekno Search About

[Csnd] suppress messages

Date2012-02-20 11:19
Fromk_o_m_p
Subject[Csnd] suppress messages
Every time diskin is used it displays some 
information. Is there a way to suppress this 
message from the terminal?
Thanks,
Luis
  --
http://luisantunespena.eu

Date2012-02-20 12:04
FromDavid Akbari
SubjectRe: [Csnd] suppress messages
Disable message output by using -m0 in your  or as a
commandline argument?

-David

On Mon, Feb 20, 2012 at 5:19 AM, k_o_m_p  wrote:
> Every time diskin is used it displays some information. Is there a way to
> suppress this message from the terminal?
> Thanks,
> Luis

Date2012-02-20 13:15
Fromk_o_m_p
SubjectRe: [Csnd] suppress messages
I've tried it but the -m0 according to the manual 
is to use raw amplitudes and disable colours. It 
does'nt stop the diskin messages.
Any other suggestion?
Best,
Luis

Am 20.02.12 13:04, schrieb David Akbari:
> Disable message output by using -m0 in your  or as a
> commandline argument?
>
> -David
>
> On Mon, Feb 20, 2012 at 5:19 AM, k_o_m_p  wrote:
>> Every time diskin is used it displays some information. Is there a way to
>> suppress this message from the terminal?
>> Thanks,
>> Luis
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


-- 
--
http://luisantunespena.eu


Date2012-02-20 14:10
FromDavid Akbari
SubjectRe: [Csnd] suppress messages
Using -m0 to suppress messages worked for me and it's probably your
best bet. Not sure where you found the colors discussion, as I
couldn't see it in the Canonical Reference manual. A sample .csd file
demonstrating successful suppression of messages used with diskin2 is
appended to this message.

I tested -m0 prior to sending my original message on Csound 5.16,
although I was using diskin2 instead of diskin which may have an
impact on the effect you're noticing.

You could always modify the source code and compile a version of the
diskin opcode that doesn't display the message. Otherwise, I don't
know what to tell you, if message suppression isn't working for you.
Best of luck!


-David



-odac -m0



sr = 44100
ksmps = 1
nchnls = 2
;0dbfs = 1

ganull init 0

#define ORIGFILE # "C:/RawSound/hellorcb.aif" #

  instr 1  ; diskin message suppression test

al, ar	diskin2	$ORIGFILE, 1, 0

	outs	al, ar

  endin



i1	0	120
e



On Mon, Feb 20, 2012 at 7:15 AM, k_o_m_p  wrote:
> I've tried it but the -m0 according to the manual is to use raw amplitudes
> and disable colours. It does'nt stop the diskin messages.
> Any other suggestion?
> Best,
> Luis
>
> Am 20.02.12 13:04, schrieb David Akbari:
>>
>> Disable message output by using -m0 in your  or as a
>> commandline argument?
>>
>> -David
>>
>> On Mon, Feb 20, 2012 at 5:19 AM, k_o_m_p  wrote:
>>>
>>> Every time diskin is used it displays some information. Is there a way to
>>> suppress this message from the terminal?
>>> Thanks,
>>> Luis
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
> --
> --
> http://luisantunespena.eu
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>


Date2012-02-20 14:10
FromTito Latini
SubjectRe: [Csnd] suppress messages
AttachmentsNone  

Date2012-02-20 14:47
Fromluis antunes pena
SubjectRe: [Csnd] suppress messages
What version of csound are you running? I tested 
it in 5.16 (float samples) Feb  9 2012
Your csd prints the same information here both in 
CsoundQt and in the Terminal.
You're right about the -m0 flag.
Thanks for testing it.
Luis


Am 20.02.12 15:10, schrieb David Akbari:
> -odac -m0
  --
http://luisantunespena.eu

Date2012-02-20 15:11
Fromluis antunes pena
SubjectRe: [Csnd] suppress messages
Thank you for looking at it.
do you mean -m0 ?
luis


Am 20.02.12 15:10, schrieb Tito Latini:
> you can use only `-O null' but I have modified the code in git;
> now `diskin2' msg is like `soundin' and `--m-warnings=0' works.
>
> tito
>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


-- 
--
http://luisantunespena.eu


Date2012-02-20 15:49
FromTito Latini
SubjectRe: [Csnd] suppress messages
AttachmentsNone  

Date2012-02-21 09:40
Fromluis antunes pena
SubjectRe: [Csnd] suppress messages
Thanks for the explanation!

Am 20.02.12 16:49, schrieb Tito Latini:
> I don't know if it is your case.
> Before the change I have tried (v5.16)
>
> csound -odac diskin.csd
> ...
> WARNING: diskin: opened 'beats.wav':
>          44100 Hz, 1 channel(s), 88200 sample frames
>
> WARNING: bufsize 4096
> ...
>
> and we can remove these messages with
>
> csound -odac --m-warnings=0 diskin.csd
> # of course -m0 also works
>
> But with diskin2
>
> csound -odac diskin2.csd
> ...
> diskin2: opened 'beats.wav':
>           44100 Hz, 1 channel(s), 88200 sample frames
> ...
>
> csound -odac -m0 diskin2.csd
> ...
> diskin2: opened 'beats.wav':
>           44100 Hz, 1 channel(s), 88200 sample frames
> ...
>
> After the change in git,
>
> csound -odac --m-warnings=0 diskin2.csd     # or -m0 etc
>
> the "diskin2: opened ..." message has disappeared.
>
> tito
>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


-- 
--
http://luisantunespena.eu


Date2012-02-22 16:45
FromToby
SubjectRe: [Csnd] suppress messages
On 02/20/2012 04:04 AM, David Akbari wrote:
> Disable message output by using -m0 in your  or as a
> commandline argument?

The diskin messages really bother me as well.  Even if -m0 worked,
it's too blunt a tool for the job; I want to see some messages.
The problem comes when using diskin with a score that lists
hundreds or thousands of events in a short period of time.

I see that there are too many optional arguments already, so
there may be no elegant solution other than editing the source.

I would call into question however, the need for the message.
I don't remember what it looks like at the moment, only that
I don't want to see it.  It's not the norm for opcodes to make
noise (heh, other than the audio type).