ZL QUEUE question

Jul 1, 2013 at 3:17am

ZL QUEUE question

Please look at attached code.

I want the zl queue to print “240 62 16 0 32 0 0 61 0 247″ instead of:

“240″
“62″
“16″
“0″
“32″
“0″
“0″
“61″
“0″
“247″

How would i accomplish that?

if i hook up a print object underneath the append object it prints fine, but when i print from the zl queue it breaks down in separate values (this is sysex, so if it’s not a proper string it won’t work)

– Pasted Max Patch, click to expand. –
#254592
Jul 1, 2013 at 3:45am

you want [zl reg], I think?

#254601
Jul 1, 2013 at 3:54am

erm, i have hundreds of these strings that need to be sent out over udp with a time interval of 5ms each.

so i hooked up a [metro 5] to a button and let that button trigger the ZL QUEUE every 5ms

my problem now lies in that the messages don’t come out in the same format as they’re going in..

#254602
Jul 1, 2013 at 5:49am

try a [tosymbol] before entering the zl queue
This is an odd behaviour maybe, one could expect [zl queue] to output entire lists, but it only outputs symbols. Since a list is composed of several symbols, you’ll have to turn your list into a symbol.

<code>

– Pasted Max Patch, click to expand. –

</code>

#254611
Jul 1, 2013 at 5:51am

thanks!

#254612
Jul 1, 2013 at 6:03am

glad to help :)

#254613
Jul 1, 2013 at 7:04am

I think I’m correct in saying that [tosymbol] is not a good choice for this task if you’re generating a new message (and thus a new symbol) every 5 ms. A couple objects you might find useful for your task are [sxformat] and [thresh].
<code>

– Pasted Max Patch, click to expand. –

</code>

#254616
Jul 1, 2013 at 8:34am

i don’t really know how sysex works, so this seems better

#254622

You must be logged in to reply to this topic.