Forums > MaxMSP

Getting Random to accept float values

March 3, 2011 | 7:29 pm

Hello,
I am looking to generate random inharmonic frequencies for cycle is there a way for random to accept float values or is this a job for an external object?


March 3, 2011 | 8:00 pm

[random] doesn’t do floats. But you can do something like this:

– Pasted Max Patch, click to expand. –

March 3, 2011 | 8:58 pm

Cheers for that multiplying by 1.0 is an other way? But there is no way to use a float as an argument only an int is it? Cheers again mate.


March 4, 2011 | 8:40 am

Not sure it will help, but you can make some sort of float accepting random this way (you decide the precision of the float):

– Pasted Max Patch, click to expand. –

March 4, 2011 | 1:24 pm

i have made an abstraction which is basically similar to a [random] object, but you can define minimum + maximum values, as well as step size (default = 1).

it also accepts negative numbers and floats (but for floats you need to define the step size)

http://cycling74.com/toolbox/lao-patchers/ (it’s the last one on the list)

hope this helps :)


March 4, 2011 | 2:04 pm

my 2 cents

– Pasted Max Patch, click to expand. –

March 4, 2011 | 5:00 pm

I use this sometimes.

Attachments:
  1. z.randz.zmap.zip

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