Csound Csound-dev Csound-tekno Search About

[Cs-dev] p() bug

Date2012-01-24 19:59
Fromjoachim heintz
Subject[Cs-dev] p() bug
Attachmentsp_bug2.csd  p_bug1.csd  None  None  
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:



instr 1
kpf init 4
kbla = p(kpf)
printk2 kbla
endin


i 1 0 1 1
i 1 1 1 2
i 1 2 1 3



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.

Date2012-01-25 08:43
FromTito Latini
SubjectRe: [Cs-dev] p() bug
AttachmentsNone  

Date2012-01-25 10:19
Fromjoachim heintz
SubjectRe: [Cs-dev] p() bug
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
> Csound-devel@lists.sourceforge.net
> 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
Csound-devel@lists.sourceforge.net

Date2012-01-25 11:53
FromTito Latini
SubjectRe: [Cs-dev] p() bug
AttachmentsNone