Forums > Max For Live

non repeating random number array

April 25, 2010 | 8:36 am

hi all, i’m curious if there’s a pre-existing patch out there that can generate a shuffled array of integers within a range to get a non-repeating randomness?

i’m trying to build a midi effect that drives the live Sampler instrument so that it will play notes(or CC) semi-randomly – so you won’t hear the same sound twice until all the integers in the shuffled array have been cycled through…

or any leads on what objects might work best to build this kind of tool, would be great appreciated!

thnx!


April 25, 2010 | 9:10 am

Have a look at the help file for the [urn] object. If you do need the numbers as a list then either place the [urn] between [uzi] and [zl group] or use [zl scramble 1 2 3 4] instead.

lh


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