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