Forums > MaxMSP

Multi version of rslider

October 17, 2007 | 3:18 pm

Hey Gang,

Is there any sort of a "multi" version of rslider. What I’m looking for s a slider that can have several ranges or bands that when you change the upper edge of one band, it is also changing the lower edge of the next band. You see these used a lot in multi-band compressors, but I’m looking for just the slider part of that. Are there any 3rd party creations that will do that? Thanks so much.


October 17, 2007 | 10:03 pm

something like this ?

#P window setfont "Sans Serif" 9.;
#P number 202 386 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 396 120 27 196617 + 1;
#P newex 426 120 27 196617 * 2;
#P newex 353 141 95 196617 pak setminmax 0 0;
#P user multiSlider 211 186 16 167 185. 368. 1 2665 47 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 number 165 386 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 295 119 27 196617 + 1;
#P newex 325 119 27 196617 * 2;
#P newex 252 140 95 196617 pak setminmax 0 0;
#P user multiSlider 190 186 16 167 93. 184. 1 2665 47 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 number 129 386 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 93 386 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 194 118 27 196617 + 1;
#P number 158 70 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 121 70 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 224 118 27 196617 * 2;
#P newex 151 139 95 196617 pak setminmax 0 0;
#P newex 79 110 95 196617 pak setminmax 0 0;
#P user multiSlider 170 186 16 167 47. 92. 1 2665 47 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 150 186 16 167 38. 46. 1 2665 47 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 connect 12 0 11 2;
#P connect 12 0 18 0;
#P connect 12 0 17 0;
#P connect 4 0 3 2;
#P connect 4 0 13 0;
#P connect 4 0 12 0;
#P connect 15 0 19 0;
#P connect 16 0 15 0;
#P connect 17 0 16 2;
#P connect 18 0 16 1;
#P connect 13 0 11 1;
#P connect 11 0 10 0;
#P connect 10 0 14 0;
#P connect 6 0 2 2;
#P connect 6 0 7 0;
#P connect 6 0 4 0;
#P connect 1 0 9 0;
#P connect 3 0 1 0;
#P connect 7 0 3 1;
#P connect 5 0 2 1;
#P connect 2 0 0 0;
#P connect 0 0 8 0;
#P window clipboard copycount 20;

Quote: bkshepard wrote on Wed, 17 October 2007 17:18
—————————————————-
> Hey Gang,
>
> Is there any sort of a "multi" version of rslider. What I’m looking for s a slider that can have several ranges or bands that when you change the upper edge of one band, it is also changing the lower edge of the next band. You see these used a lot in multi-band compressors, but I’m looking for just the slider part of that. Are there any 3rd party creations that will do that? Thanks so much.
—————————————————-


October 18, 2007 | 4:04 am

Hey karrrlo,

Thanks for the reply, what I really have in mind is something like this. This patch is a non-working, graphical representation only.

max v2;
#N vpatcher 10 59 705 351;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 546 183 51 196617 Top Value;
#P comment 402 183 123 196617 Zone 3/4 Transition Value;
#P comment 264 183 122 196617 Zone 2/3 Transition Value;
#P comment 135 183 123 196617 Zone 1/2 Transition Value;
#P number 556 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 444 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 306 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 177 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 61 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 12.;
#P comment 519 101 52 196620 Zone 4;
#P comment 391 101 52 196620 Zone 3;
#P comment 253 101 52 196620 Zone 2;
#P user panel 502 128 92 41;
#X brgb 25 255 29;
#X frgb 0 0 0;
#X border 3;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 338 128 164 41;
#X brgb 255 133 254;
#X frgb 0 0 0;
#X border 3;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 219 128 119 41;
#X brgb 255 250 125;
#X frgb 0 0 0;
#X border 3;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 62 128 157 41;
#X brgb 255 125 125;
#X frgb 0 0 0;
#X border 3;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 119 101 52 196620 Zone 1;
#P window setfont "Sans Serif" 9.;
#P comment 48 183 66 196617 Bottom Value;
#P window setfont "Sans Serif" 12.;
#P window linecount 3;
#P comment 16 28 634 196620 This is a purely graphical–nonfunctional–mockup of what I have in mind. The idea is that you would drag the heavy bar between two zones to set the top range of one and the bottom range of the next zone. It could be useful for creating a nice , intuitive GUI for velocity , pitch , amplitude , etc. , zone splits.;
#P pop;


October 18, 2007 | 7:49 pm

i may offer you [110.OLS] which was made for these situatins.


October 21, 2007 | 6:53 pm

Hi Roman,

Thanks for the lead. I’ve been looking at your 110.OLS object, but am a bit confused as to how you hook it up. Do you connect it to rsliders? Thanks again!


October 22, 2007 | 4:10 am

Quote: bkshepard wrote on Sun, 21 October 2007 12:53
—————————————————-
> Hi Roman,
>
> Thanks for the lead. I’ve been looking at your 110.OLS object, but am a bit confused as to how you hook it up. Do you connect it to rsliders? Thanks again!
>
—————————————————-

for rslider you would need one for the max and one for the min value.
i can make you a patch tomorrow or so if you dont get it to work.


October 22, 2007 | 7:11 pm

Quote: Roman Thilenius wrote on Sun, 21 October 2007 21:10
—————————————————-

> i can make you a patch tomorrow or so if you dont get it to work.
—————————————————-

Thanks for the suggestion and for the offer. Let me take a shot at it over the next couple of days and see where I end up. If I’m stumped, I’ll give you a shout. Thanks, again!


October 22, 2007 | 7:42 pm

You might look at waveform~ too, not for audio, but for its slider / range selection (better functionality and looks better than rslider). Use the right selection values to set the left range of the next slider, etc. You could also use the Link Out (rightmost outlet) to send data down the pipe to the next one. A little math and you’re there.

Well, you should also use waveform~ for audio, if you haven’t before. ;) it rocks!

–CJ


October 22, 2007 | 7:57 pm

Hey thanks CJ. I have used waveform~ for audio, but didn’t think about just using the range functions. I’ll give that a shot.


October 25, 2007 | 12:24 am

Here’s a tool using the waveform~ for selecting a range. It spits out values from 0 to 999, then I have it scaled to 1 – 64. Scale however you need. It’s intended to be a bpatch – in – box.

You do need to load a dummy wave file to get it working, unless someone on the list knows how to get around this?? Just make a wave file that’s 1000 ms. with no signal, then once that’s loaded you’ve got your range bar (which looks and functions much better than the standard range bar IMO). The "move" feature is especially nice. So, this range can be used for anything, not just playback position.

–CJ

———————–

#P hidden outlet 504 387 15 0;
#P window setfont "Sans Serif" 14.;
#P hidden number 504 358 53 14 0 0 5 139 255 255 255 0 0 0 222 222 222 0 0 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P hidden newex 504 326 115 9109514 scale 0 999 1 64;
#P window setfont "Sans Serif" 14.;
#P hidden number 377 358 53 14 0 0 5 139 255 255 255 0 0 0 222 222 222 0 0 0;
#P window setfont "Sans Serif" 10.;
#P hidden newex 377 326 115 9109514 scale 0 999 1 64;
#P user com 88 173 88 9109514 5;
#K set 0 29541 27749 25460 8289 27756;
#K end;
#P window setfont Tahoma 20.;
#P comment 576 216 23 14483476 ?;
#B color 14;
#P objectname label[11];
#P user panel 569 216 30 27;
#X brgb 124 124 124;
#X frgb 0 0 0;
#X border 1;
#X rounded 5;
#X shadow 2;
#X done;
#P hidden outlet 376 387 15 0;
#P window setfont "Sans Serif" 9.;
#P message 284 130 95 9109513 brgb 60 90 100;
#P message 284 109 95 9109513 brgb 30 30 35;
#P message 181 130 95 9109513 brgb 60 90 100;
#P message 181 109 95 9109513 brgb 30 30 35;
#P window setfont "Sans Serif" 10.;
#P newex 36 38 79 9109514 loadbang;
#P window setfont "Sans Serif" 9.;
#P hidden message 461 198 50 9109513 select;
#P hidden message 389 198 50 9109513 select;
#P window setfont Tahoma 14.;
#P hidden number 438 218 53 14 0 0 5 221 255 255 255 0 0 0 222 222 222 0 0 0;
#P hidden number 371 218 53 14 0 0 5 221 255 255 255 0 0 0 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P hidden message 272 151 84 9109513 mode loop;
#P hidden message 181 151 84 9109513 mode select;
#P window setfont Tahoma 12.;
#P comment 294 220 58 14483468 Move;
#B color 14;
#P objectname label[14];
#P user panel 273 217 80 23;
#X brgb 60 90 100;
#X frgb 0 0 0;
#X border 1;
#X rounded 1;
#X shadow 2;
#X done;
#P user ubutton 271 216 83 27 0 2;
#P comment 200 220 58 14483468 Select;
#B color 14;
#P objectname label[13];
#P user panel 183 217 80 23;
#X brgb 30 30 35;
#X frgb 0 0 0;
#X border 1;
#X rounded 1;
#X shadow 2;
#X done;
#P user ubutton 181 216 83 27 0 2;
#P window setfont "Sans Serif" 10.;
#P newex 83 107 53 9109514 t b b;
#P window setfont Tahoma 12.;
#P comment 99 220 81 14483468 Full range;
#B color 14;
#P objectname label[12];
#P window setfont "Sans Serif" 9.;
#P message 82 153 51 9109513 0 -1 0 -1;
#P hidden message 449 285 35 9109513 set $1;
#P hidden message 380 285 35 9109513 set $1;
#P message 33 62 211 9109513 replace buffer_plain_1000_ms.aiff;
#P newex 35 82 122 9109513 buffer~ rangebar 1000.;
#P message 57 132 78 9109513 set rangebar 1;
#P user waveform~ 91 245 508 35 139 9;
#W mode loop;
#W mouseoutput continuous;
#W clipdraw 1;
#W unit ms;
#W grid 0.;
#W ticks 0;
#W labels 0;
#W vlabels 0;
#W vticks 0;
#W bpm 120. 4.;
#W frgb 0 0 0;
#W brgb 0 0 0;
#W rgb2 22 188 210;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 169 165 207;
#W rgb6 108 108 108;
#W rgb7 255 255 255;
#P user panel 92 217 80 23;
#X brgb 60 90 100;
#X frgb 0 0 0;
#X border 1;
#X rounded 1;
#X shadow 2;
#X done;
#P user ubutton 96 216 73 27 0 2;
#P user hint 565 213 605 244 "Select range — Also use shift — Move X and Y directions" 1000 100 0 65535 65535 52428 14 139 0 1 0 0 0;
#P window setfont "Sans Serif" 10.;
#P user com 130 43 256 9109514 17;
#K set 0 26990 29541 29300 8313 28533 29216 31333 29295 25956 8289 30052 26991 8294 26988 25888 26725 29285;
#K end;
#P hidden connect 4 3 9 0;
#P hidden connect 4 3 36 0;
#P hidden connect 4 2 34 0;
#P hidden connect 4 2 8 0;
#P hidden connect 37 0 38 0;
#P hidden connect 36 0 37 0;
#P hidden connect 22 0 4 3;
#P hidden connect 22 1 24 0;
#P hidden connect 9 0 22 0;
#P hidden connect 23 0 22 0;
#P hidden connect 21 1 23 0;
#P hidden connect 34 0 35 0;
#P hidden connect 35 0 30 0;
#P hidden connect 8 0 21 0;
#P hidden connect 24 0 21 0;
#P hidden connect 21 0 4 2;
#P hidden connect 16 1 20 0;
#P hidden connect 16 1 28 0;
#P hidden connect 16 1 29 0;
#P hidden connect 29 0 17 0;
#P hidden connect 26 0 17 0;
#P hidden connect 28 0 14 0;
#P hidden connect 27 0 14 0;
#P hidden connect 13 1 19 0;
#P hidden connect 13 1 27 0;
#P hidden connect 13 1 26 0;
#P hidden connect 20 0 4 0;
#P hidden connect 5 0 4 0;
#P hidden connect 10 0 4 0;
#P hidden connect 19 0 4 0;
#P hidden connect 6 1 12 0;
#P hidden connect 2 1 10 0;
#P hidden connect 12 0 10 0;
#P hidden connect 12 1 5 0;
#P hidden connect 7 0 6 0;
#P hidden connect 25 0 7 0;
#P window clipboard copycount 39;


October 25, 2007 | 3:25 am

duh, peek~ or poke~ to write values in….! sheesh, so obvious I missed it.


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