Generate incremental number series from given set of numbers

geno's icon

Hi all, probably my problem is very trivial, but I can't seem to find a simple solution. I would like to generate an incremental series from a small sequence of numbers, for example 1 3 2 and from that generate the series 1 4 6 7 10 12 13..., so the intervals between the growing numbers would always be 1 3 2. Like a counter that doesn't have a fixed step size, but a list that is looped one position further every count. I will probably be able to built something that does the job, but I am wondering if there is an object that provides a solution for this task already? Thanks.

double_UG's icon

counter + zl.lookup + accum

Max Patch
Copy patch and select New From Clipboard in Max.

geno's icon

Very cool, thank you. I made a version of it that is flexible in size and spits out a list of the accumulated values. - zl.accumrow

zl.accumrow.maxpat
Max Patch