> just out of curiosity, what has been the problem? pfun read the value of the pfield in csound->currevent->p[n]. The first k-cycle is good (in fact p() works with ivars) but from the second, csound->currevent changes (sensevent Engine/musmon.c:878). I fixed it saving the state of the pfields during the init pass. tito ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net