Forums > MaxMSP

Trying to interleave lists from three multisliders

February 26, 2012 | 9:39 pm

Hi, I’m trying to interleave multiple lists from multiple multisliders.

The idea is to be able to send lists to each individual voice in a poly~ patcher.

Here is what I have so far:

– Pasted Max Patch, click to expand. –

As you can see multisliders 2 and 3 are sending slider 2 twice rather than 1 then 2.


February 26, 2012 | 9:53 pm

This is another idea I had that also doesn’t work.

– Pasted Max Patch, click to expand. –


yp
February 26, 2012 | 9:54 pm

They’re sending slider 2 twice because of [listfunnel].
Check out the new [join].. it makes this sort of stuff much easier.

http://cycling74.com/2011/11/28/week-45-pack-and-join/

Cheers

– Pasted Max Patch, click to expand. –

February 26, 2012 | 10:02 pm

Ah, thanks that’s a very useful object!

I’m still having trouble getting each list from each slider
so for example I want a list that has the value of the first slider from each multislider, then after that to get the value from the second slider from each mutislider.

Here’s another patch that seems to only send the value of the 2nd slider.

– Pasted Max Patch, click to expand. –

February 26, 2012 | 10:12 pm

This seems to work but only triggers after banging the uzi at the top.

– Pasted Max Patch, click to expand. –


yp
February 26, 2012 | 10:35 pm

This should work.
The sole purpose of the [zl change] + [zl len] combo is to avoid triggering the [uzi] twice. (once by clicking and again by releasing the mouse).

– Pasted Max Patch, click to expand. –

February 26, 2012 | 10:58 pm

Ah thanks, that does the job. I’ve come into a problem though, in my main patch I want to send 12 values but you can only go up to 10 ‘$1′.
I’ve looked into sprintf to deal with this instead of [join] but this way I can’t send target $1 first. Hmm.. could this mean having to make two inputs on the poly~ for two separate lists?



yp
February 26, 2012 | 11:04 pm

EDIT: yeah.. two inputs should solve the problem – just make sure that both messages start with target $1, $2 etc..


February 26, 2012 | 11:09 pm

Aha! I think I’ve had a breakthrough.

– Pasted Max Patch, click to expand. –

This should do the job for anyone wanting to send over 9 values to each voice on a poly.

I shall test it on my polyecho~ device and report back.


February 26, 2012 | 11:37 pm

Hmm, tested it and now it only sends values to voice 7. Even though print is saying that the messages are formatted correctly.

Could it be that poly~ can’t keep up with the speed the messages are given to it?



yp
February 27, 2012 | 8:27 am

Could you attach your patch? or at least the relevant part of it?


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