clear [urn ] without without repeating.
I'm looking to play files from a folder in a randomized order without repeating, urn allows me to do this except I want to start over again after it's played every file. To do this I need to send urn both a seed 1 message and clear message. The problem is I have to bang urn once AFTER it has gone through all the numbers so it send a bang out which I use to send the clear and seed messages. The last bang does not generate a new number which would make a sfplay~ object play the same file again.
Any ideas for solutions?
Here is a simple version of the problem
If I understand correctly, you want urn to give out a new number at every bang, starting again right after it has given out all numbers?
Have you tried this:
That's it, thank you! I cannot wait for the days when I understand max properly
Here's a patch I find handy, called UrnCounter:
there is also the abstraction [urn-jb] in the Max5/examples folder. might be worth a look.