In case there are still people who aren&#39;t yet tired of my explorations around Std.srand();<br><br>Below is a short study that plays 8 notes on Flute. As Flute uses a random excitation signal that is based on the central random number generator we can affect the sound of Flute by calling Std.srand to reset the seed. In this case it is reset quite rapidly, making every note identical with a distinct synthetic character. After the first 4 notes we start adding extra Flutes that play silently yet still tick the random generator, resulting in a timbral change in the first flute which we hear in the following 4 notes. <br>
<br>For your enjoyment;<br><br>//======================<br>Flute f[8];<br>f[0]=&gt; dac;<br><br>//avoid distracting modulation<br>0 =&gt; f[0].vibratoGain;<br><br>for(int i; i&lt;8; i++)<br>    {<br>    if(i &gt; 3) //after the first 4 notes<br>
        {<br>        //note the use of silent flutes affects the sound of f[0]<br>        //by still ticking the pseudo random number generator<br>        f[i] =&gt; dac;<br>        0 =&gt; f[i].gain;<br>        1 =&gt; f[i].noteOn;<br>
        }<br>    .5 =&gt;f[0].noteOn;<br><br>    now + .5::second =&gt; time later;    <br>    while (now &lt; later) //the actual modulation<br>        {<br>        0 =&gt; Std.srand;<br>        2::ms =&gt; now;<br>        }<br>
    <br>    0 =&gt; f[0].noteOn;<br>    .5::second =&gt; now;<br>    }<br>//===========<br><br>During a walk, this afternoon, I contemplated constrasting a Flute that was prepared in this way against a normal one, thinking the distinct timbre might contrast nicely against the more natural sound of the plain Flute, this -of course- won&#39;t work as they would use the same random generator. What we also can&#39;t have is random melodies to play sounds that are
using this technique, at least not unless we implement our own random
number generator as a public class. Sadly we can&#39;t have our cake and put it in the blender, at least not at the same time.<br><br><br>Yours,<br>Kas.<br>