Hi,<br><br>I&#39;m not sure I got your question right, but one thing you can do is map the output of your random number generator. <br>Say you get a random number ranging from 0 to 1and you want the frequency to be between 200 Hz and 10KHz :<br>
- multiply the random number by 10000 - 200 = 9800,<br>- then add 200.<br><br>You can change the two boundaries between two random numbers.<br><br>Pierre.<br><br><div class="gmail_quote">2012/5/23 flad chester <span dir="ltr">&lt;<a href="mailto:flad.chester@gmail.com" target="_blank">flad.chester@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list, im new with pd, i was thinking about which should be the best way to implement this idea or maybe somebody has done something like this before:<br>
Im controlling the frequencies of my grains with a random number generator, but instead of controlling the frequencies directly i would like to select the closest frequency in a specific scale for each random value.<br>
<br>how can i do this in pd?<br><br><br>thanks in advance<span class="HOEnZb"><font color="#888888"><br><br>Flad<br><br><br><br><br><br>
</font></span><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>