[LAD] random curiosity

Arnold Krille arnold at arnoldarts.de
Tue Jan 26 13:23:44 UTC 2010


Hi,

On Tuesday 26 January 2010 13:33:52 Gabriel M. Beddingfield wrote:
> On Tue, 26 Jan 2010, Arnold Krille wrote:
> > I don't (yet) get the reason for doing this. If the global seed is
> > initiated with time() it is the same as if each notes seed is initiated
> > with time(), the
> 
> *Is* each note being seeded with time()??
> 
> I got the impression that the seeds were being saved and
> repeated.  The reason why /that/ might make sense is if the
> PRNG is being used for some kind of modulation effect -- and
> then all the notes would have an identical "sound."

I don't know but this sounds a bit stupid to me. You want the random numbers 
to have differences. Playing the same note again on a real piano or violin 
still produces different sounds each time. So I would expect a synth using 
random numbers for variety to behave the same and not give me exactly the same 
each time I hit that note.

But regardless at how the seeds are initialized, when you use a special seed 
for each note, you are very much effected by correlation of the random numbers. 
When using the same seed for all notes, the access to the seed gets randomized 
as soon as you hit two notes together. Which reduces the effect of bad random 
numbers.

And you can't really use scientific random number generators because you want 
to be fast and have realtime with the synth, so you are bound to have some 
strange effects from the random numbers.

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20100126/3113854c/attachment.pgp>


More information about the Linux-audio-dev mailing list