Urn/Random sending multiple outputs

Dec 1, 2009 at 5:07pm

Urn/Random sending multiple outputs

Hi there,

I’m a newbie to Max MSP and im having to learn it in 2 weeks for a project for my course.

One question i have is about Urn/Random.

So far, i have 8 Randoms creating random numbers between 1 and 8. I could end up with 1,2,3,4,5,6,7,8 or i could end up with 1,1,1,3,5,5,7,7.

I don’t want duplicates, i would just like 1-8 to be represented in different random orders. I understand i could use Urn for this, but using 8 Urns instead of Random would still give me duplicates. Is there any way for Urn/Random to output 8 integers to my number boxes with no duplicates each time?

Thanks in advance! Hope someone can help :)

#46933
Dec 1, 2009 at 5:15pm

I think you need to take a more careful look at the urn object. You can do that with a single urn object, unless you haven’t described what you want well. Since you appear to want a list, perhaps you should look at the zl object – particularly in its guise as the zl group object.

#168746
Dec 1, 2009 at 5:55pm

Greg,

Sorry if there’s any confusion. It’s hard to put my thoughts into words haha.

I basically require an Urn with 8 outputs. Each output would be attached to a number box. So each numberbox will display a number 1-8 respectively.

#168747
Dec 1, 2009 at 6:21pm

Um…

why don’t you bang the urn object N times and then collect or distribute the bangs in whatever way you want? That’s what I was getting at.

#168748
Dec 1, 2009 at 6:36pm

You need to find a way to distribute the output of urn to your various destinations. Here’s one:

– Pasted Max Patch, click to expand. –
#168749
Dec 1, 2009 at 7:05pm

Chris – perfect. That’s exactly what i was looking for. As a newbie, i’m still getting to grips with this kind of thing. My project is involving the playback of musical scales with notation, with the ability to record and compare a user’s input from a microphone (sing star style). You just saved me one big headache!

#168750
Jan 5, 2010 at 5:04am

another way to do it:

– Pasted Max Patch, click to expand. –
#168751
Jan 5, 2010 at 9:30pm

zl scramble… nice new addition!

#168752
Jan 5, 2010 at 10:02pm

I hadn’t noticed the scramble mode either. Cool.

#168753

You must be logged in to reply to this topic.