Forums > MaxMSP

please help with randomizing this value..

June 12, 2013 | 3:03 am

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>



dtr
June 12, 2013 | 4:10 am

<code>

– Pasted Max Patch, click to expand. –

</code>


June 12, 2013 | 4:25 am

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

j


June 12, 2013 | 6:01 am

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


June 12, 2013 | 10:10 am

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


June 12, 2013 | 9:07 pm
– Pasted Max Patch, click to expand. –

Viewing 6 posts - 1 through 6 (of 6 total)