please help with randomizing this value..

Jun 12, 2013 at 3:03am

please help with randomizing this value..

Hi,

In attached patch the meter rises to red over 10000 ms. I would like to randomise this value so every time Start is pressed the speed at which the meter reaches the red is varied. I’d really appreciate a hand with this, please.

<code>

– Pasted Max Patch, click to expand. –

</code>

#252489
Jun 12, 2013 at 4:10am

<code>

– Pasted Max Patch, click to expand. –

</code>

#252495
Jun 12, 2013 at 4:25am

thanks! Really useful! is there a way I can set a minimum value, so it wont go below say, 1000 ms

j

#252497
Jun 12, 2013 at 6:01am

O.K, got it- I put +1000 in a number box following the random.

#252507
Jun 12, 2013 at 10:10am

If you use the randomvals object instead of random you can also control the distribution of values.

#252524
Jun 12, 2013 at 9:07pm
– Pasted Max Patch, click to expand. –
#252553

You must be logged in to reply to this topic.