Csound Csound-dev Csound-tekno Search About

suppressing ALL terminal output

Date2015-05-09 17:36
FromDavid Worrall
Subjectsuppressing ALL terminal output
AttachmentsNone  None  
In this 2011 post:


Richard confirms that
 -O null or --logfile=null

suppresses all terminal output.

When I set those options using csnd6 (on OS X), i get opcode WARNING messages, like:
WARNING: no legal base frequency
WARNING: loscil: sustain defers to non-looping source

as well as read time event messages, like:
  rtevent:    T  6.596 TT  6.596 M:  0.09418  0.01480


is there a way to turn cosund ALL terminial output off (while running csnd6.py) ?


thanks,

D.

______________________________________
Prof. Dr. David Worrall
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
www: iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University







Date2015-05-09 17:56
FromVictor Lazzarini
SubjectRe: suppressing ALL terminal output
csound … &> /dev/null 

should suppress all output.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 9 May 2015, at 17:36, David Worrall  wrote:
> 
> In this 2011 post:
> 
> http://csound.1045644.n5.nabble.com/suppress-all-terminal-output-tp4548219p4550949.html
> 
> Richard confirms that
>  -O null or --logfile=null
> 
> suppresses all terminal output.
> 
> When I set those options using csnd6 (on OS X), i get opcode WARNING messages, like:
>> WARNING: no legal base frequency
>> WARNING: loscil: sustain defers to non-looping source
> 
> as well as read time event messages, like:
>>   rtevent:	   T  6.596 TT  6.596 M:  0.09418  0.01480
> 
> 
> is there a way to turn cosund ALL terminial output off (while running csnd6.py) ?
> 
> 
> thanks,
> 
> D.
> 
> ______________________________________
> Prof. Dr. David Worrall
> International Audio Laboratories Erlangen
> Fraunhofer-Institut für Integrierte Schaltungen IIS
> Am Wolfsmantel 33
> 91058 Erlangen
> www: iis.fraunhofer.de 
>          audiolabs-erlangen.de/research/emerging-audio-research
> ---
> Adjunct Senior Research Fellow
> School of Music, Australian National University
> david.worrall@anu.edu.au
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-05-09 18:42
FromDavid Worrall
SubjectRe: suppressing ALL terminal output
AttachmentsNone  None  

hi victor, understood from the CLI, but from within python using  csnd6.py?

thanks,

D.



On 09.05.2015, at 18:56, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

csound … &> /dev/null

should suppress all output.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 9 May 2015, at 17:36, David Worrall <david.worrall@iis.fraunhofer.de> wrote:

In this 2011 post:

http://csound.1045644.n5.nabble.com/suppress-all-terminal-output-tp4548219p4550949.html

Richard confirms that
-O null or --logfile=null

suppresses all terminal output.

When I set those options using csnd6 (on OS X), i get opcode WARNING messages, like:
WARNING: no legal base frequency
WARNING: loscil: sustain defers to non-looping source

as well as read time event messages, like:
 rtevent:   T  6.596 TT  6.596 M:  0.09418  0.01480


is there a way to turn cosund ALL terminial output off (while running csnd6.py) ?


thanks,

D.

______________________________________
Prof. Dr. David Worrall
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
www: iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University







Date2015-05-09 18:49
Fromjpff
SubjectRe: suppressing ALL terminal output
AttachmentsNone  None  
I do not know python but in C I could open a file to /dev/null and use it 
to replace stdout and stderr


On Sat, 9 May 2015, David Worrall wrote:

> In this 2011 post:
> http://csound.1045644.n5.nabble.com/suppress-all-terminal-output-tp4548219p455
> 0949.html
> 
> Richard confirms that
>  -O null or --logfile=null
> 
> suppresses all terminal output.
> 
> When I set those options using csnd6 (on OS X), i get opcode WARNING messages,
> like:
>       WARNING: no legal base frequency
> WARNING: loscil: sustain defers to non-looping source
> 
> 
> as well as read time event messages, like:
>         rtevent:    T  6.596 TT  6.596 M:  0.09418  0.01480
> 
> 
> 
> is there a way to turn cosund ALL terminial output off (while running
> csnd6.py) ?
> 
> 
> thanks,
> 
> D.
> 
> ______________________________________Prof. Dr. David Worrall
> International Audio Laboratories Erlangen
> Fraunhofer-Institut für Integrierte Schaltungen IIS
> Am Wolfsmantel 33
> 91058 Erlangen
> www: iis.fraunhofer.de 
>          audiolabs-erlangen.de/research/emerging-audio-research
> ---
> Adjunct Senior Research Fellow
> School of Music, Australian National University
> david.worrall@anu.edu.au
> 
> 
> 
> 
> 
> 
> 
>

Date2015-05-09 18:56
FromSteven Yi
SubjectRe: suppressing ALL terminal output
I think you should be able to do this:

def a(s): pass

b = csnd6.Csound()
b.SetMessageCallback(a)

... run csound...



On Sat, May 9, 2015 at 1:42 PM, David Worrall
 wrote:
>
> hi victor, understood from the CLI, but from within python using  csnd6.py?
>
> thanks,
>
> D.
>
>
>
> On 09.05.2015, at 18:56, Victor Lazzarini  wrote:
>
> csound … &> /dev/null
>
> should suppress all output.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> On 9 May 2015, at 17:36, David Worrall 
> wrote:
>
> In this 2011 post:
>
> http://csound.1045644.n5.nabble.com/suppress-all-terminal-output-tp4548219p4550949.html
>
> Richard confirms that
> -O null or --logfile=null
>
> suppresses all terminal output.
>
> When I set those options using csnd6 (on OS X), i get opcode WARNING
> messages, like:
>
> WARNING: no legal base frequency
> WARNING: loscil: sustain defers to non-looping source
>
>
> as well as read time event messages, like:
>
>  rtevent:   T  6.596 TT  6.596 M:  0.09418  0.01480
>
>
>
> is there a way to turn cosund ALL terminial output off (while running
> csnd6.py) ?
>
>
> thanks,
>
> D.
>
> ______________________________________
> Prof. Dr. David Worrall
> International Audio Laboratories Erlangen
> Fraunhofer-Institut für Integrierte Schaltungen IIS
> Am Wolfsmantel 33
> 91058 Erlangen
> www: iis.fraunhofer.de
>          audiolabs-erlangen.de/research/emerging-audio-research
> ---
> Adjunct Senior Research Fellow
> School of Music, Australian National University
> david.worrall@anu.edu.au
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-05-09 20:32
FromDavid Worrall
SubjectRe: suppressing ALL terminal output
AttachmentsNone  None  
Thank you Steven.

Actually, your example blocks.

If the arg to SetMessageCallback is a function it works.

Summary: In Python:

# to suppress ALL terminal output from csound
def passCallback(): pass
cs=csnd6.Csound()
cs.SetMessageCallback(passCallback())



On 09.05.2015, at 19:56, Steven Yi <stevenyi@gmail.com> wrote:

I think you should be able to do this:

def a(s): pass

b = csnd6.Csound()
b.SetMessageCallback(a)

... run csound...



On Sat, May 9, 2015 at 1:42 PM, David Worrall
<david.worrall@iis.fraunhofer.de> wrote:

hi victor, understood from the CLI, but from within python using  csnd6.py?

thanks,

D.



On 09.05.2015, at 18:56, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

csound … &> /dev/null

should suppress all output.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 9 May 2015, at 17:36, David Worrall <david.worrall@iis.fraunhofer.de>
wrote:

In this 2011 post:

http://csound.1045644.n5.nabble.com/suppress-all-terminal-output-tp4548219p4550949.html

Richard confirms that
-O null or --logfile=null

suppresses all terminal output.

When I set those options using csnd6 (on OS X), i get opcode WARNING
messages, like:

WARNING: no legal base frequency
WARNING: loscil: sustain defers to non-looping source


as well as read time event messages, like:

rtevent:   T  6.596 TT  6.596 M:  0.09418  0.01480



is there a way to turn cosund ALL terminial output off (while running
csnd6.py) ?


thanks,

D.
..
______________________________________
Prof. Dr. David Worrall
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
www: iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University







Date2015-05-09 20:40
FromDavid Worrall
SubjectRe: suppressing ALL terminal output
AttachmentsNone  None  
thanks for your input Jeff. I guess the python wrapper around csound makes this approach not viable. 
Steven's approach, as amended, works.
Makes me realised I should study the suite of .csound() methods more thoroughly.
D.


On 09.05.2015, at 19:49, jpff <jpff@codemist.co.uk> wrote:

I do not know python but in C I could open a file to /dev/null and use it to replace stdout and stderr


On Sat, 9 May 2015, David Worrall wrote:

In this 2011 post:
http://csound.1045644.n5.nabble.com/suppress-all-terminal-output-tp4548219p455
0949.html
Richard confirms that
 -O null or --logfile=null
suppresses all terminal output.
When I set those options using csnd6 (on OS X), i get opcode WARNING messages,
like:
     WARNING: no legal base frequency
WARNING: loscil: sustain defers to non-looping source
as well as read time event messages, like:
       rtevent:    T  6.596 TT  6.596 M:  0.09418  0.01480
is there a way to turn cosund ALL terminial output off (while running
csnd6.py) ?
thanks,
D.

_____________________________________
Prof. Dr. David Worrall
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
www: iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University