| I think this is not exactly broken, but it needs to be re-wrapped
by hand for Python. It would work OK in C++, but the SWIG-generated
code does not know that Python does not understand FILE *
Victor
----- Original Message -----
From: "Chuckk Hubbard"
To: "Csound List"
Sent: Wednesday, December 31, 2008 12:04 PM
Subject: [Csnd] Re: Python API CppSound.ScoreSort() errors
>I just checked with the new 5.10/API vs 2, and I have the same
> problem. It appears that something is broken in the ScoreSort method
> of the API.
> -Chuckk
>
> On Sun, Dec 28, 2008 at 10:08 PM, Chuckk Hubbard
> wrote:
>> Using 5.09, with Python 2.5. The attached script seems like it ought
>> to create and then sort a score, but it gives the error:
>>
>> TypeError: in method 'Csound_ScoreSort', argument 2 of type 'FILE *'
>>
>> I'm giving it two arguments that are open Python file objects. Is
>> there another format I need to use?
>>
>> --What I'm trying to do is only to process all the macros. Before
>> reaching this point, I will make sure there are no t statements in the
>> score, and after expanding all macros, I will apply my own
>> time-warping to the score events. One alternative would be to expand
>> the macros myself in Python, but I'm hoping to avoid that. Any other
>> suggestions would be welcome.
>>
>> Thanks.
>> -Chuckk
>>
>>
>> --
>> http://www.badmuthahubbard.com
>>
>
>
>
> --
> http://www.badmuthahubbard.com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
|