Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound log from Python API

Date2010-05-26 18:00
FromOlivier Bélanger
Subject[Cs-dev] Csound log from Python API
AttachmentsNone  None  
Hi,

I'm using the Python API for the development of the new Cecilia and I didn't find a way to generate a Csound log file on disk.

Is it possible or is there a better way to access the details of errors in the csd file (like details in the terminal)?

Thanks!

Olivier

Date2010-05-26 18:01
FromJustin Glenn Smith
SubjectRe: [Cs-dev] Csound log from Python API

-O csound.log


(you may want to automatically make unique log file names when you generate the csd?)

Olivier Bélanger wrote:
> Hi,
> 
> I'm using the Python API for the development of the new Cecilia and I didn't
> find a way to generate a Csound log file on disk.
> 
> Is it possible or is there a better way to access the details of errors in
> the csd file (like details in the terminal)?
> 
> Thanks!
> 
> Olivier
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-26 18:21
FromOlivier Bélanger
SubjectRe: [Cs-dev] Csound log from Python API
AttachmentsNone  None  
Yes, this is what I usually do... but it seems to work only when you launch Csound from a command-line. I want the same but from the Python API...

Olivier

2010/5/26 Justin Glenn Smith <noisesmith@gmail.com>
<CsOptions>
-O csound.log
</CsOptions>

(you may want to automatically make unique log file names when you generate the csd?)

Olivier Bélanger wrote:
> Hi,
>
> I'm using the Python API for the development of the new Cecilia and I didn't
> find a way to generate a Csound log file on disk.
>
> Is it possible or is there a better way to access the details of errors in
> the csd file (like details in the terminal)?
>
> Thanks!
>
> Olivier
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2010-05-26 18:25
FromVictor Lazzarini
SubjectRe: [Cs-dev] Csound log from Python API
AttachmentsNone  None  
That sounds like a bug. Let me investigate.
Victor
On 26 May 2010, at 18:21, Olivier Bélanger wrote:

Yes, this is what I usually do... but it seems to work only when you launch Csound from a command-line. I want the same but from the Python API...

Olivier

2010/5/26 Justin Glenn Smith <noisesmith@gmail.com>
<CsOptions>
-O csound.log
</CsOptions>

(you may want to automatically make unique log file names when you generate the csd?)

Olivier Bélanger wrote:
> Hi,
>
> I'm using the Python API for the development of the new Cecilia and I didn't
> find a way to generate a Csound log file on disk.
>
> Is it possible or is there a better way to access the details of errors in
> the csd file (like details in the terminal)?
>
> Thanks!
>
> Olivier
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2010-05-26 18:43
FromVictor Lazzarini
SubjectRe: [Cs-dev] Csound log from Python API
AttachmentsNone  None  
I think this is something in the Python wrappers. It does not happen in C or C++.

Victor
On 26 May 2010, at 18:25, Victor Lazzarini wrote:

That sounds like a bug. Let me investigate.
Victor
On 26 May 2010, at 18:21, Olivier Bélanger wrote:

Yes, this is what I usually do... but it seems to work only when you launch Csound from a command-line. I want the same but from the Python API...

Olivier

2010/5/26 Justin Glenn Smith <noisesmith@gmail.com>
<CsOptions>
-O csound.log
</CsOptions>

(you may want to automatically make unique log file names when you generate the csd?)

Olivier Bélanger wrote:
> Hi,
>
> I'm using the Python API for the development of the new Cecilia and I didn't
> find a way to generate a Csound log file on disk.
>
> Is it possible or is there a better way to access the details of errors in
> the csd file (like details in the terminal)?
>
> Thanks!
>
> Olivier
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2010-05-26 18:49
FromOlivier Bélanger
SubjectRe: [Cs-dev] Csound log from Python API
AttachmentsNone  None  
Is there a possible workaround?

Olivier

2010/5/26 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
I think this is something in the Python wrappers. It does not happen in C or C++.

Victor
On 26 May 2010, at 18:25, Victor Lazzarini wrote:

That sounds like a bug. Let me investigate.
Victor
On 26 May 2010, at 18:21, Olivier Bélanger wrote:

Yes, this is what I usually do... but it seems to work only when you launch Csound from a command-line. I want the same but from the Python API...

Olivier

2010/5/26 Justin Glenn Smith <noisesmith@gmail.com>
<CsOptions>
-O csound.log
</CsOptions>

(you may want to automatically make unique log file names when you generate the csd?)

Olivier Bélanger wrote:
> Hi,
>
> I'm using the Python API for the development of the new Cecilia and I didn't
> find a way to generate a Csound log file on disk.
>
> Is it possible or is there a better way to access the details of errors in
> the csd file (like details in the terminal)?
>
> Thanks!
>
> Olivier
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2010-05-26 18:56
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound log from Python API
> Is there a possible workaround?
>
> Olivier
>

can you not provide your own functiuon for the messages in the CSOUDN
structure?  I am sure I did that in winsound

Not guaranteed -- my memory is getting worse


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-26 19:03
FromOlivier Bélanger
SubjectRe: [Cs-dev] Csound log from Python API
AttachmentsNone  None  
Thanks a lot!

self.csound.SetMessageCallback(callback)

Exactly what I need!

Olivier

2010/5/26 <jpff@cs.bath.ac.uk>
> Is there a possible workaround?
>
> Olivier
>

can you not provide your own functiuon for the messages in the CSOUDN
structure?  I am sure I did that in winsound

Not guaranteed -- my memory is getting worse


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2010-05-26 19:11
FromVictor Lazzarini
SubjectRe: [Cs-dev] Csound log from Python API
AttachmentsNone  None  
That was what I was going to suggest, but I was going to write an example script to show you. It looks like you know what to do.
On 26 May 2010, at 19:03, Olivier Bélanger wrote:

Thanks a lot!

self.csound.SetMessageCallback(callback)

Exactly what I need!

Olivier

2010/5/26 <jpff@cs.bath.ac.uk>
> Is there a possible workaround?
>
> Olivier
>

can you not provide your own functiuon for the messages in the CSOUDN
structure?  I am sure I did that in winsound

Not guaranteed -- my memory is getting worse


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel