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!
Randomise Object?
Re: Randomise Object?
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.
- Attachments
-
- random-test.jzml
- (1.79 KiB) Downloaded 140 times
Re: Randomise Object?
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!
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
https://soundcloud.com/mrcorba
-
- Regular
- Posts: 143
- Joined: 21 Mar 2015 02:26
Re: Randomise Object?
And how can u put time in there and say include or exclude values such as note nums?
-
- Regular
- Posts: 143
- Joined: 21 Mar 2015 02:26
Re: Randomise Object?
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