General
Randomise Object?
Started by whatisvalis on .
Sign in or create an account to join the conversation.
Hi
I can randomize a bi-polar knob via the following switch script
Knob.x=rand();
How can I limit the range of randomization + or - a certain amount from 64?
Thanks!
I can randomize a bi-polar knob via the following switch script
Knob.x=rand();
How can I limit the range of randomization + or - a certain amount from 64?
Thanks!
Here's a quick and dirty example using a button. Every time you push the button, you'll get a random number within +/-4 of 64. Change the values in the script to expand the range.
random-test.jzml
random-test.jzml
Another solution is using the rang() function
Just use Knob.x = range(rand(),min,max) This ranges the random function between the min and max of your choice.
Cheers!
Just use Knob.x = range(rand(),min,max) This ranges the random function between the min and max of your choice.
Cheers!
Thank You!
And how can u put time in there and say include or exclude values such as note nums?
Also can u randomise the times between note switches ,,,this would be cool for me to automate cuts and fades for a video program ,I can automate cameras random with different fades and cuts ,it uses midi note nums,,,but I would need to input the note nums and like a speed setting in secs but have a variable range plus or minus 2 secs