Forums > MaxMSP

Multislider to Poly~ help

January 21, 2007 | 8:04 pm

Hi
Basic multislider output question.

I am adapting a simple granular patch using Poly~ and I want to control the sample position of each voice using the multisilder object.
Slider 1 controls sample position on voice 1, Slider 2 controls sample position on voice 2 etc…

How do I get multislider, which sends out a list of current slider values, to send individual slider values to a specific voice in Poly~?

Would using ‘route’ and ‘target $1 1′, ‘target $1 2′, ‘target $1 3′ etc for this?
I can post the patch if needed.
Thanks
David


January 21, 2007 | 8:23 pm


January 21, 2007 | 8:39 pm

You want something that splits the lists that multislider sends out and
indexes the pieces in order to have the right format for the target
messages.
I think the best way is to use listfunnel for this – patch below.

Best,
Andreas.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 197 266 26 9109513 print;
#P message 197 245 58 9109513 target $1 $2;
#P newex 197 224 54 9109513 listfunnel 1;
#P user multiSlider 197 164 257 57 0. 100. 4 2937 47 0 0 2 0 0 0;
#M frgb 48 110 134;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 141 92 57;
#M rgb5 118 48 99;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P connect 1 0 2 0;
#P connect 0 0 1 0;
#P connect 2 0 3 0;
#P window clipboard copycount 4;

David Atkinson skrev:
> Hi
> Basic multislider output question.
>
> I am adapting a simple granular patch using Poly~ and I want to control the sample position of each voice using the multisilder object.
> Slider 1 controls sample position on voice 1, Slider 2 controls sample position on voice 2 etc…
>
> How do I get multislider, which sends out a list of current slider values, to send individual slider values to a specific voice in Poly~?
>
> Would using ‘route’ and ‘target $1 1′, ‘target $1 2′, ‘target $1 3′ etc for this?
> I can post the patch if needed.
> Thanks
> David
>


January 21, 2007 | 9:46 pm

HI Ej and Andreas

Thanks for the examples
Listfunnel is just what I need.
Thanks for the swift reply
You guys rock!

David

Quote: Wetterberg wrote on Sun, 21 January 2007 13:39
—————————————————-
> You want something that splits the lists that multislider sends out and
> indexes the pieces in order to have the right format for the target
> messages.
> I think the best way is to use listfunnel for this – patch below.
>
> Best,
> Andreas.
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 197 266 26 9109513 print;
> #P message 197 245 58 9109513 target $1 $2;
> #P newex 197 224 54 9109513 listfunnel 1;
> #P user multiSlider 197 164 257 57 0. 100. 4 2937 47 0 0 2 0 0 0;
> #M frgb 48 110 134;
> #M brgb 255 255 255;
> #M rgb2 127 127 127;
> #M rgb3 0 0 0;
> #M rgb4 141 92 57;
> #M rgb5 118 48 99;
> #M rgb6 112 158 18;
> #M rgb7 149 211 110;
> #M rgb8 187 9 201;
> #M rgb9 224 62 37;
> #M rgb10 7 114 128;
> #P connect 1 0 2 0;
> #P connect 0 0 1 0;
> #P connect 2 0 3 0;
> #P window clipboard copycount 4;
>
> David Atkinson skrev:
> > Hi
> > Basic multislider output question.
> >
> > I am adapting a simple granular patch using Poly~ and I want to control the sample position of each voice using the multisilder object.
> > Slider 1 controls sample position on voice 1, Slider 2 controls sample position on voice 2 etc…
> >
> > How do I get multislider, which sends out a list of current slider values, to send individual slider values to a specific voice in Poly~?
> >
> > Would using ‘route’ and ‘target $1 1′, ‘target $1 2′, ‘target $1 3′ etc for this?
> > I can post the patch if needed.
> > Thanks
> > David
> >
>
>
—————————————————-


January 21, 2007 | 10:43 pm


January 21, 2007 | 10:59 pm

David Atkinson skrev:
> EJ and Andreas
>
> Is there a way listfunnel can output just one slider value at a time from multislider, as it sending out all 4 values at once? I have noticed that multislider has a fetch $1 message which fetchs a single slider value and output out the right outlet. Could this be an alternative?
Fetch $1 is a great function, and it can definitely do what you want..
You could also put [change] objects in the poly~ to filter out repeat
messages from the examples we sent.

Andreas.


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