### 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?

Please help and Thanks….

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.

Thanks for your prompt reply!

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.

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].

Thanks for all your suggestions!

I really have been interested in looking more into those areas for some time

but haven’t needed to for past projects(which were very simple).

I think I’ve figured out what I need to do with just the math and number boxes for now….

Forums > MaxMSP