Hi All, Just to note, there is also some code with 0.51 in schdofftim in insert.c (just wanting to point out differences I'm finding between Csound4 and Csound5). Another thing I found in sensevents; in Csound 4 there is: if (O.Beatmode) kcnt = RNDINT(((double) nxtbt - (double) curbt) * (double) ekrbetsiz);/*(long)((nxtbt - curbt) * ekrbetsiz + FL(0.5));*/ else kcnt = RNDINT(((double) nxtim - (double) curp2) * (double) ekr);/*(long)((nxtim - curp2) * ekr + FL(0.5));*/ and Csound 5 there is: /* calculate the number of k-periods remaining until next event */ if (O->Beatmode) csound->cyclesRemaining = RNDINT((csound->nxtbt - csound->curBeat) / csound->curBeat_inc); else csound->cyclesRemaining = RNDINT((csound->nxtim - csound->curTime) / csound->curTime_inc); One is doing a multiplication and the other a division. In Csound5, curTime_inc looks like it is set as: p->curTime_inc = 1.0 / (double) p->ekr; in Engine/otran.c. I could see losing precision with the division by the value that is already 1/kr, so perhaps something is happening there? Thanks! steven On Mon, Oct 6, 2008 at 3:26 AM, jpff wrote: > Yes; tried replacing 0.51 with 0.5 -- did not fix it. The problem is > before then as it is already wrong before it calls expire -- the > problem is the next bnot being too late, not the expiry being wrong. > ==John ffitch > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net