ZL QUEUE question

synnys's icon

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)

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

Wetterberg's icon

you want [zl reg], I think?

synnys's icon

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..

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

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.

synnys's icon

thanks!

vichug's icon

glad to help :)

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

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].

vichug's icon

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