store (invisible) multislider values

benniy's icon

hello folks,

who's smarter than me and can get this to work...
is it somehow possible to store multislider-values even if these are
currently not present in the object?
suppose it's some zl reg compare etc etc logic, but can't get it to work:

1) set multislider-size to 10
2) edit its values
3) set multislider-size < 10
4) reset multislider-size to 10
5) previously set values are not stored / reset to their value

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

i'd be gracious for any hack!

benniy's icon
Max Patch
Copy patch and select New From Clipboard in Max.

geee... it works, i guess :)
but is there a simpler solution?

LSka's icon
Max Patch
Copy patch and select New From Clipboard in Max.

A matrix-based solution, using a little less objects...

anyway, I don't understand why you need the "pre-fill" part in your patch...It seems to be working to me even without it.

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

Look at this:

benniy's icon

thanks alot lska,

i suppose the jitter version wouldn't work in live or am i mistaking?
and: is the jitter object more heavy on cpu? do you know by any chance?

as for pre-filling, i think this is necessary because the multislider
adapts its count of sliders to the number if list elements it receives.
if the coll only holds lets say 3 elements, the resulting output-list will
never exceed these 3 elements.
i pre-fill the coll because i'm using it in a live-device (and colls aren't stored
there so it has to be done on loadbang)

LSka's icon

The Jitter version should work fine in Max 4 Live. As should the second patch I posted.
Please try the attached M4L device on your setup.
It seems to me that the @embed 1 parameter is working in mine (Max 7, Live 9.1.6)

I also tried starting with an empty coll and a 3-slider multislider, and then growing it to 10, and the the coll kept working as expected.

EDIT:
also check the "initial enabled" attribute in multislider's inspector.

Test.amxd
amxd