Urn/Random sending multiple outputs
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 :)
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.
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.
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.
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. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 630.3oc2W1sjaBBEG+Z8ofgqSyvGBX5CRuoyNc7CZV1IAyn3zzcm8cuADSMo wnoq0IMWDLd.g+mefmyw2BCfoE6kUPvmAeEDD7VXPfyj0Pf+9.31j8YaRpbC Cpk+nH8E3hltLx8FmYCHEjsQlT11itdqRuQZbOE1a76EZSk5UoyFYIxadWhI 6Ykd82JkYlFwfQhCcChrCBDGYaI3kHvS9GQk6V1CR4SDTm0rn1ztnDu0FSle tS1L0vzD8Z3B.rQuGmRq3zIaciB9EYYdhNAZ658vPayhwRn5soxohCjULqui 4T6EZ70.AVbifPoMVN33wcNFXqFOF3OtXfPGOFXOrX.GKFOFhdbw.COdLPeb w.9FBQRtewvtRYkTaRLpBcW2Kx4WjlTgHeyQs7Agm3FhqheXOBEM9vp2W4Xu bwXqSLRP7EYC4ukMdpHPKY8CmdR4D2Gbrjo2eyEspK0SFrZKWyMJO55CVQ+G bRp9U0jwFeI8btq8pkz2SxJ5PUz2d0hpIGQo0FSg9pQb52qItT0DTa6E+PlK 603q50fm53JtYEtQoO+a5bByZ+T+qpntLqc57mIA+Va4xJiR6RH0YLGdIGfO NlmU44RW2sa8aU46JNrC3kvIBbwMqH6W20Y4trjNU1+ojxJ1TT1LdzRrfGIv 1rnwXFOl6xmRwTA8vB0Ym4L+.Gisg9vH24WJJ53cSgGNDzoC3gSLzGghNS1+ qkjE.jQbx7FTDl61QW4BEwHs++CJT1HNuZKkZFYGaDrCSlcIQGRRzYWRQCIo nYWRrgjDa1kDeHIwmcIIFRRhYWRCE.UL6wOQ2CoQw71DmrSRixNqRlv2C+Ux rvh4 -----------end_max5_patcher-----------
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!
another way to do it:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 476.3oc2VtsaiBCD.8Y3qXjeNakuvEm9gzWppVY.uodWvDANpYaU+2WrA51K zhiREUkW.w3IiO9vXGdHL.kUeT1hfKgqgffGBCBbgrABFdN.UINlWJZcogzG pxjMnM8CsWXxuUo28yFYtouLLN4B7FfEG6twsWocgfaF9MpBWgpy98O1NVmt ppzkRiaNHCA+Us1zptW5hQ6pyS4VevLlLcHZeHye2K6w.ozFzF.kIz6POM21 RpEUtbPWIaJDZAxNzigg1Ka9zrPTr2VffWuZ.u0eMvWsZflx7WCq2METVp2Z fRVuZ.6+IjT5pUCjD+OhjxVuZf5+QjznusZPdW2BXjdi7na0iNn2Kx+CP.Jv fHHFRfTf6gsXXmmRwWD+A5J970EeFccZ2VJudeIzl2HpxJkdHSrq0if6cJdZ YN8+NSmxkjSs0ypmOe2TIaaE6juQNmb2Fka6NfsQNMwm1OImueHuqe71MtDQ kJ8q+pd2pyF+kBqs9PS93zLtmA9+BrP1ZTZgQUqedRQuHoaUEER23iqqJUw9 5tF9AHfal702IwT5LLsc4QJYFjreX+RyT7bLwWdlhliouf2cr4ZwIKOSz4Xh t7LQliI1hxD2mSmhWTjR7.oyYSW2COF9ODK7RzG -----------end_max5_patcher-----------
zl scramble… nice new addition!
I hadn’t noticed the scramble mode either. Cool.
Forums > MaxMSP