<div>There is a Noise UGen: <a href="http://chuck.cs.princeton.edu/doc/program/ugen_full.html#noise">Noise</a></div><div><br></div>Having said that,this shouldn't be any different from what you're explaining:<div><br>
</div><div><div>Step randomValue => blackhole;</div><div><br></div><div>fun void makeNoise() {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>while (true) {</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>Math.rand2f(0.0,1.0) => randomValue.next;</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>1::samp => now;</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>}</div><div>}</div><div>spork ~ makeNoise();</div></div><div><div>
while (true) {</div><div><span class="Apple-tab-span" style="white-space:pre">    </span><<< "random: ", randomValue.last() >>>;</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>1::second => now;</div>
<div>}</div><div><br></div><div>If you'd want smoother transitions between the random values, use an Envelope instead of Step and wait a it longer than samp between values. But I guess the Noise UGen is what you're after. :)</div>
<div><br></div><div>/Stefan</div><br><div class="gmail_quote">On Sun, Sep 26, 2010 at 12:44 PM, Thomas Girod <span dir="ltr"><<a href="mailto:girodt@gmail.com">girodt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I didn't find any CNoise ugen - at least in ChucK online documentation.<br>
Are there any other extra ugens I can install ?<br>
<br>
As for your other suggestion, this is not what I'm looking for. What you<br>
are describing is a random walk with a delay of X. What I need is a<br>
continuous change and a "freq" parameter that allows me to say how fast<br>
this continuous change is happening.<br>
<br>
tom<br>
<div><div></div><div class="h5"><br>
On Sat, Sep 25, 2010 at 11:57:36AM -0400, Andrew C. Smith wrote:<br>
> There's a CNoise UGen, right? I believe that's what you're looking<br>
> for. Otherwise, you can always spork a shred that gets a random value<br>
> after every specified duration.<br>
><br>
> Let me know if that explanation didn't make sense and I can sketch up an example.<br>
><br>
> Andrew<br>
><br>
> On Sep 25, 2010, at 4:05 AM, Thomas Girod wrote:<br>
><br>
> > Hi there.<br>
> ><br>
> > I am looking for some kind of "random lfo" to change a parameter<br>
> > continuously and randomly. I remember there is a UGen called "LFNoise2"<br>
> > to do that in SuperCollider.<br>
> ><br>
> > How can I do that with ChucK ?<br>
> ><br>
> > thanks<br>
> ><br>
> > tom<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>
_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>