Csound Csound-dev Csound-tekno Search About

[Cs-dev] rspline bug

Date2006-10-03 16:41
From"Art Hunkins"
Subject[Cs-dev] rspline bug
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

Date2006-10-03 17:58
Fromjpff@cs.bath.ac.uk
SubjectRe: [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

Date2006-10-03 18:08
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] rspline bug
The code has an uninitialised variable so it might do anything!

Is there an source of the original code anywhere?

Actually I have just found a second unititialised variable so it is bound 
to do odd things.

==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

Date2006-10-04 16:52
FromAndres Cabrera
SubjectRe: [Cs-dev] rspline bug
Hi,
It's fixed now,  a small typo.

Cheers,
Andres

jpff@cs.bath.ac.uk wrote:
> The code has an uninitialised variable so it might do anything!
>
> Is there an source of the original code anywhere?
>
> Actually I have just found a second unititialised variable so it is bound 
> to do odd things.
>
> ==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
> 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