zl queue and group no happy team?

Nov 4, 2010 at 11:32am

zl queue and group no happy team?

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…

see patch.
thanks for any tips
hans

– Pasted Max Patch, click to expand. –
#53086
Nov 4, 2010 at 3:38pm

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

– Pasted Max Patch, click to expand. –
#190912
Nov 4, 2010 at 7:18pm

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

#190913
Nov 4, 2010 at 9:40pm

Hans,

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

p

#190914
Nov 5, 2010 at 1:01am

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

#190915
Nov 5, 2010 at 5:37am

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

best,
Zachary

– Pasted Max Patch, click to expand. –
#190916
Nov 5, 2010 at 5:59pm

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:

– Pasted Max Patch, click to expand. –
#190917
Nov 5, 2010 at 11:27pm

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

#190918

You must be logged in to reply to this topic.