Csound Csound-dev Csound-tekno Search About

[Cs-dev] Outstanding issue with vrandh

Date2007-01-12 02:03
FromAndres Cabrera
Subject[Cs-dev] Outstanding issue with vrandh
Hi,
I remembered there's still a bug in vrandh, because the random values
are not being scaled appropriately. It was discussed with Anthony, that
probably the best solution was to use csound's random functions. What's
the best way to use random functions on csound opcodes? Does the API
provide some functionality for this?

Cheers,
Andrés


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

Date2007-03-19 14:06
FromAndres Cabrera
SubjectRe: [Cs-dev] Outstanding issue with vrandh
Hi,
I don't remember who reported it, but I've fixed the scaling issue with
vrandh and vrandi, and added some new optional arguments. I've also made
these opcodes use the 31 bit PRNG from randh. See documentation.

Cheers,
Andrés
 
Andres Cabrera wrote:
> Hi,
> I remembered there's still a bug in vrandh, because the random values
> are not being scaled appropriately. It was discussed with Anthony, that
> probably the best solution was to use csound's random functions. What's
> the best way to use random functions on csound opcodes? Does the API
> provide some functionality for this?
>
> Cheers,
> Andrés
>
>
> -------------------------------------------------------------------------
> 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

Date2007-03-19 17:13
Fromjpff
SubjectRe: [Cs-dev] Outstanding issue with vrandh
>>>>> "Andres" == Andres Cabrera  writes:

 Andres> Hi,
 Andres> I don't remember who reported it, but I've fixed the scaling issue with
 Andres> vrandh and vrandi, and added some new optional arguments. I've also made
 Andres> these opcodes use the 31 bit PRNG from randh. See documentation.

Will that break anything?  When we added 31 bit PRNG we had to leave
the previous version available so as not to break old orchestras.

==John ffitch

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

Date2007-03-20 03:40
FromAndres Cabrera
SubjectRe: [Cs-dev] Outstanding issue with vrandh
Hi,
I thought about that, but the opcode was broken from the start, and the
shorter period algorithm would cause problems if used with long vectors,
so I decided to make it default. It will only break compatibility with
csoundAV orchestras. Should I add another optional argument to use the
old PRNGs?

Cheers,
Andrés

jpff wrote:
>>>>>> "Andres" == Andres Cabrera  writes:
>>>>>>             
>
>  Andres> Hi,
>  Andres> I don't remember who reported it, but I've fixed the scaling issue with
>  Andres> vrandh and vrandi, and added some new optional arguments. I've also made
>  Andres> these opcodes use the 31 bit PRNG from randh. See documentation.
>
> Will that break anything?  When we added 31 bit PRNG we had to leave
> the previous version available so as not to break old orchestras.
>
> ==John ffitch
>
> -------------------------------------------------------------------------
> 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

Date2007-03-20 08:41
Fromjpff
SubjectRe: [Cs-dev] Outstanding issue with vrandh
>>>>> "Andres" == Andres Cabrera  writes:

 Andres> Hi,
 Andres> I thought about that, but the opcode was broken from the start, and the
 Andres> shorter period algorithm would cause problems if used with long vectors,
 Andres> so I decided to make it default. It will only break compatibility with
 Andres> csoundAV orchestras. Should I add another optional argument to use the
 Andres> old PRNGs?

Sounds like what you did is OK and we can avoid the previous PRNG

Just being cautious......

==John ffitch

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

Date2007-03-20 12:19
FromAndres Cabrera
SubjectRe: [Cs-dev] Outstanding issue with vrandh
Hi John,

Yes, I gave it some thought, but if anyone feels this parameter should
be added, I'll do it.

Cheers,
Andres

jpff wrote:
>>>>>> "Andres" == Andres Cabrera  writes:
>>>>>>             
>
>  Andres> Hi,
>  Andres> I thought about that, but the opcode was broken from the start, and the
>  Andres> shorter period algorithm would cause problems if used with long vectors,
>  Andres> so I decided to make it default. It will only break compatibility with
>  Andres> csoundAV orchestras. Should I add another optional argument to use the
>  Andres> old PRNGs?
>
> Sounds like what you did is OK and we can avoid the previous PRNG
>
> Just being cautious......
>
> ==John ffitch
>
> -------------------------------------------------------------------------
> 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

Date2007-03-20 15:23
FromAndres Cabrera
SubjectRe: [Cs-dev] Outstanding issue with vrandh
Hi,
I meant the implementation in Csound5, not in CsoundAV.

Cheers,
Andrés

Andres Cabrera wrote:
>>  Andres> I thought about that, but the opcode was broken from the start, and the
>>  Andres> shorter period algorithm would cause problems if used with long vectors,
>>  Andres> so I decided to make it default. It will only break compatibility with
>>  Andres> csoundAV orchestras. Should I add another optional argument to use the
>>  Andres> old PRNGs?
>>     


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