Multislider Morphing

Dec 14, 2006 at 3:35pm

Multislider Morphing

#29225
Dec 14, 2006 at 3:51pm

maybe with the interpolation mode of pattrstorage.
no ?

i do it with it…

#90801
Dec 14, 2006 at 3:55pm

I am sweating on pattrstorage as we speak.

maby you have a small example to share with me?

I am a little confused about the bindings, as I have two multisliders.

simon

#90802
Dec 14, 2006 at 4:14pm

Something like this?

#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 573 294 363 196617 – you could also experiment with the
“interp” message (documented in the Reference and in the help file)
to change the interpolation style;
#P window linecount 1;
#P comment 573 232 363 196617 – scroll the floating point number box
to a value between 1 and 2;
#P comment 573 175 363 196617 – set the sliders a different way
“store 2″;
#P comment 573 118 363 196617 – set up the sliders , “store 1″;
#P flonum 339 39 35 9 1. 2. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 291 40 43 196617 store 2;
#P message 246 40 43 196617 store 1;
#P newex 219 74 89 196617 pattrstorage pets;
#X client_rect 20 74 660 314;
#X storage_rect 0 0 640 240;
#P objectname pets;
#P user multiSlider 351 197 158 83 0. 127. 16 2665 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 objectname multiSlider;
#P user multiSlider 130 197 158 83 0. 127. 16 2665 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 objectname multiSlider[1];
#P newex 319 169 75 196617 pattr doghater;
#X prestore 16 0 108 96 83 78 74 67 64 60 56 53 49 44 38 31 22 11;
#P objectname doghater;
#P newex 98 169 74 196617 pattr catlover;
#X prestore 16 0 8 8 13 16 19 22 25 29 33 39 45 51 57 63 80 127;
#P objectname catlover;
#P window linecount 2;
#P comment 573 61 363 196617 This is one possible arrangement. Other
arrangements include use of the autopattr object , instead of pattr
, or pattr objects with the “bindto” message.;
#P connect 8 0 5 0;
#P connect 7 0 5 0;
#P connect 6 0 5 0;
#P connect 1 1 3 0;
#P connect 2 1 4 0;
#P window clipboard copycount 13;

Am 14.12.2006 um 16:55 schrieb Simon Halsberghe:

>
> I am sweating on pattrstorage as we speak.
>
> maby you have a small example to share with me?
>
> I am a little confused about the bindings, as I have two multisliders.
>
>
> simon

#90803
Dec 14, 2006 at 4:23pm

On 14 Dec 2006, at 16:35, Simon Halsberghe wrote:

> Hi List,
>
> I’ve got a question which might have an obvious answer (I hope so).
>
> I have two multisliders, each with a very large number of sliders,
> 200. The first one is used to set the desired destination for the
> second. When you bang the second multislider takes whatever time
> you choose to get from it’s current settings to the desired one the
> user set in the first mslider.
>
> I could do this very easily by unpacking the list, where it not
> that the list is so big. The amount of space and time needed to
> connect every unpack output to a line and back to a pack …

instead of interpolating every slider value individually, i would
suggest crossfading the actual multislider state as a list with the
desired state, something like this:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P hidden newex 358 64 66 196617 loadmess 20;
#N vpatcher 10 59 610 459;
#P window setfont “Sans Serif” 9.;
#P newex 60 129 21 196617 t 0;
#P newex 60 151 67 196617 zl group 255;
#P newex 60 106 76 196617 uzi 20;
#P inlet 60 86 15 0;
#P outlet 60 190 15 0;
#P connect 1 0 2 0;
#P connect 2 0 4 0;
#P connect 2 1 3 0;
#P connect 4 0 3 0;
#P connect 3 0 0 0;
#P pop;
#P newobj 536 137 33 196617 p init;
#P number 359 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 269 168 43 196617 size $1;
#P newex 98 244 48 196617 loadbang;
#P button 185 54 27 0;
#P number 230 63 51 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 200 88 40 196617 i 1000;
#P newex 536 166 36 196617 zl reg;
#P message 200 112 47 196617 0 , 1. $1;
#P newex 200 135 40 196617 line 0.;
#P user multiSlider 316 417 266 68 0. 127. 20 2665 47 0 0 2 0 0 1;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 objectname mslid[3];
#P newex 467 297 79 196617 vexpr $f1*$f2;
#P flonum 200 170 50 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 316 349 78 196617 vexpr $f1+$f2;
#P message 98 267 70 196617 scalarmode 1;
#P newex 200 297 79 196617 vexpr $f1*$f2;
#P user multiSlider 269 187 266 68 0. 127. 20 2665 47 0 0 2 0 0 1;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 objectname mslid[1];
#P newex 467 266 30 196617 !- 1.;
#P comment 334 101 100 196617 number of sliders;
#P comment 231 47 100 196617 interp time;
#P connect 16 0 5 0;
#P connect 15 0 13 0;
#P connect 13 0 11 0;
#P connect 11 0 10 0;
#P fasten 10 0 7 0 205 167 205 167;
#P fasten 5 0 4 0 103 292 205 292;
#P connect 7 0 4 0;
#P connect 14 0 13 1;
#P connect 18 0 17 0;
#P connect 17 0 3 0;
#P connect 3 0 4 1;
#P fasten 4 0 6 0 205 331 321 331;
#P connect 6 0 9 0;
#P hidden connect 20 0 18 0;
#P fasten 8 0 6 1 472 331 389 331;
#P fasten 7 0 2 0 205 261 472 261;
#P fasten 5 0 8 0 103 292 472 292;
#P connect 2 0 8 0;
#P connect 18 0 19 0;
#P fasten 10 1 12 0 235 159 541 159;
#P connect 19 0 12 0;
#P connect 12 0 8 1;
#P fasten 6 0 12 1 321 380 567 380;
#P window clipboard copycount 21;

#90804
Dec 14, 2006 at 4:28pm

Thank you very much for this!

But there is still the problem of ‘forwarding’ the stored values.
One mslider should set the destination and the second should go to it, over time, using interpolation.

Is there a way to ‘unbind’ or ‘rebind’ the stored values? So one mslider is used to store a value. And when requested, those values are sent to the second mslider.

thank you for the replies so far.

simon

#90805
Dec 14, 2006 at 4:32pm

I was fast to reply on Bernstein.

But vb made exactly what I was looking for!

And no pattr. Seems I will learn about it more some other time.

thank all of you very much.

simon

#90806
Dec 14, 2006 at 4:56pm

You may also like this…
(note that vline uses Peter Elsea’s Lbuf)

vline abstraction
#N comlet bang when interpolation is finished;
#P outlet 460 365 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 356 134 27 196617 Lbuf;
#P newex 154 67 50 196617 route set;
#N comlet time grain in ms;
#P inlet 730 136 15 0;
#P message 540 115 21 196617 $2;
#P newex 541 136 173 196617 if $f1 != 0 then $f1 else 33.366699;
#P message 266 64 21 196617 $1;
#P newex 266 82 143 196617 if $i1 != 0 then $i1 else 5000;
#P newex 444 30 45 196617 loadbang;
#N comlet interpolated list;
#P outlet 238 361 15 0;
#P newex 94 191 27 196617 int;
#N comlet list , set list to initialize;
#P inlet 154 23 15 0;
#N comlet interpolation time (ms);
#P inlet 491 117 15 0;
#P message 94 218 49 196617 0. , 1. $1;
#P newex 95 288 43 196617 line 50.;
#P message 407 117 69 196617 scalarmode 1;
#P newex 238 331 129 196617 vexpr $f3+($f2-$f3)*$f1;
#P button 94 152 15 0;
#P connect 13 0 12 0;
#P fasten 9 0 11 0 449 54 271 54;
#P fasten 9 0 2 0 449 110 412 110;
#P connect 9 0 13 0;
#P fasten 3 1 17 0 133 313 465 313;
#P fasten 15 0 16 1 159 110 378 110;
#P connect 1 0 8 0;
#P fasten 1 0 16 1 243 355 406 355 406 106 378 106;
#P connect 16 0 1 2;
#P connect 15 1 0 0;
#P connect 15 1 1 1;
#P connect 15 1 16 0;
#P connect 11 0 10 0;
#P fasten 2 0 1 0 412 320 243 320;
#P fasten 3 0 1 0 100 320 243 320;
#P connect 6 0 15 0;
#P fasten 12 0 3 2 546 275 132 275;
#P fasten 14 0 3 2 735 282 132 282;
#P fasten 5 0 7 1 496 174 116 174;
#P fasten 10 0 7 1 271 168 116 168;
#P connect 4 0 3 0;
#P connect 7 0 4 0;
#P connect 0 0 7 0;
#P window clipboard copycount 18;

vline.help
#P button 140 259 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 162 127 23 196617 64.;
#P newex 161 176 61 196617 prepend set;
#P newex 161 151 50 196617 thresh 5.;
#P button 161 79 15 0;
#P newex 161 101 40 196617 uzi 11;
#P comment 296 196 100 196617 output: a vector;
#P user multiSlider 77 313 213 93 0. 127. 11 2921 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 newex 77 230 73 196617 vline 2000 50;
#P newex 77 191 50 196617 thresh 5.;
#P button 77 84 15 0;
#P newex 77 106 40 196617 uzi 11;
#P newex 77 131 63 196617 random 128;
#P window setfont “Sans Serif” 24.;
#P comment 281 72 68 196632 vline;
#P window setfont “Sans Serif” 9.;
#P comment 280 107 130 196617 author: Gary Lee Nelson;
#P comment 280 127 131 196617 a vector version of line.;
#P comment 296 141 100 196617 input 1: a vector;
#P comment 296 155 100 196617 args and inlets;
#P comment 313 169 100 196617 slew time in ms;
#P comment 313 183 100 196617 time grain in ms;
#P window linecount 3;
#P comment 221 112 39 196617 set initial values;
#P window linecount 1;
#P comment 164 260 100 196617 bang when finished;
#P connect 16 0 20 0;
#P connect 18 0 19 0;
#P connect 20 0 18 0;
#P connect 17 0 16 0;
#P connect 13 1 21 0;
#P fasten 13 0 14 0 82 258 82 258;
#P connect 12 0 13 0;
#P connect 19 0 13 0;
#P connect 9 0 12 0;
#P connect 10 0 9 0;
#P connect 11 0 10 0;
#P window clipboard copycount 22;

On 12/14/06 11:24 AM, “vb” wrote:

>
> On 14 Dec 2006, at 16:35, Simon Halsberghe wrote:
>
>> Hi List,
>>
>> I’ve got a question which might have an obvious answer (I hope so).
>>
>> I have two multisliders, each with a very large number of sliders,
>> 200. The first one is used to set the desired destination for the
>> second. When you bang the second multislider takes whatever time
>> you choose to get from it’s current settings to the desired one the
>> user set in the first mslider.
>>
>> I could do this very easily by unpacking the list, where it not
>> that the list is so big. The amount of space and time needed to
>> connect every unpack output to a line and back to a pack …
>
> instead of interpolating every slider value individually, i would
> suggest crossfading the actual multislider state as a list with the
> desired state, something like this:
>
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P hidden newex 358 64 66 196617 loadmess 20;
> #N vpatcher 10 59 610 459;
> #P window setfont “Sans Serif” 9.;
> #P newex 60 129 21 196617 t 0;
> #P newex 60 151 67 196617 zl group 255;
> #P newex 60 106 76 196617 uzi 20;
> #P inlet 60 86 15 0;
> #P outlet 60 190 15 0;
> #P connect 1 0 2 0;
> #P connect 2 0 4 0;
> #P connect 2 1 3 0;
> #P connect 4 0 3 0;
> #P connect 3 0 0 0;
> #P pop;
> #P newobj 536 137 33 196617 p init;
> #P number 359 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 269 168 43 196617 size $1;
> #P newex 98 244 48 196617 loadbang;
> #P button 185 54 27 0;
> #P number 230 63 51 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 200 88 40 196617 i 1000;
> #P newex 536 166 36 196617 zl reg;
> #P message 200 112 47 196617 0 , 1. $1;
> #P newex 200 135 40 196617 line 0.;
> #P user multiSlider 316 417 266 68 0. 127. 20 2665 47 0 0 2 0 0 1;
> #M frgb 0 0 0;
> #M brgb 255 255 255;
> #M rgb2 127 127 127;
> #M rgb3 0 0 0;
> #M rgb4 37 52 91;
> #M rgb5 74 105 182;
> #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 objectname mslid[3];
> #P newex 467 297 79 196617 vexpr $f1*$f2;
> #P flonum 200 170 50 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 316 349 78 196617 vexpr $f1+$f2;
> #P message 98 267 70 196617 scalarmode 1;
> #P newex 200 297 79 196617 vexpr $f1*$f2;
> #P user multiSlider 269 187 266 68 0. 127. 20 2665 47 0 0 2 0 0 1;
> #M frgb 0 0 0;
> #M brgb 255 255 255;
> #M rgb2 127 127 127;
> #M rgb3 0 0 0;
> #M rgb4 37 52 91;
> #M rgb5 74 105 182;
> #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 objectname mslid[1];
> #P newex 467 266 30 196617 !- 1.;
> #P comment 334 101 100 196617 number of sliders;
> #P comment 231 47 100 196617 interp time;
> #P connect 16 0 5 0;
> #P connect 15 0 13 0;
> #P connect 13 0 11 0;
> #P connect 11 0 10 0;
> #P fasten 10 0 7 0 205 167 205 167;
> #P fasten 5 0 4 0 103 292 205 292;
> #P connect 7 0 4 0;
> #P connect 14 0 13 1;
> #P connect 18 0 17 0;
> #P connect 17 0 3 0;
> #P connect 3 0 4 1;
> #P fasten 4 0 6 0 205 331 321 331;
> #P connect 6 0 9 0;
> #P hidden connect 20 0 18 0;
> #P fasten 8 0 6 1 472 331 389 331;
> #P fasten 7 0 2 0 205 261 472 261;
> #P fasten 5 0 8 0 103 292 472 292;
> #P connect 2 0 8 0;
> #P connect 18 0 19 0;
> #P fasten 10 1 12 0 235 159 541 159;
> #P connect 19 0 12 0;
> #P connect 12 0 8 1;
> #P fasten 6 0 12 1 321 380 567 380;
> #P window clipboard copycount 21;
>

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#90807
Dec 14, 2006 at 4:57pm

maybe i’m late and wrong…

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 344 115 27 196617 t f i;
#P user multiSlider 613 274 326 94 -1. 1. 200 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 117 171 11;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 flonum 300 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 576 79 14 196617 1;
#P message 363 226 14 196617 0;
#P button 353 35 15 0;
#P newex 576 251 47 196617 gate 1 0;
#P message 507 177 33 196617 clear;
#P newex 300 75 27 196617 + 1.;
#P user multiSlider 613 153 326 94 -1. 1. 200 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 185 244 136;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 objectname multislder-prev;
#P newex 300 138 54 196617 pack 0. 1.;
#P newex 300 94 54 196617 bucket 2;
#P message 300 157 68 196617 $1 , $2 1000;
#P toggle 300 58 15 0;
#P newex 300 174 40 196617 line 1.;
#P message 427 177 78 196617 storagewindow;
#P number 377 159 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 377 177 49 196617 store $1;
#P newex 377 199 67 196617 pattrstorage;
#X client_rect 140 605 780 845;
#X storage_rect 271 593 911 833;
#P objectname u001000011;
#P newex 398 340 53 196617 autopattr;
#X prestore multislder-prev 200 0 0.826087 0.826087 0.826087 0.826087 0.826087 -0.521739 -0.517391 -0.513043 -0.508696 -0.504348 -0.5 -0.495652 -0.491304 -0.486957 -0.482609 -0.478261 -0.475296 -0.472332 -0.469368 -0.466403 -0.463439 -0.460474 -0.45751 -0.454545 -0.451581 -0.448617 -0.445652 -0.442688 -0.439723 -0.436759 -0.433794 0.608696 0.595538 0.58238 0.569222 0.556064 0.542906 0.529748 0.51659 0.503433;
#X prestore multislder-prev 200 40 0.490275 0.477117 0.463959 0.450801 0.437643 0.424485 0.411327 0.398169 0.385011 0.371854 0.358696 0.345538 0.33238 0.319222 0.306064 0.292906 0.279748 0.26659 0.253432 0.240275 0.227117 0.213959 0.200801 0.187643 0.174485 0.161327 0.148169 0.135011 0.121854 0.108696 0.088898 0.069099 0.049301 0.029503 0.009705 -0.010093 -0.029891 -0.049689 -0.069488 -0.089286;
#X prestore multislder-prev 200 80 -0.109084 -0.128882 -0.14868 -0.168478 -0.188276 -0.208075 -0.227873 -0.247671 -0.267469 -0.287267 -0.307065 -0.326863 -0.346661 -0.36646 -0.386258 -0.406056 -0.425854 -0.445652 -0.46545 -0.485248 -0.505047 -0.524845 -0.544643 -0.564441 -0.584239 -0.604037 -0.623835 -0.643634 -0.663432 -0.68323 -0.703028 -0.722826 -0.742624 -0.762422 -0.78222 -0.802019 -0.821817 -0.841615 -0.861413 -0.881211;
#X prestore multislder-prev 200 120 -0.901009 -0.920807 -0.940606 -0.960404 -0.980202 -1. -1. -1. -1. -1. -1. -1. -1. 0.233494 0.248524 0.263553 0.278583 0.293612 0.308642 0.323671 0.338701 0.353731 0.36876 0.38379 0.398819 0.413849 0.428878 0.443908 0.458937 0.473967 0.488996 0.504026 0.519055 0.534085 0.549114 0.564144 0.579173 0.594203 0.609232 0.624262;
#X prestore multislder-prev 200 160 0.639291 0.654321 0.669351 0.68438 0.69941 0.714439 0.729469 0.744498 0.759528 0.774557 0.789587 0.804616 0.819646 0.834675 0.849705 0.864734 0.879764 0.894793 0.909823 0.924852 0.939882 0.954911 0.969941 0.98497 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. -0.76087 -0.76087 -0.76087 -0.73913;
#P objectname u091000008;
#P connect 14 0 6 0;
#P connect 14 0 16 0;
#P connect 8 0 9 0;
#P connect 19 0 9 1;
#P connect 19 1 3 0;
#P connect 8 1 19 0;
#P connect 5 0 17 0;
#P fasten 5 0 1 0 305 195 382 195;
#P connect 3 0 2 0;
#P fasten 13 0 18 0 581 270 618 270;
#P connect 9 0 7 0;
#P connect 16 0 13 0;
#P connect 15 0 13 0;
#P connect 5 1 15 0;
#P connect 10 0 13 1;
#P fasten 12 0 1 0 512 195 382 195;
#P connect 11 0 8 0;
#P connect 6 0 11 0;
#P connect 7 0 5 0;
#P fasten 4 0 1 0 432 195 382 195;
#P connect 2 0 1 0;
#P window clipboard copycount 20;

#90808
Dec 14, 2006 at 7:18pm

funny no ?
in fact you don’t need the second multislider.

:)

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 377 154 58 196617 0. init first;
#P button 348 152 27 10;
#P message 162 244 83 196617 active number 0;
#P newex 37 127 276 196617 t b b;
#P newex 340 207 27 196617 t b i;
#P comment 377 190 101 196617 1. number of sliders;
#P number 340 190 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P message 357 226 43 196617 size $1;
#P newex 197 83 40 196617 uzi 4;
#P newex 37 108 55 196617 r preview;
#P newex 672 338 55 196617 s preview;
#P button 672 281 56 1;
#P comment 672 263 42 196617 3. send;
#P newex 250 58 48 196617 loadbang;
#P newex 71 206 43 196617 t f i;
#P user multiSlider 340 382 326 94 -1. 1. 37 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 117 171 11;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 flonum 27 296 27 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 303 321 14 196617 1;
#P message 57 321 14 196617 0;
#P newex 303 344 47 196617 gate 1 0;
#P message 250 270 33 196617 clear;
#P newex 27 168 27 196617 + 1.;
#P user multiSlider 340 246 326 94 -1. 1. 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 185 244 136;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 objectname multislider-prev;
#P newex 27 231 54 196617 pack 1. 2.;
#P newex 27 187 54 196617 bucket 2;
#P message 27 250 68 196617 $1 , $2 1000;
#P toggle 27 151 15 0;
#P newex 27 267 40 196617 line 1.;
#P message 170 270 78 196617 storagewindow;
#P number 104 240 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 104 270 49 196617 store $1;
#P newex 104 292 131 196617 pattrstorage @savemode 0;
#X active number 0;
#X priority multislider-prev 1;
#X client_rect 1 531 932 659;
#X storage_rect 3 589 932 717;
#P objectname u905000119;
#P newex 182 311 53 196617 autopattr;
#X prestore multislider-prev 1 0 -1.;
#X prestore number 1 0 1;
#P objectname u126000120;
#P comment 672 246 59 196617 2. preview;
#P fasten 30 0 7 0 42 147 32 147;
#P fasten 25 0 7 0 202 104 32 104;
#P connect 7 0 12 0;
#P connect 12 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 8 0;
#P connect 8 0 6 0;
#P connect 6 0 17 0;
#P connect 24 0 30 0;
#P connect 6 1 15 0;
#P connect 9 1 19 0;
#P connect 19 0 10 1;
#P connect 29 0 4 0;
#P connect 19 1 4 0;
#P connect 4 0 3 0;
#P fasten 6 0 2 0 32 288 109 288;
#P fasten 13 0 2 0 255 288 109 288;
#P fasten 5 0 2 0 175 288 109 288;
#P fasten 3 0 2 0 109 288 109 288;
#P fasten 31 0 2 0 167 288 109 288;
#P fasten 20 0 31 0 255 239 167 239;
#P fasten 20 0 5 0 255 262 175 262;
#P fasten 20 0 25 0 255 79 202 79;
#P fasten 32 0 20 0 353 182 345 182 345 53 255 53;
#P connect 20 0 13 0;
#P connect 30 1 16 0;
#P fasten 15 0 14 0 62 339 308 339;
#P connect 16 0 14 0;
#P fasten 20 0 27 0 255 79 345 79;
#P connect 27 0 29 0;
#P fasten 26 0 11 0 362 243 345 243;
#P connect 11 0 14 1;
#P fasten 14 0 18 0 308 363 345 363;
#P connect 29 1 26 0;
#P connect 22 0 23 0;
#P window clipboard copycount 34;

#90809
Dec 15, 2006 at 5:32am

Sounds like you got some good responses so far. Also check out the multislider objects by Peter Eijes, he uses javascript to do just about anything to two lists (interp, operations, etc.), without the 256-limit of vexpr. His objects are fantastic! (Can’t find the link right now again though… anyone know??)

It’s a little bit of work to install his objects but well worth it! His multi-function breakpoint editor (with zoom) is also great.

–CJ

#90810
Dec 15, 2006 at 7:45am

..i think you are talking about Emmanuel Jourdan objcts…

http://www.e–j.com/sphpblog/

#90811
Dec 15, 2006 at 9:06am

those are very nice objects….the breakpoint editor is essential

#90812
Dec 15, 2006 at 11:02am

> those are very nice objects….the breakpoint editor is essential

Thanks Guys,

Peter Eijes

#90813
Dec 16, 2006 at 11:01am

Simon Halsberghe wrote:
> I have two multisliders, each with a very large number of sliders,
> 200. The first one is used to set the desired destination for the
> second. When you bang the second multislider takes whatever time you
> choose to get from it’s current settings to the desired one the user
> set in the first mslider.

you can use vexpr to do that, limited to 256 elements:

#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P newex 69 131 67 196617 loadmess scalarmode 1;
#P user hslider 38 57 18 128 128 1 0 0;
#P window linecount 1;
#P newex 38 88 83 196617 scale 0 127 0. 1.;
#P user multiSlider 38 241 186 62 -1. 1. 256 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 user multiSlider 349 106 186 62 -1. 1. 300 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 user multiSlider 159 106 186 62 -1. 1. 300 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#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 newex 38 195 161 196617 vexpr $f2 + $f1 * ($f3 – $f2);
#P connect 4 0 0 0;
#P connect 6 0 0 0;
#P connect 5 0 4 0;
#P connect 0 0 3 0;
#P connect 2 0 0 2;
#P connect 1 0 0 1;
#P window clipboard copycount 7;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#90814

You must be logged in to reply to this topic.