ciao to all and newbie question

Mar 30, 2006 at 1:14pm

ciao to all and newbie question

ciao to all forum members

i’m davide from torino,italy.i started few months ago learning and working with maxmsp.

i’ve a question about a patch i’m trying to make: one main slider that can control other sliders. what’s drivin’ me crazy is try to make the secondary sliders not to jump to the actual value of the main slider if this is not inside a certain range.
i’ve tried different approach, with split, > e < , && and abs but always wath i get is that if i move the main slider to fast the secondary lose sync and don't follow the main one.
next step is implement a two dimensional controller (picture-based object) and make the controller jumpless in two dimension…
i’m sure that’s not to difficult and i’m missing something.. anyone can help me??

this is one of the test patch that i made:

max v2;
#N vpatcher 19 74 619 474;
#P window setfont “Sans Serif” 9.;
#P newex 153 157 27 196617 i;
#P button 136 323 15 0;
#P newex 136 255 23 196617 abs;
#P newex 136 221 27 196617 -;
#P user hslider 153 187 18 128 128 1 0 0;
#P user hslider 136 66 18 128 128 1 0 0;
#P newex 136 283 54 196617 split 0 50;
#P connect 1 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 0 0;
#P connect 0 0 5 0;
#P fasten 5 0 6 0 141 356 104 356 104 141 158 141;
#P connect 6 0 2 0;
#P connect 2 0 3 1;
#P connect 1 0 6 1;
#P pop;

thanks in advance

davide
torino,italy

#25146
Mar 30, 2006 at 1:39pm

#73690
Mar 30, 2006 at 2:49pm

Hi

I made a little abstraction to do this:

max v2;
#N vpatcher 729 397 936 610;
#P inlet 74 57 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 16 107 14 196617 0;
#P newex 33 57 27 196617 t i i;
#P toggle 101 128 15 0;
#P newex 101 81 30 196617 == 0;
#P outlet 16 175 15 0;
#P newex 16 140 27 196617 gate;
#P inlet 121 36 15 0;
#P inlet 33 36 15 0;
#P comment 49 37 45 196617 fader in;
#P comment 137 37 46 196617 old data;
#P comment 32 176 44 196617 data out;
#P window linecount 2;
#P comment 89 52 28 196617 close gate;
#P connect 12 0 11 0;
#P connect 11 0 6 0;
#P connect 8 0 6 0;
#P connect 6 0 7 0;
#P connect 4 0 10 0;
#P connect 10 1 6 1;
#P connect 10 0 8 0;
#P connect 8 0 9 0;
#P connect 11 0 9 0;
#P connect 5 0 8 1;
#P fasten 6 0 8 1 21 165 154 165 154 73 126 73;
#P pop;

Save that as something memorable, I use “fader_find”, and see if it
helps. I put one of these before each control that I want to change,
then I use a “bank select” value for each group of faders I am
controlling; then I use a ‘select’ object to determine which bank is
being used – the output of that goes in the second inlet, so the gate
is turned off for all but the selected bank. In practice, the third
inlet is not necessary except in certain special circumstances, so
ignore it.

best

L

Lawrence Casserley – lawrence@lcasserley.co.uk
Lawrence Electronic Operations – http://www.lcasserley.co.uk
Colourscape Music Festivals – http://www.colourscape.org.uk

#73691

dom
Mar 30, 2006 at 3:22pm

Clunk, Penny has dropped! Thats amazing!! Sorry easily impressed, but
that has solved a huge problem for me!

Thank you so much Lawrence

Dom

ShMech

#73692
Mar 30, 2006 at 3:55pm

thank you for your answers and your patches

i think that my terrrible english had done it again!!! :)

the prblem in my patch is that if i move the secondary slider (say to value 40) and then start playing with the primary one, i don’t want that the secondary slider “jump” to the actual value of the main slider until i’m near to it (value 30 or 50) with the main one, and then the two move together.i can get this funcionality..but as soon as i move the main slider fast, i lost connection with the secondary!!

to Lawrence:
ok, i can’t follow you… ;) the sliders move with the master slider if i reach to their old value, even if i closed the gate… i can’t get it to work!sorry for my dumb questions!!!

i use a simple select object that open a gate for every and let the messages from the main value go to the right receiver.
thanks
davide

#73693
Mar 30, 2006 at 4:54pm

#73694
Mar 30, 2006 at 5:29pm

Hi Davide

Sorry it wasn’t as clear as I thought – here is a demo/help patch –
hope it’s clear now – I’d forgotten a couple of details myself!

max v2;
#N vpatcher 121 396 604 849;
#P window setfont “Sans Serif” 9.;
#P number 193 415 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 118 415 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 144 188 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 61 186 14 196617 0;
#P newex 93 187 38 196617 gate 2;
#P number 253 165 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 194 147 27 196617 + 1;
#P newex 253 188 46 196617 select 2;
#P newex 194 188 46 196617 select 1;
#P toggle 194 102 41 0;
#P slider 121 36 15 128 0 1;
#P slider 193 275 15 128 0 1;
#P slider 118 275 15 128 0 1;
#P newex 193 248 57 196617 fader_find;
#P newex 118 248 57 196617 fader_find;
#P window linecount 2;
#P comment 252 111 100 196617 Select which fader to control;
#P window linecount 1;
#P comment 16 95 100 196617 controlling fader;
#P comment 36 334 70 196617 slave faders;
#P window linecount 6;
#P comment 303 188 100 196617 This allows for multiple banks –
selecting anything other than the current bank will switch off the
gate.;
#P window linecount 5;
#P comment 280 311 100 196617 The feedback path into the right inlet
allows ‘fader_find’ to track position of the slave fader.;
#P connect 13 0 15 0;
#P connect 15 0 5 0;
#P connect 16 0 5 0;
#P connect 5 0 7 0;
#P connect 7 0 18 0;
#P connect 9 0 15 1;
#P connect 11 1 5 1;
#P connect 9 0 17 0;
#P fasten 7 0 5 2 177 410 179 406 179 396 179 342 179 245 169 245;
#P connect 15 1 6 0;
#P connect 16 0 6 0;
#P connect 6 0 8 0;
#P connect 8 0 19 0;
#P connect 10 0 13 0;
#P connect 13 0 11 0;
#P connect 12 1 6 1;
#P fasten 8 0 6 2 256 410 256 244 244 244;
#P connect 13 0 14 0;
#P connect 13 0 12 0;
#P pop;

Lawrence Casserley – lawrence@lcasserley.co.uk
Lawrence Electronic Operations – http://www.lcasserley.co.uk
Colourscape Music Festivals – http://www.colourscape.org.uk

#73695
Apr 3, 2006 at 8:55am

ciao
this is what i used in my patch: i take some pieces from your patches.. thank you..

move the master controller and then switch between the slaves. i think that some of my connection could be patched in a better way.. lot to learn!!
back to work…

ciao
davide

max v2;
#N vpatcher 625 79 1225 479;
#P window setfont “Sans Serif” 9.;
#P newex 29 146 60 196617 loadmess 1;
#P comment 301 219 100 196617 slave 2;
#P user hslider 93 61 73 53 2 1 1 0;
#P newex 247 170 30 196617 pack;
#P newex 239 363 30 196617 pack;
#N vpatcher 541 399 1141 799;
#P outlet 104 284 15 0;
#P inlet 234 94 15 0;
#P toggle 94 170 15 0;
#P window setfont “Sans Serif” 9.;
#P message 115 146 14 196617 0;
#P message 82 147 14 196617 1;
#P newex 117 185 29 196617 gate;
#P newex 68 123 46 196617 select 2;
#N comlet stick;
#P inlet 138 90 15 0;
#N comlet canale;
#P inlet 8 92 15 0;
#N vpatcher 661 353 1261 753;
#P origin 305 0;
#P window setfont “Sans Serif” 9.;
#P message 51 315 14 196617 1;
#P newex 31 277 46 196617 select 1;
#P window linecount 1;
#P message 148 224 14 196617 0;
#P window linecount 0;
#P message 258 220 14 196617 0;
#P newex 339 156 27 196617 &&;
#P button 177 195 15 0;
#P message 170 296 14 196617 0;
#P newex 157 87 53 196617 select $2;
#P toggle 149 322 15 0;
#N comlet sel canale;
#P inlet 156 59 19 0;
#P window linecount 1;
#P message 219 216 14 196617 1;
#P newex 219 170 23 196617 abs;
#P newex 219 148 27 196617 -;
#P newex 219 191 54 196617 split 0 15;
#P newex 146 272 27 196617 &&;
#P newex 150 343 29 196617 gate;
#P message 102 215 14 196617 1;
#P newex 102 169 23 196617 abs;
#P newex 102 147 27 196617 -;
#P newex 102 190 54 196617 split 0 15;
#P newex 219 84 40 196617 unpack;
#P newex 102 86 40 196617 unpack;
#P outlet 148 366 15 0;
#N comlet Stick in;
#P inlet 211 57 18 0;
#N comlet old values;
#P inlet 101 62 19 0;
#P comment 11 37 100 196617 posizione attuale;
#P comment 230 38 100 196617 stick in;
#P window linecount 0;
#P comment 120 35 100 196617 sel canale;
#P connect 13 0 26 0;
#P connect 26 0 27 0;
#P connect 3 0 6 0;
#P connect 7 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 8 0;
#P connect 8 0 11 0;
#P connect 6 0 9 1;
#P connect 25 0 13 0;
#P connect 11 0 13 0;
#P connect 8 1 25 0;
#P connect 12 0 5 0;
#P connect 21 0 19 0;
#P connect 27 0 19 0;
#P connect 19 0 12 0;
#P connect 18 0 20 0;
#P connect 24 0 13 1;
#P connect 17 0 13 1;
#P fasten 4 0 12 1 216 82 192 282;
#P connect 22 0 21 0;
#P connect 20 1 22 0;
#P connect 4 0 7 0;
#P connect 7 1 15 0;
#P connect 15 0 16 0;
#P connect 16 0 14 0;
#P connect 14 0 17 0;
#P connect 6 1 15 1;
#P connect 14 1 24 0;
#P pop;
#P newobj 26 222 61 196617 p evitasalti;
#P connect 8 0 0 0;
#P connect 1 0 0 1;
#P connect 1 0 3 0;
#P connect 4 0 0 2;
#P connect 3 0 5 0;
#P connect 6 0 7 0;
#P connect 5 0 7 0;
#P connect 0 0 9 0;
#P connect 3 1 6 0;
#P connect 7 0 4 0;
#P connect 2 0 4 1;
#P pop;
#P newobj 245 201 46 196617 p canale;
#P user pictslider 226 239 100 100 4 4 4 4 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 2163 0 8323072 127 1. 1.;
#P newex 96 367 30 196617 pack;
#N vpatcher 541 399 1141 799;
#P outlet 104 284 15 0;
#P inlet 234 94 15 0;
#P toggle 94 170 15 0;
#P window setfont “Sans Serif” 9.;
#P message 115 146 14 196617 0;
#P message 82 147 14 196617 1;
#P newex 117 185 29 196617 gate;
#P newex 68 123 46 196617 select 1;
#N comlet stick;
#P inlet 138 90 15 0;
#N comlet canale;
#P inlet 8 92 15 0;
#N vpatcher 661 353 1261 753;
#P origin 305 0;
#P window setfont “Sans Serif” 9.;
#P message 51 315 14 196617 1;
#P newex 31 277 46 196617 select 1;
#P window linecount 1;
#P message 148 224 14 196617 0;
#P window linecount 0;
#P message 258 220 14 196617 0;
#P newex 339 156 27 196617 &&;
#P button 177 195 15 0;
#P message 170 296 14 196617 0;
#P newex 157 87 53 196617 select $2;
#P toggle 149 322 15 0;
#N comlet sel canale;
#P inlet 156 59 19 0;
#P window linecount 1;
#P message 219 216 14 196617 1;
#P newex 219 170 23 196617 abs;
#P newex 219 148 27 196617 -;
#P newex 219 191 54 196617 split 0 15;
#P newex 146 272 27 196617 &&;
#P newex 150 343 29 196617 gate;
#P message 102 215 14 196617 1;
#P newex 102 169 23 196617 abs;
#P newex 102 147 27 196617 -;
#P newex 102 190 54 196617 split 0 15;
#P newex 219 84 40 196617 unpack;
#P newex 102 86 40 196617 unpack;
#P outlet 148 366 15 0;
#N comlet Stick in;
#P inlet 211 57 18 0;
#N comlet old values;
#P inlet 101 62 19 0;
#P comment 11 37 100 196617 posizione attuale;
#P comment 230 38 100 196617 stick in;
#P window linecount 0;
#P comment 120 35 100 196617 sel canale;
#P connect 13 0 26 0;
#P connect 26 0 27 0;
#P connect 3 0 6 0;
#P connect 7 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 8 0;
#P connect 8 0 11 0;
#P connect 6 0 9 1;
#P connect 11 0 13 0;
#P connect 25 0 13 0;
#P connect 8 1 25 0;
#P connect 12 0 5 0;
#P connect 27 0 19 0;
#P connect 21 0 19 0;
#P connect 19 0 12 0;
#P connect 18 0 20 0;
#P connect 17 0 13 1;
#P connect 24 0 13 1;
#P fasten 4 0 12 1 216 82 192 282;
#P connect 22 0 21 0;
#P connect 20 1 22 0;
#P connect 4 0 7 0;
#P connect 7 1 15 0;
#P connect 15 0 16 0;
#P connect 16 0 14 0;
#P connect 14 0 17 0;
#P connect 6 1 15 1;
#P connect 14 1 24 0;
#P pop;
#P newobj 26 222 61 196617 p evitasalti;
#P connect 8 0 0 0;
#P connect 1 0 0 1;
#P connect 1 0 3 0;
#P connect 4 0 0 2;
#P connect 3 0 5 0;
#P connect 5 0 7 0;
#P connect 6 0 7 0;
#P connect 0 0 9 0;
#P connect 3 1 6 0;
#P connect 7 0 4 0;
#P connect 2 0 4 1;
#P pop;
#P newobj 102 205 46 196617 p canale;
#P user pictslider 83 243 100 100 4 4 4 4 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 2163 0 8323072 127 1. 1.;
#P user pictslider 215 36 100 100 4 4 4 4 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 2163 0 8323072 127 1. 1.;
#P comment 79 39 28 196617 1;
#P comment 145 39 28 196617 2;
#P comment 316 43 100 196617 master;
#P comment 19 222 100 196617 slave 1;
#P comment 81 24 100 196617 select destination;
#P connect 7 0 6 0;
#P connect 6 0 8 0;
#P connect 15 0 7 0;
#P connect 13 0 7 0;
#P connect 6 1 8 1;
#P connect 12 0 7 1;
#P connect 8 0 7 2;
#P connect 10 0 9 0;
#P connect 9 0 11 0;
#P connect 13 0 10 0;
#P connect 5 0 12 0;
#P connect 9 1 11 1;
#P connect 12 0 10 1;
#P connect 5 1 12 1;
#P connect 11 0 10 2;
#P pop;

#73696

You must be logged in to reply to this topic.