how do i change the seed number for urn?


    Jun 12 2008 | 2:58 am
    I am working on a patch that will generate a random pattern that repeats, but I want to be able to change the random pattern by having some kind of GUI to allow the user to change the seed number while the patch is running so that the next time urn gets cleared and seeded the pattern will change. Can someone please tell me how to go about doing this?
    Feel free to paste in text of the patch file as an example. I figured out how to open the text as a patch.
    Thank you!!!

    • Jun 12 2008 | 3:01 am
      I forgot to mention, I am using MaxMSP 4.6.
    • Jun 12 2008 | 3:13 am
      as the help file says, you can send the seed message followed by an integer to set the seed value for urn.
      however the output of urn will be different every time you send it the clear message. no need to re-seed.
      -rob
    • Jun 12 2008 | 4:47 am
      On Jun 11, 2008, at 7:58 PM, mike wrote: > Can someone please tell me how to go about doing this?
      This is an abstraction I use, called UrnCounter, which repeats a random pattern, over a settable range, and allows you to set the seed.
      Chris Muir cbm@well.com http://www.xfade.com
    • Jun 12 2008 | 8:43 am
      robtherich,
      I'm not sure you understood my post. I am looking for a way to change the seed number through a GUI (like a number object) when the patch is locked. I can't seem to find anything about how to change the argument to the seed message when the patch is locked in the help file.
      I know the urn sequence can be repeated by clearing it and banging it with the same seed number repeatedly. But if you want to change the sequence, you need to change the seed number. I'm not trying to use urn to do complete random output with no repetition. I am trying to repeat random patterns for a set amount of time, and then change the seed number to get a different random pattern either at intervals, or whenever I choose by changing the seed number manually while the patch is running.
      Chris Muir,
      Um... I'm not sure what to do with that text. The text format I was referring to would be what you get if you save a patch as a text file. Then, it can just be renamed with a .pat extension and opened as a patch.
      It looks like you are using MaxMSP 5. Do you know if this will still run on 4.6? If so, how can I convert that text and run it as a patch in my version? I'm used to seeing something like this for the text of a patch:
      Thanks!
      Mike
    • Jun 12 2008 | 9:53 am
      On 12 juin 08, at 10:43, mike wrote:
      > I'm not sure you understood my post. I am looking for a way to > change the seed number through a GUI (like a number object) when the > patch is locked. I can't seem to find anything about how to change > the argument to the seed message when the patch is locked in the > help file.
      What about this:
      _____________________________ Patrick Delges
      Centre de Recherches et de Formation Musicales de Wallonie asbl http://www.crfmw.be/max
    • Jun 12 2008 | 4:34 pm
      On Jun 12, 2008, at 1:43 AM, mike wrote:
      > Um... I'm not sure what to do with that text.
      That's the Max5 compressed clipboard format.
      I do happen to have that abstraction in Max 4, too. Here it is, along with its help file - Save this as UrnCounter.pat:
      Save in your max-help folder as UrnCounter.help:
      Chris Muir cbm@well.com http://www.xfade.com
    • Jun 13 2008 | 1:59 am
      Awesome! The UrnCounter patch was a bit more complex than what I needed. However, I was able to pull the part of the puzzle I needed out of this patch. The key is using a prepend object with "set seed" as the argument.
      Here is the patch for the solution I was trying to find in case anyone else is looking for it.
      As you will notice, this just allows you a simple way of changing the seed number through a number box.
      Also, I just found out something really cool. All you need to do is select the text above and paste it into a new patch, and it will paste in the actual objects in the patch! This works in reverse too, so if you want to give someone a patch file, all you have to do is highlight/select everything in the patch, apple+c to copy, then apple+v to paste it into text. Apparently MaxMSP handles translating the objects into the text of the code through the Mac OS somehow. Neat!
      Thanks again for your very helpful response!
      Mike
    • Jun 13 2008 | 3:28 am
      On Jun 12, 2008, at 6:59 PM, mike wrote: > The key is using a prepend object with "set seed" as the argument.
      If that's all you need, Patrick's solution, a few messages back, will do the job slightly more easily.
      -C
      Chris Muir cbm@well.com http://www.xfade.com