Csound Csound-dev Csound-tekno Search About

Re: Redirect messages with CsoundVST Python module

Date2005-10-11 18:54
FromMichael Gogins
SubjectRe: Redirect messages with CsoundVST Python module
All the regular Csound API calls work with CsoundVST. You call CsoundVST::getCppSound()->getCsound() to get the Csound instance with which you can call the API.

Regards,
Mike

-----Original Message-----
From: Anthony Kozar 
Sent: Oct 11, 2005 1:14 PM
To: "csound@lists.bath.ac.uk" 
Subject: Re: [Csnd] Redirect messages with CsoundVST Python module

Hi Sebastian, 

I did not see another response to this, so ...

There is a function in the Csound API called csoundSetMessageCallback() that
allows you to set your own function to be called whenever a message would be
printed.  You can have your function do whatever you want with the messages.
I assume that there must be an equivalent to this API call in CsoundVST, but
I do not use it and do not know for sure what it would be.

Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://akozar.spymac.net/

Sebastian Gutsfeld wrote on 9/29/05 11:57 AM:

> Hi *,
> 
> can anybody show me a simple python example how to redirect the
> csound.compile() and csound.performKsmps() messages from stdout/stderr
> to a file or something like a wxPython wx.TextCtrl?

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk