Forums > MaxMSP

ZL QUEUE question


Jul 01 2013 | 3:17 am

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

Jul 01 2013 | 3:45 am

you want [zl reg], I think?

Jul 01 2013 | 3:54 am

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

Jul 01 2013 | 5:49 am

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>

Jul 01 2013 | 5:51 am

thanks!

Jul 01 2013 | 6:03 am

glad to help :)

Jul 01 2013 | 7:04 am

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>

Jul 01 2013 | 8:34 am

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

Viewing 8 posts - 1 through 8 (of 8 total)

Forums > MaxMSP