Csound Csound-dev Csound-tekno Search About

[Cs-dev] Python Bindings Question

Date2008-02-26 06:47
FromGreg Thompson
Subject[Cs-dev] Python Bindings Question
AttachmentsNone  None  
For a few days now, I've been asking around.  I'm wondering how to do the following using the python interface to Csound.  So far, I haven't been able to find anyone who knows the answer.  Is it even possible?  Maybe I should be asking that instead.

1 - how to capture stdout/stderr messages from the Csound instance

C API method
  PUBLIC void csoundSetMessageCallback(CSOUND *,
                            void (*csoundMessageCallback_)(CSOUND *,
                                                           int attr,
                                                           const char *format,
                                                           va_list valist));

2 - send midi events

C API method
  PUBLIC void csoundSetExternalMidiReadCallback(CSOUND *,
            int (*func)(CSOUND *, void *userData,
                                  unsigned char *buf, int nBytes));


3 - Is there a detailed manual on the python interface? 

thanks
greg