non repeating random number array

Apr 25, 2010 at 8:36am

non repeating random number array

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!


Apr 25, 2010 at 9:10am

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.



You must be logged in to reply to this topic.