suppressing ALL terminal output
Date | 2015-05-09 17:36 |
From | David Worrall |
Subject | suppressing ALL terminal output |
Attachments | None 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:
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 |
Date | 2015-05-09 17:56 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2015-05-09 18:42 |
From | David Worrall |
Subject | Re: suppressing ALL terminal output |
Attachments | None None |
thanks, D. On 09.05.2015, at 18:56, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: csound … &> /dev/null ______________________________________ 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 |
Date | 2015-05-09 18:49 |
From | jpff |
Subject | Re: suppressing ALL terminal output |
Attachments | None 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 > > > > > > > > |
Date | 2015-05-09 18:56 |
From | Steven Yi |
Subject | Re: 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 |
Date | 2015-05-09 20:32 |
From | David Worrall |
Subject | Re: suppressing ALL terminal output |
Attachments | None 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: ______________________________________ 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 |
Date | 2015-05-09 20:40 |
From | David Worrall |
Subject | Re: suppressing ALL terminal output |
Attachments | None 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 _____________________________________ 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 |