combine 2 dynamic lists

Wil's icon

Here is a patch so far

I would like to join, combine, lace etc - Maybe a better way

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

here is an image (if you don't have spat5--)

the final result should have commas to get into spat

the goal here is group each 8 sources in different azim and dist configurations

Roman Thilenius's icon

pushing commas into messagebox objects might be impossible.

why not use [list] [list] or [t "s s s" "s s i"] ?

Wil's icon

actualy I found way to get comma

but my [zl lace] cannot work because I use [toymbol] to lace the 2 lists -- 1 item laced with 2 items

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


TFL's icon

What is the purpose of displaying them in a [message] object? You don't necessary need to format those through a single message with commas. Instead, you can directly send your messages one by one as they come (since you generate all 8 messages every time a change is made), or group them in a FullPacket using [spat5.osc.collect]. With the last solution, you can use [spat5.osc.var] to store your bunch of messages if you want to re-send them later (otherwise FullPacket messages are quite volatile), and [spat5.osc.view] to see on-screen.

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

EDIT: for those used to the Odot package, [spat5.osc.collect] is the equivalent of [o.collect], [spat5.osc.var] of [o.var], and [spat5.osc.view] of [o.display]. But I used the spat5 version since OP already uses that package in their project.

Wil's icon

Thanks TFL

I don't know much about OSC

the message box I put was for visual debugging

Screen Recording 2026-07-23 at 9.26.17 PM.mov

(I forgot the /source/ part of the message - works like a charm now)

(since you generate all 8 messages every time a change is made)

Dynamic grouping later

TFL's icon

the message box I put was for visual debugging

So yeah, not worth the trouble formatting messages with commas just for visual debugging. Better to use [print] or [messageview] for this purpose.

Wil's icon

Well. I didn’t understand how to get mass massages into spat

I was using /source/1/stuff , /source/2/stuff etc (a lot of those)

OR

/source/*/stuff - addresses all

— coming back to spat after away for a while I needed to learn about targeting groups

Message with commas was what I figured out but not best solution

Thanks for assistance!

TFL's icon

Yes, wildcards are very useful! You can also target multiple, but not all, addresses, in one go using something like {2, 4, 5} which should be written as {2\, 4\, 5} in Max messages since you need to escape the comma. This is shown in [spat5.tuto-osc-1].

Wil's icon

thanks great info I check it out

Wil's icon

there it is

besides /source/{ \2,\7}/

can do /source/[2-7]/

now I begin to think about [sprintf ] needs a trigger mode

Screen Recording 2026-07-24 at 7.38.48 PM.mov