Sorry if I'm just acting like my head is made of wood, but 1: why would anyone want to reproduce a chuck program sample-accurately? and 2: if reproducing something sample-accurately is important to you, you can still accomplish that by having a single global randomizer in your program (seeded), and use that one.<div>
<br></div><div>/Stefan<br><br><div class="gmail_quote">2010/9/11 Kassen <span dir="ltr"><<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote">2010/9/11 Stefan Blixt <span dir="ltr"><<a href="mailto:stefan.blixt@gmail.com" target="_blank">stefan.blixt@gmail.com</a>></span><div class="im"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Gotcha! Or at least, I can see a flaw here in ChucK's randomizers: there is only one of them! </blockquote><div><br></div></div><div>That's not really a flaw; everything random, including the Std.rand* functions, all UGen noise sources and all noisy components of STK instruments depend on the same PRNG. I looked at the source back when I was obsessed with audio-rate resetting of the seed. This means that pieces with a set seed will be perfectly and sample-accurately be reproducible. CSound has always taken that into account, as well as backwards compatibility, which means that we can now listen to CSound pieces composed decades ago using modern converters for exact accuracy.</div>

<div><br></div><div>This is a non-trivial feature from a "serious computer music" point of view. </div><div><br></div><div>What we can do is implement our own PRNG in ChucK. Random number generators have been under a LOT of analysis as cryptographic security and thus banking and government secrets depend on them. To facilitate this PRNG of a strength way beyond our needs are open and free.</div>

<div><br></div><div>For a more music-based look at it all I can't recommend "A Look at random Numbers, Noise and Chaos with Csound" by John Ffitch in the CSound handbook highly enough. Sadly I can't quickly find a online version; you may be more lucky or a local library might (should!) have the book.</div>

<div><br></div><div>Yours,</div><div>Kas.</div></div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>