## Urn argument change

Mar 20, 2013 at 6:03pm

# Urn argument change

Hello and please forgive my noviceness.

I’m trying to create a situation where the argument of an urn object will increase by a number(2 for example)
each time it finishes generating it’s previous argument.Therefore an argument of 2 would next be 4 and next be 6 etc……

Is there an easy way to do this with an addition object?It seems it should be simple but I can’t figure it out.
I don’t really understand what “seed”does.Maybe that would be useful?

#67215
Mar 20, 2013 at 6:10pm

Use the output “finished” bang of urn and bang two messages that say “inc” into an incdec object. Then use the output to go back into urn. You can use the addition object instead but it needs a bit o’ recursion, incdec is easier I think.

“seed” is unrelated, it sets the starting seed for urn’s random-generation. You can change that too if you want, I don’t think it’s necessary though.

#241869
Mar 20, 2013 at 9:05pm

I’ll give it a go later tonight.

The reason I suggested the addition object is because I also might need to multiply the argument.
For example if the argument is 5(but could be a different number) it could then be multiplied by 3(again could be a different number)
the next argument would be 15 and the next 45 etc……

In my inexperienced mind I was trying to find a solution with number and math object to make the change of numbers quick and simple.

#241870
Mar 20, 2013 at 11:25pm

Ah, gotcha. I’d use a [gate 2] and have the possibility to do either addition or multiplication, depending on the outlet. Or you can look at [accum] which does both, but you’d still need a gate of some sort to choose the corresponding inlet. I’d stick to the simple math objects with attached numbers that can set the pattern to whatever you want.

It’s also super-easy to generate pre-made lists of your values with [uzi] and [zl group]. Then you just increment a counter by one each time and pull from the stored list using [zl nth].

#241871
Mar 21, 2013 at 7:21pm