zl queue and group no happy team?

hans w. koch's icon

hello,

trying to collect data into a zl queue and make a list of them via zl group.
either (most likely) i am doing something very stupid here or uncle max does...

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

see patch.
thanks for any tips
hans

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

zl queue will refresh its second outlet everytime it receives a bang. This works better (I just changed 1 patchcord):

hans w. koch's icon

thank you, patrick,
it works indeed!
still puzzled, why the original doesn´t work.
methinks it shouldn´t trouble zl group to recieve different lenghts before it actually recieves the data.

anyhow, this helps
hans

pdelges's icon

Hans,

zl group probably forgets what it received in its left inlet when it receives a value in its right inlet.

p

hans w. koch's icon

yeah, patrick, i figured it out meanwhile.
i forgot to account for zl queue counting down while giving out its data.
that of course confused zl group.

thanks for putting me on the track
hans

Zachary Seldess's icon

If you want to achieve this with one object, I recommend using [mxj list.Queue]

best,
Zachary

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

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

or this way. you don't need to tell zl.group what length comes in. use the "done" bang from uzi to push out your list:

hans w. koch's icon

zach, mib,

both thanks for the extension!
@zach: i probably avoid java, for portabilitys sake (the thing its intended for has to play nicely on windows too and i have zero experience with windows + java). but thanks for reminding me of the list.queue.
@mib thanks! fewer objects = better :-)

hans