|
hi developers -
today working with a student i found a strange bug with p(). as far as i see, the use of p() with a k-value (which should be possible according to the manual) messes the scorelines (!). if there are two score lines, the first line is skipped and the second line is repeated. if there are three lines, the first line is skipped and the third is repeated twice: <CsoundSynthesizer> <CsInstruments> instr 1 kpf init 4 kbla = p(kpf) printk2 kbla endin </CsInstruments> <CsScore> i 1 0 1 1 i 1 1 1 2 i 1 2 1 3 </CsScore> </CsoundSynthesizer> prints 2, 3, 3 instead of 1, 2, 3. there is a sounding examples attached as p_bug2. thanks for having a look - joachim ps the result is the same with the old and the new parser. ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/csound-devel |
|
p(kfixed)
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/csound-devel |
|
thanks, tito, as always. works now perfectly.
just out of curiosity, what has been the problem? best - joachim Am 25.01.2012 09:43, schrieb Tito Latini: > p(kfixed) > > ------------------------------------------------------------------------------ > 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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/csound-devel |
|
> 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/csound-devel |
| Powered by Nabble | See how NAML generates this page |
