store a list, then bang out the list elements one at a time?

shhhh's icon

Is there an object for this? Or a simple way to do it?

ch's icon

[zl reg] !

Wetterberg's icon

"one at a time" would mean [zl nth], I guess. It really comes down to how you want to sequence things - I normally prefer to use [multislider] and the special "fetch $1" message to retrieve the data, due to the way it works with pattrstorage and such.

ch's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Sorry, I didnt see the "one at a time" part :)
then [zl queue] may be what you're looking for :

Roman Thilenius's icon
shhhh's icon

the problem with zl nth is that you have to know exactly how many list elements there are, and then which ones you want to target. What I want to do is to store lists of varying lengths, and go "bang, bang, bang" and have it cycling through the list no matter how many elements it has.

for example, if I store a list that says "1 2 3 4" and hit it with 10 bangs, I want it to output "1, 2, 3, 4, 1, 2, 3, 4, 1, 2"... but it if i store a list that says "7 8 9" and hit it with ten bangs i want it to output "7, 8, 9, 7, 8, 9, 7, 8, 9, 7". Does that make sense?

shhhh's icon

Thanks Ch, I think zl queue will do the trick for me!

Wetterberg's icon

Problem is that zl queue isn't terribly intelligent, really. The system has no way of knowing where it's gotten to in a list, etc.

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

If you do find you need to step up the functionality a bit, have a look at this one using zl mth: