Getting Random to accept float values

Mar 3, 2011 at 7:29pm

Getting Random to accept float values

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?

#55271
Mar 3, 2011 at 8:00pm

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

– Pasted Max Patch, click to expand. –
#198925
Mar 3, 2011 at 8:58pm

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.

#198926
Mar 4, 2011 at 8:40am

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. –
#198927
Mar 4, 2011 at 1:24pm

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 :)

#198928
Mar 4, 2011 at 2:04pm

my 2 cents

– Pasted Max Patch, click to expand. –
#198929
Mar 4, 2011 at 5:00pm

I use this sometimes.

Attachments:
  1. z.randz.zmap.zip
#198930

You must be logged in to reply to this topic.