Csound Csound-dev Csound-tekno Search About

rand has nasty audible cycle

Date1998-07-15 19:58
FromDavid Schuyeteneer
Subjectrand has nasty audible cycle


I have found the rand,randh and randi opcodes very annoying when used for 
a-rate signals, because in my humble opinion they don't have a "reasonably
long"
cycle as I can always hear the cyclic repetition ! It sounds like a looped
sample,
and not like a stream. However those other, non-uniform random generators
like gauss, weibull etc are very well suited for a seamless stream !

What is the technical difference between the cyclic rand and the
non-uniform generators ??

David.


> There does seem to be some confusions in the whole area of the random
> number generators in Csound.
> 
> First, the rand, randh and randi opcodes have a simple (trivial) small
> cycle pseudo randon number generator.  They are not affected by the
> seed opcode, but only the optional seed argumrnt.  Each opcode is
> independednt, and follows the same sequence.