Randomize patch parameters

Jun 5, 2012 at 11:38am

Randomize patch parameters

I wonder if there’s an easy way to randomize parameters of different kind (int, float, symbol)? I guess the pattr object is the key but how? Any help would be appreciated!

Jun 5, 2012 at 11:55am

Fill a [coll] with your different “random” values and use [random] or [urn] to send them out in random order

Jun 5, 2012 at 12:02pm

Thanks but how do I connect the parameters with the random number generators? What if I need to connect lots of parameters of different types to generators?

Jun 5, 2012 at 12:24pm

Have a look at the help files and play around with the objects. My explanation will make sense pretty quickly

Jun 5, 2012 at 12:50pm

Will do then, thanks!

Jun 5, 2012 at 6:03pm

What I still want to know is how to bind to multiple parameters and randomise them. How can I access dozens of parameters and bind them to random number generators?

Jun 5, 2012 at 6:26pm

Not sure exactly what you are after, but here is a very basic example.

– Pasted Max Patch, click to expand. –
Jun 5, 2012 at 7:19pm

Hmm, thought about it but it means having to create a random generator to each and every slider, dial etc. Thanks anyway!

Jun 5, 2012 at 7:49pm

Ok, but each parameter is going to need its own range of values, yes? Still not sure what you want, but here’s a variation on the approach.

– Pasted Max Patch, click to expand. –
Jun 5, 2012 at 8:03pm

Also, I would like to b able to control the amount of random in percentage applied to the parameters.

Jun 5, 2012 at 8:27pm

In the last example, the input into the third inlet of [drunk 100] does this

Jun 6, 2012 at 7:35am

You keep blowing my mind. Thanks!

Jun 6, 2012 at 4:13pm

If you use the live.number, live.dial, etc. objects you can use the “rawfloat” message to do randomization within the object’s min/max bounds without having to know what they are first.

You can see it in my EML-200 project if you go the sequencer and check out the randomization code.

Jun 7, 2012 at 8:10am

Here’s something I put together to help me randomise incoming float values within +/- a given percentage – it might work for you.

save as sm.within%.maxpat:

– Pasted Max Patch, click to expand. –

and save as sm.within%.maxhelp:

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.