If you reset, set the score offset, and then recompile, then the score offset is lost because the compile also implies reset unless you call csoundPreCompile() first (which also resets by the way). So, you can either set the score offset between calling csoundPreCompile() and csoundCompile() (in this case, it may be overridden by the -+skip_seconds command line flag), or directly after csoundCompile(), or after any perform calls that returned zero. Note that if you are performing in a separate thread, then setting the offset (and in fact, most other Csound API calls using that particular instance) while the thread is running should be done from the thread. On Friday 10 March 2006 01:28, Rory Walsh wrote: > I just tried that but I am not doing it right it seems. I'm just > wondering when is the correct time to call the function? For the moment > I create an instance of csound, I compile is with csoundCompile(), then > I start the thread with csoundCreateThread(), it plays and I reset the > csound. I then try csoundSetScoreOffset(), recompile and restart the > thread. Should I be compiling first before any call is made to > csoundSetScoreOffset()? I would try this but from the way I have > implemented my program it's not so straightforward so perhaps you can > give me a heads-up before I go rearranged the order in which I execute > my API calls. Thanks again, ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net