Labeling groups of two numbers from a list

Mar 23, 2012 at 8:18pm

Labeling groups of two numbers from a list

Hi guys, I’m getting an output of streams of XY values with a patch using cv.jit.features.

I want to split these into groups of two with an index.

So if I have: 10 22 45 60 7 32

I want: 1 10 22 2 45 60 3 7 32

I’ve looked into [listfunnel] but this gives each individual number an index.

I’ve also looked into [mxj.listmultiplex 3] but can’t seem to get the values coming in in the right order for it to work this way.

Thanks.

#62556
Mar 23, 2012 at 9:02pm

jit.multiplex can do this.

– Pasted Max Patch, click to expand. –
#225958
Mar 23, 2012 at 9:11pm

here’s a non-jitter method, using zl

– Pasted Max Patch, click to expand. –
#225959
Mar 23, 2012 at 9:56pm

Thanks so much guys, my brain is clearly on holiday today.

#225960

You must be logged in to reply to this topic.