data repeat
I'm a big fan of Loomer architect which is also a dataflow program tailored made for midi , but sadly it has closed it doors .
It has a pretty nice module called 'data repeat 'with a variable repeat length ( expressed in ticks ) .
Example , when it receives a stream of numbers with regular intervals , it will hold the incoming nr for some amount of time untill the next one arrives
The giffs explain it
One giff is max in action ( ignore the structure under the print ) , the output of the zl lookup is a pitch number shown in the console
In loomer architect , the output goes into the 'data repeat 'set to 240 ( expressed in tick ) which equals 4 repeats .
I don't need Uzi or anything like that
I'm a bit at loss how to re-create this effect in max


If I understand correctly you want the same number to be output 4 times in a row from your [zl.lookup] before switching to the next one?
You could make the first metro 4 times faster, use this flow to repeat the final output, and use [counter], [cycle] or other means to get one bang every 4 to drive the input.
Or use multiple metro with tempo-relative notation so they get synchronized with the transport:
Notice that you can also use ticks as a time unit here.
I solved it by eventually using a separate metro for retriggering .
Using the gate data from the first zl lookup ( when 0 = note off ) , to turn off the retrigger metro
Works perfectly !
Sometimes the simplest solution is the easiest
