Forums > MaxMSP

Gen~ dealing with Multislder list input

October 24, 2012 | 9:48 am

Hi, I wondered if there is a way of gen~ handling unpacked multislider lists greater than 16.

This would be a handy param feature as the use of Multislider is quite limited at present with only a max of 16 "ins"

Maybe there is a way but could not figure this out,

many thanks for any help, P


October 17, 2013 | 2:58 pm

bump,
Is there a way gen~ can hanlde lists? not really right?
I mean it would be quite convenient not to have to unpack it outside, create a lot of inlets etc..
all the best


October 18, 2013 | 12:29 pm

Correct. There is no list input or parameter for gen~ currently.

However, note that parameters are not limited as are inlets. So you could define as many parameters you want–e.g. foo1 foo2 foo3 foo4, etc. and use multislider -> iter -> sprintf foo$i1 $f2 -> gen~ or something like that.

You could alternatively work around this with clever use of a buffer~ object-i.e. write the values into a buffer (one per sample) and read them from within gen~.


October 20, 2013 | 2:07 am

@Joshua

yes, buffer~, buffer Gen and poke~ is how I worked around it in the end. It is actually quite an elegant method.


October 20, 2013 | 7:40 am

note that one advantage of parameter over buffer is that the parameter is updated only once per vector when gen~ optimize the code. Buffer is updated every samples.

<code>

– Pasted Max Patch, click to expand. –

</code>


October 20, 2013 | 3:39 pm

Emmanuel, Nice!. Quite a CPU difference, which additively will make a difference. I will try this tomorrow.

best P


October 20, 2013 | 3:56 pm

Only problem Emmanuel’s method is that I am dealing with 1000+ multisliders. The buffer, poke method is so simple, worth the CPU overhead. Both elegant in the right context. Thanks again.


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