Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] rspline bug

Date2006-10-03 21:14
From"Art Hunkins"
SubjectRe: [Cs-dev] rspline bug
Both jspline and rspline were part of csound4.23. I tested the same example
in flcsound and both opcodes did what you'd expect in 4.23.

The general idea of both opcodes is the same as randi - only the result is a
smooth curve rather than a series of straight lines.

I should think that comparing the 5.03 code with the 4.23 code might show
any discrepancy. OTOH, I know nothing of basic differences between CS5 and 4
coding.

Art Hunkins

----- Original Message ----- 
From: 
To: "Art Hunkins" ; "Developer discussions"

Sent: Tuesday, October 03, 2006 12:58 PM
Subject: Re: [Cs-dev] rspline bug


> I am not sure that I even knew that there was a rspline opcode.
> Traditionally the CsoundAV opcodes have not been presented to Csound, and
> they have had to be dug out of where ever they can be found.  I am not
> sure from your message how I would recognise an error, but I will look.
> ==John ff
>
> On Tue, 3 Oct 2006, Art Hunkins wrote:
>
> > I'd appreciate a developer fixing a bug in rspline. This is a bug that
does
> > *not* exist in CsoundAV (from whence comes rspline) nor in csound4.23.
It
> > apparently is unique to csound5, and exists in the latest csound5.03.
> >
> > If I understand correctly, rspline is near identical to jspline.
(Jspline
> > works correctly in 5.03.) The only difference is that jspline specifies
a
> > single range value, while rspline uses two.
> >
> > The simple example below illustrates. Jspline works as expected; rspline
> > should duplicate the effect but doesn't. The problem seems to be with
> > rspline's two final parameters. Regardless of what values are used, the
> > effect is the same - a staticy random variation somewhere in between the
> > subaudio and audio range.
> >
> > I appreciate the help.
> >
> > Art Hunkins
> >
> >
> > 
> > 
> >
> > -odac0
> >
> > 
> > 
> >
> > sr      = 44100
> > ksmps   = 10
> > nchnls  = 1
> >
> >        instr 1
> >
> > ;kvar    jspline 200, .5, 1
> > kvar     rspline -200, 200, .5, 1
> > a1      lfo 5000, 400 + kvar
> >
> >        out a1
> >
> >        endin
> >
> > 
> >
> > 
> >
> > i1 0 10
> >
> > e
> >
> > 
> > 
> >
> >
>
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> > opinions on IT & business topics through brief surveys -- and earn cash
> >
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> >
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-10-05 15:24
FromJohn ffitch
SubjectRe: [Cs-dev] rspline bug
On Tue, 3 Oct 2006, Art Hunkins wrote:

> Both jspline and rspline were part of csound4.23. I tested the same example
> in flcsound and both opcodes did what you'd expect in 4.23.
>
> The general idea of both opcodes is the same as randi - only the result is a
> smooth curve rather than a series of straight lines.
>
> I should think that comparing the 5.03 code with the 4.23 code might show
> any discrepancy. OTOH, I know nothing of basic differences between CS5 and 4
> coding.
>
> Art Hunkins
>

Unfortunately the code in the last Csound4 sources is identical to those 
in cspund5 -- two uninitialised variables.  One could set them to zero, 
but then all the
 	 a = a+b; if (a>something) { ...}
seems rather pointless if a and b are always zero.  Are you sure this 
really always worked?

==John ff

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net