Does this external exist?

May 10, 2006 at 9:43am

Does this external exist?

Hi everybody. I’ve searched high and low, and maybe it’s my noobieness that’s ruining things, but here’s what I’m looking for:

Basically I “need” a [route] that has inlets to set the arguments.

If this doesn’t exist I would be very happy if someone could point me in the right direction for building a patcher that does this.

Thanks heaps.
Andreas.

#25899
May 10, 2006 at 10:13am

hello

did you try using scripting? it should be useful to create route
instances dinamically.

to learn about this topic, check firstly the help file for
thispatcher. more information about scripting is provided in
max45TutorialsAndTopics (tutorials 46 and 47)

jmb

#76816
May 10, 2006 at 10:20am

like this ? (quick and dirty)

max v2;
#N vpatcher 643 209 1364 580;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 157 54 56 196617 bla2 test2;
#P message 91 57 57 196617 out2 test2;
#P newex 77 155 36 196617 zl reg;
#P newex 89 112 27 196617 t b l;
#P newex 156 294 41 196617 print 2;
#P newex 102 294 41 196617 print 1;
#P message 29 58 57 196617 out1 test1;
#P newex 117 246 322 196617 route 1 2 3 4 5 6 7 8;
#P newex 117 217 38 196617 zl join;
#P newex 87 90 51 196617 zl slice 1;
#P newex 94 187 36 196617 zl sub;
#P message 407 92 98 196617 out1 bla2 out3 out4;
#P message 298 93 99 196617 out1 out2 out3 out4;
#P comment 300 71 222 196617 list of outputs (like setting the outlets
of route);
#P comment 17 38 100 196617 input examples;
#P connect 11 0 12 0;
#P connect 14 0 5 0;
#P connect 13 0 5 0;
#P connect 8 0 5 0;
#P connect 5 0 11 0;
#P connect 12 0 4 0;
#P connect 7 0 9 0;
#P connect 3 0 12 1;
#P connect 2 0 12 1;
#P connect 4 0 6 0;
#P connect 6 0 7 0;
#P connect 11 1 4 1;
#P connect 5 1 6 1;
#P connect 7 1 10 0;
#P pop;

——————————————-

Joost Rekveld
———– http://www.lumen.nu/rekveld

——————————————-

“The mystery of the world is the visible, not the invisible”
(Oscar Wilde)

——————————————-

#76817
May 10, 2006 at 10:28am

#76818
May 10, 2006 at 1:06pm

Joost Rekveld wrote:
> like this ? (quick and dirty)
>

Beautiful solution, Joost. It works for me, and fiddling about with it just now has helped me to understand how to create variations of it, using a few different methods as well. My humble little tweak is at the end of this message.
Thanks for the quickness and dirt :)

Roald, I tried figuring it out with tap.route but no luck – tap.route.help confused me to no end. I would love to find out how to get multiple outputs from it.

Andreas

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 459 98 50 9109513 loadbang;
#P window linecount 2;
#P newex 390 327 52 9109513 print assign_8;
#P newex 348 327 41 9109513 print assign_7;
#P newex 306 327 41 9109513 print assign_6;
#P newex 264 327 41 9109513 print assign_5;
#P newex 222 327 41 9109513 print assign_4;
#P newex 180 327 41 9109513 print assign_3;
#P window linecount 1;
#P newex 145 69 40 9109513 ctlin;
#P number 407 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 371 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 335 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 299 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 263 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 227 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 191 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 155 131 35 9 1 127 67 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 198 157 161 9109513 pak 0 0 0 0 0 0 0 0;
#P newex 79 218 36 9109513 zl reg;
#P newex 89 191 27 9109513 t b l;
#P window linecount 2;
#P newex 138 327 41 9109513 print assign_2;
#P newex 96 327 41 9109513 print assign_1;
#P window linecount 1;
#P newex 117 298 322 9109513 route 1 2 3 4 5 6 7 8;
#P newex 117 270 38 9109513 zl join;
#P newex 94 244 36 9109513 zl sub;
#P comment 221 97 100 9109513 Use these controllers:;
#P fasten 6 0 7 0 94 214 84 214;
#P fasten 7 0 1 0 84 241 99 241;
#P fasten 1 0 2 0 99 269;
#P fasten 17 1 6 0 165 98 94 98;
#P fasten 8 0 7 1 203 213 110 213;
#P fasten 24 0 9 0 464 125 160 125;
#P fasten 24 0 10 0 464 125 196 125;
#P fasten 24 0 11 0 464 125 232 125;
#P fasten 24 0 12 0 464 125 268 125;
#P fasten 24 0 13 0 464 125 304 125;
#P fasten 24 0 14 0 464 125 340 125;
#P fasten 24 0 15 0 464 125 376 125;
#P fasten 24 0 16 0 464 125 412 125;
#P connect 17 0 2 1;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 6 1 1 1;
#P connect 3 1 5 0;
#P connect 3 2 18 0;
#P connect 3 3 19 0;
#P fasten 9 0 8 0 160 151 203 151;
#P connect 3 4 20 0;
#P fasten 10 0 8 1 196 151 224 151;
#P fasten 11 0 8 2 232 151 245 151;
#P connect 3 5 21 0;
#P fasten 12 0 8 3 268 151 266 151;
#P fasten 13 0 8 4 304 151 287 151;
#P connect 3 6 22 0;
#P fasten 14 0 8 5 340 151 308 151;
#P fasten 15 0 8 6 376 151 329 151;
#P connect 3 7 23 0;
#P fasten 16 0 8 7 412 151 350 151;
#P window clipboard copycount 25;

#76819
May 11, 2006 at 8:52am

Andreas Wetterberg wrote:
> My humble little tweak is at the end of this message. Thanks for the
> quickness and dirt :)

For this specific task you could also use a gate instead of route:

Stefan

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 303 240 23 196617 t 0;
#P newex 103 194 210 196617 b 9;
#P newex 278 240 23 196617 t 8;
#P newex 278 219 23 196617 ==;
#P newex 253 240 23 196617 t 7;
#P newex 253 219 23 196617 ==;
#P newex 228 240 23 196617 t 6;
#P newex 228 219 23 196617 ==;
#P newex 203 240 23 196617 t 5;
#P newex 203 219 23 196617 ==;
#P newex 178 240 23 196617 t 4;
#P newex 178 219 23 196617 ==;
#P newex 153 240 23 196617 t 3;
#P newex 153 219 23 196617 ==;
#P newex 128 240 23 196617 t 2;
#P newex 128 219 23 196617 ==;
#P newex 103 240 23 196617 t 1;
#P newex 103 219 23 196617 ==;
#P newex 129 123 50 196617 loadbang;
#P window linecount 2;
#P newex 460 292 47 196617 print assign_8;
#P newex 409 292 50 196617 print assign_7;
#P newex 358 292 50 196617 print assign_6;
#P newex 307 292 50 196617 print assign_5;
#P newex 256 292 50 196617 print assign_4;
#P newex 205 292 50 196617 print assign_3;
#P window linecount 1;
#P newex 88 156 40 196617 ctlin;
#P number 381 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 345 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 309 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 273 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 237 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 201 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 165 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 129 157 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P newex 154 292 50 196617 print assign_2;
#P newex 103 292 50 196617 print assign_1;
#P window linecount 1;
#P newex 103 267 367 196617 gate 8;
#P comment 195 123 114 196617 Use these controllers:;
#P fasten 19 0 4 0 134 151 134 151;
#P fasten 19 0 5 0 134 151 170 151;
#P fasten 19 0 6 0 134 151 206 151;
#P fasten 19 0 7 0 134 151 242 151;
#P fasten 19 0 8 0 134 151 278 151;
#P fasten 19 0 9 0 134 151 314 151;
#P fasten 19 0 10 0 134 151 350 151;
#P fasten 19 0 11 0 134 151 386 151;
#P fasten 12 0 1 1 93 180 465 180;
#P connect 12 1 36 0;
#P connect 11 0 34 1;
#P connect 10 0 32 1;
#P connect 9 0 30 1;
#P connect 8 0 28 1;
#P connect 7 0 26 1;
#P connect 6 0 24 1;
#P connect 5 0 22 1;
#P connect 4 0 20 1;
#P connect 36 8 37 0;
#P connect 36 7 34 0;
#P connect 36 6 32 0;
#P connect 36 5 30 0;
#P connect 36 4 28 0;
#P connect 36 3 26 0;
#P connect 36 2 24 0;
#P connect 36 1 22 0;
#P connect 36 0 20 0;
#P fasten 37 0 1 0 308 262 108 262;
#P fasten 35 0 1 0 283 262 108 262;
#P fasten 33 0 1 0 258 262 108 262;
#P fasten 31 0 1 0 233 262 108 262;
#P fasten 29 0 1 0 208 262 108 262;
#P fasten 27 0 1 0 183 262 108 262;
#P fasten 25 0 1 0 158 262 108 262;
#P fasten 23 0 1 0 133 262 108 262;
#P connect 34 0 35 0;
#P connect 32 0 33 0;
#P connect 30 0 31 0;
#P connect 28 0 29 0;
#P connect 26 0 27 0;
#P connect 24 0 25 0;
#P connect 22 0 23 0;
#P fasten 21 0 1 0 108 262 108 262;
#P connect 20 0 21 0;
#P connect 1 0 2 0;
#P connect 1 1 3 0;
#P connect 1 2 13 0;
#P connect 1 3 14 0;
#P connect 1 4 15 0;
#P connect 1 5 16 0;
#P connect 1 6 17 0;
#P connect 1 7 18 0;
#P window clipboard copycount 38;


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

#76820
May 11, 2006 at 9:23am

Quote: Stefan Tiedje wrote on Thu, 11 May 2006 10:52
—————————————————-
> Andreas Wetterberg wrote:
> > My humble little tweak is at the end of this message. Thanks for the
> > quickness and dirt :)
>
> For this specific task you could also use a gate instead of route:

Indeed I can – I am tweaking away at that right now. Your patch appears to be letting all controllers through output 1-

#76821
May 11, 2006 at 5:59pm

#76822
May 11, 2006 at 6:30pm

save as ‘dynamicroute’ the second inlet sets the route arguments.

max v2;
#N vpatcher 385 409 985 809;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 211 149 330 196617 prepend script new dynamicroute newex 43
167 111 196617 route;
#P window linecount 2;
#P message 196 101 312 196617 script connect inlet1 0 dynamicroute 0
, script connect dynamicroute 0 outlet1 0 , script connect
dynamicroute 1 outlet2 0;
#P window linecount 1;
#P newex 196 80 40 196617 t b s b;
#P message 226 186 277 196617 script delete dynamicroute;
#N thispatcher;
#Q end;
#P newobj 196 204 69 196617 thispatcher;
#P inlet 196 41 15 0;
#P objectname inlet1[2];
#P outlet 43 200 15 0;
#P objectname outlet1;
#P inlet 43 145 15 0;
#P objectname inlet1;
#N comlet;
#P outlet 144 200 15 0;
#P objectname outlet2;
#P newex 43 167 111 196617 route;
#P objectname dynamicroute;
#P connect 2 0 0 0;
#P connect 0 0 3 0;
#P connect 0 1 1 0;
#P connect 4 0 7 0;
#P connect 7 0 8 0;
#P fasten 6 0 5 0 231 203 201 203;
#P connect 8 0 5 0;
#P fasten 9 0 5 0 216 203 201 203;
#P connect 7 1 9 0;
#P connect 7 2 6 0;
#P pop;

v a d e //

http://www.vade.info
abstrakt.vade.info

#76823
May 11, 2006 at 9:25pm

Andreas Wetterberg wrote:
> Indeed I can – I am tweaking away at that right now. Your patch
> appears to be letting all controllers through output 1-

Yes, if you set all to one the last one will be choosen, if you want
multiple outputs for the same controler you could modifiy it with 8
gates instead of one.
The route solution does the same by the way…

Stefan


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

#76824
May 11, 2006 at 10:20pm

Quote: Stefan Tiedje wrote on Thu, 11 May 2006 23:25
—————————————————-
> Andreas Wetterberg wrote:
> > Indeed I can – I am tweaking away at that right now. Your patch
> > appears to be letting all controllers through output 1-
>
> Yes, if you set all to one the last one will be choosen, if you want
> multiple outputs for the same controler you could modifiy it with 8
> gates instead of one.
> The route solution does the same by the way…
What I meant to say, Stefan, is that no matter what I set the 8 number boxes to, the patch outputs any midi controller you send into it to print 1. Am I not using it correctly?
thanks,
andreas (studying the midi-routing stuff in msp tut. 18)

#76825
May 12, 2006 at 10:36am

Andreas Wetterberg wrote:
> What I meant to say, Stefan, is that no matter what I set the 8
> number boxes to, the patch outputs any midi controller you send into
> it to print 1. Am I not using it correctly?

Yeah, there is a little bug in it, you need 8 [sel 1] between the [==]
and the triggers of course. Left as an exercise to you… (otherwise it
will trigger the last trigger always, no matter if there’s a match or
not…)

Stefan


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

#76826
May 12, 2006 at 10:37am

hello

actually, i was thinking on something like this :

max v2;
#N vpatcher 487 115 1250 1455;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 63 130 53 196617 r routexr;
#P objectname routexr1;
#P window linecount 2;
#P message 273 97 68 196617 ; routexr rana;
#P message 216 97 56 196617 ; routexr la;
#P message 133 97 82 196617 ; routexr cantaba;
#P message 64 97 68 196617 ; routexr cucu;
#P window linecount 1;
#P newex 495 130 74 196617 r routexdrvrr;
#P objectname routexr1[1];
#P window linecount 2;
#P message 334 68 73 196617 ; routexr pilota;
#P message 266 68 67 196617 ; routexr pota;
#P message 200 68 65 196617 ; routexr pita;
#P message 132 68 67 196617 ; routexr peta;
#P message 64 68 67 196617 ; routexr pata;
#P message 405 39 76 196617 ; routexr turuta;
#P message 338 39 66 196617 ; routexr tuta;
#P message 271 39 66 196617 ; routexr tota;
#P message 206 39 64 196617 ; routexr tita;
#P message 131 39 74 196617 ; routexr tetina;
#P window linecount 1;
#N thispatcher;
#Q end;
#P newobj 495 169 61 196617 thispatcher;
#P window linecount 2;
#P message 64 39 66 196617 ; routexr tata;
#P message 495 68 180 196617 ; routexdrvrr pata peta pita pota pilota;
#P message 495 97 160 196617 ; routexdrvrr cucu cantaba la rana;
#P message 495 39 208 196617 ; routexdrvrr tata tetina tita tota tuta turuta;
#P window linecount 1;
#N vpatcher 85 303 1386 922;
#P origin -121 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 912 159 33 196617 v val;
#P newex 912 182 27 196617 + 1;
#P button 882 109 15 0;
#P newex 954 159 33 196617 v val;
#P outlet 984 584 15 0;
#P newex 319 449 49 196617 pipe 100;
#P window linecount 1;
#P newex 467 398 27 196617 – 1;
#P newex 882 278 40 196617 uzi;
#P window linecount 0;
#P newex 467 450 92 196617 expr $i1*17 + 63;
#P window linecount 1;
#P newex 954 182 27 196617 + 1;
#P newex 330 479 228 196617 sprintf script new bangi%d button %d 216 15 0;
#P newex 116 479 213 196617 sprintf script connect routex1 %d bangi%d 0;
#P window linecount 0;
#P newex 882 85 34 196617 zl len;
#P newex 954 130 66 196617 pattr guarda;
#X prestore 1 0 4;
#P objectname guarda;
#P newex 984 226 27 196617 – 1;
#P newex 954 206 40 196617 uzi;
#P message 559 480 175 196617 script connect routexr1 0 routex1 0;
#P window linecount 1;
#P newex 984 448 141 196617 sprintf script delete bangi%d;
#P button 1126 96 15 0;
#P message 736 448 246 196617 script new routex1 newex 63 151 92 196617 route;
#P newex 736 480 528 196617 zl join;
#P message 1126 448 109 196617 script delete routex1;
#P inlet 1254 28 15 0;
#P connect 17 0 11 0;
#P connect 16 0 17 0;
#P connect 17 0 11 1;
#P connect 16 0 12 0;
#P connect 15 2 16 0;
#P connect 16 0 14 0;
#P connect 14 0 12 1;
#P connect 15 1 6 0;
#P connect 15 1 3 0;
#P connect 3 0 2 0;
#P connect 0 0 10 0;
#P connect 10 0 20 0;
#P connect 20 0 15 0;
#P connect 9 0 22 0;
#P connect 20 0 22 0;
#P connect 22 0 21 0;
#P connect 21 0 15 1;
#P connect 4 0 9 0;
#P connect 10 0 9 0;
#P connect 4 0 19 0;
#P connect 9 0 19 0;
#P connect 19 0 13 0;
#P connect 13 0 7 0;
#P connect 7 2 8 0;
#P connect 8 0 5 0;
#P connect 12 0 18 0;
#P connect 11 0 18 0;
#P connect 6 0 18 0;
#P connect 2 0 18 0;
#P connect 5 0 18 0;
#P connect 1 0 18 0;
#P connect 0 0 4 0;
#P connect 4 0 1 0;
#P connect 0 0 2 1;
#P pop;
#P newobj 495 150 69 196617 p routexdrvr;
#P objectname routexdrvr;
#P button 63 216 15 0;
#P objectname bangi0;
#P button 80 216 15 0;
#P objectname bangi1;
#P button 97 216 15 0;
#P objectname bangi2;
#P button 114 216 15 0;
#P objectname bangi3;
#P button 131 216 15 0;
#P objectname bangi4;
#P window linecount 2;
#P newex 63 151 92 196617 route cucu cantaba la rana;
#P objectname routex1;
#P connect 27 0 0 0;
#P connect 0 0 5 0;
#P connect 0 1 4 0;
#P connect 0 2 3 0;
#P connect 0 3 2 0;
#P connect 0 4 1 0;
#P connect 22 0 6 0;
#P connect 6 0 11 0;
#P pop;

strangely, when pasting this text into a new empty patcher, objects instantiate out of screen. some scrolling is needed.

jmb

#76827
May 12, 2006 at 10:41am

Stefan Tiedje wrote:
> Yeah, there is a little bug in it, you need 8 [sel 1] between the [==]
> and the triggers of course. Left as an exercise to you… (otherwise it
> will trigger the last trigger always, no matter if there’s a match or
> not…)

and the corrected patch…

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 313 218 28 196617 sel 1;
#P newex 283 218 28 196617 sel 1;
#P newex 253 218 28 196617 sel 1;
#P newex 223 218 28 196617 sel 1;
#P newex 193 218 28 196617 sel 1;
#P newex 163 218 28 196617 sel 1;
#P newex 133 218 28 196617 sel 1;
#P newex 103 218 28 196617 sel 1;
#P newex 103 172 250 196617 t i i i i i i i i 0;
#P newex 313 240 23 196617 t 8;
#P newex 313 197 23 196617 ==;
#P newex 283 240 23 196617 t 7;
#P newex 283 197 23 196617 ==;
#P newex 253 240 23 196617 t 6;
#P newex 253 197 23 196617 ==;
#P newex 223 240 23 196617 t 5;
#P newex 223 197 23 196617 ==;
#P newex 193 240 23 196617 t 4;
#P newex 193 197 23 196617 ==;
#P newex 163 240 23 196617 t 3;
#P newex 163 197 23 196617 ==;
#P newex 133 240 23 196617 t 2;
#P newex 133 197 23 196617 ==;
#P newex 103 240 23 196617 t 1;
#P newex 103 197 23 196617 ==;
#P newex 129 101 50 196617 loadbang;
#P window linecount 2;
#P newex 460 292 47 196617 print assign_8;
#P newex 409 292 50 196617 print assign_7;
#P newex 358 292 50 196617 print assign_6;
#P newex 307 292 50 196617 print assign_5;
#P newex 256 292 50 196617 print assign_4;
#P newex 205 292 50 196617 print assign_3;
#P window linecount 1;
#P newex 88 134 40 196617 ctlin;
#P number 381 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 345 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 309 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 273 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 237 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 201 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 165 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 129 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P newex 154 292 50 196617 print assign_2;
#P newex 103 292 50 196617 print assign_1;
#P window linecount 1;
#P newex 103 267 367 196617 gate 8;
#P comment 190 102 114 196617 Use these controllers:;
#P connect 12 1 36 0;
#P fasten 12 0 1 1 93 162 465 162;
#P connect 36 0 20 0;
#P connect 36 1 22 0;
#P connect 36 2 24 0;
#P connect 36 3 26 0;
#P connect 36 4 28 0;
#P connect 36 5 30 0;
#P connect 36 6 32 0;
#P connect 36 7 34 0;
#P fasten 36 8 1 0 348 262 108 262;
#P connect 44 0 35 0;
#P connect 43 0 33 0;
#P connect 42 0 31 0;
#P connect 41 0 29 0;
#P connect 40 0 27 0;
#P connect 39 0 25 0;
#P connect 38 0 23 0;
#P connect 34 0 44 0;
#P connect 32 0 43 0;
#P connect 30 0 42 0;
#P connect 28 0 41 0;
#P connect 26 0 40 0;
#P connect 24 0 39 0;
#P connect 22 0 38 0;
#P connect 37 0 21 0;
#P connect 20 0 37 0;
#P fasten 19 0 4 0 134 129 134 129;
#P fasten 19 0 5 0 134 129 170 129;
#P fasten 19 0 6 0 134 129 206 129;
#P fasten 19 0 7 0 134 129 242 129;
#P fasten 19 0 8 0 134 129 278 129;
#P fasten 19 0 9 0 134 129 314 129;
#P fasten 19 0 10 0 134 129 350 129;
#P fasten 19 0 11 0 134 129 386 129;
#P connect 1 7 18 0;
#P connect 1 6 17 0;
#P connect 1 5 16 0;
#P connect 1 4 15 0;
#P connect 1 3 14 0;
#P connect 1 2 13 0;
#P connect 1 1 3 0;
#P connect 1 0 2 0;
#P fasten 21 0 1 0 108 262 108 262;
#P fasten 23 0 1 0 138 262 108 262;
#P fasten 25 0 1 0 168 262 108 262;
#P fasten 27 0 1 0 198 262 108 262;
#P fasten 29 0 1 0 228 262 108 262;
#P fasten 31 0 1 0 258 262 108 262;
#P fasten 33 0 1 0 288 262 108 262;
#P fasten 35 0 1 0 318 262 108 262;
#P connect 4 0 20 1;
#P connect 5 0 22 1;
#P connect 6 0 24 1;
#P connect 7 0 26 1;
#P connect 8 0 28 1;
#P connect 9 0 30 1;
#P connect 10 0 32 1;
#P connect 11 0 34 1;
#P window clipboard copycount 45;


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

#76828
Jun 25, 2006 at 10:55am

Hey guys,

Totally new at max here, but i think i found a bug in Stefan’s corrected patch.
When you try to assign the same cc to 2 or more triggers, it will only output the cc value to 1 trigger.

Is there some rule somewhere which says you cant use the same value twice?

Cheers

-Bjorn

#76829
Jun 26, 2006 at 8:21pm

Bjorn Vayner wrote:
> Hey guys,
>
> Totally new at max here, but i think i found a bug in Stefan’s
> corrected patch. When you try to assign the same cc to 2 or more
> triggers, it will only output the cc value to 1 trigger.
>
> Is there some rule somewhere which says you cant use the same value
> twice?

Yes, in this case, as one gate object can only activate one output at a
time. Solution: use 8 gates….
But there is also the set message to ctlin, that way you can use just a
number of ctlins and change their controller number on the fly…

#P window setfont “Sans Serif” 9.;
#P number 820 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 769 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 718 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 667 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 616 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 565 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 514 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 463 212 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P newex 820 233 50 196617 prepend set;
#P newex 769 233 50 196617 prepend set;
#P newex 718 233 50 196617 prepend set;
#P newex 667 233 50 196617 prepend set;
#P newex 616 233 50 196617 prepend set;
#P newex 565 233 50 196617 prepend set;
#P newex 514 233 50 196617 prepend set;
#P newex 463 233 50 196617 prepend set;
#P window linecount 1;
#P newex 820 268 50 196617 ctlin 8 1;
#P newex 769 268 50 196617 ctlin 7 1;
#P newex 718 268 50 196617 ctlin 6 1;
#P newex 667 268 50 196617 ctlin 5 1;
#P newex 616 268 50 196617 ctlin 4 1;
#P newex 565 268 50 196617 ctlin 3 1;
#P newex 514 268 50 196617 ctlin 2 1;
#P newex 463 268 50 196617 ctlin 1 1;
#P window linecount 2;
#P newex 820 292 47 196617 print assign_8;
#P newex 769 292 50 196617 print assign_7;
#P newex 718 292 50 196617 print assign_6;
#P newex 667 292 50 196617 print assign_5;
#P newex 616 292 50 196617 print assign_4;
#P newex 565 292 50 196617 print assign_3;
#P newex 514 292 50 196617 print assign_2;
#P newex 463 292 50 196617 print assign_1;
#P window linecount 1;
#P newex 258 221 28 196617 gate;
#P newex 228 221 28 196617 gate;
#P newex 198 221 28 196617 gate;
#P newex 168 221 28 196617 gate;
#P newex 138 221 28 196617 gate;
#P newex 108 221 28 196617 gate;
#P newex 78 221 28 196617 gate;
#P newex 48 221 28 196617 gate;
#P newex 48 172 220 196617 t i i i i i i i i;
#P newex 258 197 23 196617 ==;
#P newex 228 197 23 196617 ==;
#P newex 198 197 23 196617 ==;
#P newex 168 197 23 196617 ==;
#P newex 138 197 23 196617 ==;
#P newex 108 197 23 196617 ==;
#P newex 78 197 23 196617 ==;
#P newex 48 197 23 196617 ==;
#P newex 74 101 50 196617 loadbang;
#P window linecount 2;
#P newex 405 292 47 196617 print assign_8;
#P newex 354 292 50 196617 print assign_7;
#P newex 303 292 50 196617 print assign_6;
#P newex 252 292 50 196617 print assign_5;
#P newex 201 292 50 196617 print assign_4;
#P newex 150 292 50 196617 print assign_3;
#P window linecount 1;
#P newex 33 134 40 196617 ctlin;
#P number 326 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 290 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 254 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 218 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 182 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 146 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 110 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 74 135 35 9 1 127 67 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P newex 99 292 50 196617 print assign_2;
#P newex 48 292 50 196617 print assign_1;
#P window linecount 1;
#P comment 135 102 114 196617 Use these controllers:;
#P connect 67 0 59 0;
#P connect 66 0 58 0;
#P connect 65 0 57 0;
#P connect 64 0 56 0;
#P connect 63 0 55 0;
#P connect 62 0 54 0;
#P connect 61 0 53 0;
#P connect 60 0 52 0;
#P connect 51 0 43 0;
#P connect 50 0 42 0;
#P connect 49 0 41 0;
#P connect 48 0 40 0;
#P connect 47 0 39 0;
#P connect 46 0 38 0;
#P connect 59 0 51 0;
#P connect 58 0 50 0;
#P connect 57 0 49 0;
#P connect 56 0 48 0;
#P connect 55 0 47 0;
#P connect 54 0 46 0;
#P connect 53 0 45 0;
#P connect 52 0 44 0;
#P connect 45 0 37 0;
#P connect 44 0 36 0;
#P connect 35 0 17 0;
#P connect 34 0 16 0;
#P connect 33 0 15 0;
#P connect 32 0 14 0;
#P connect 31 0 13 0;
#P connect 30 0 12 0;
#P connect 29 0 2 0;
#P connect 28 0 1 0;
#P connect 11 1 27 0;
#P connect 27 0 19 0;
#P connect 27 1 20 0;
#P connect 27 2 21 0;
#P connect 27 3 22 0;
#P connect 27 4 23 0;
#P connect 27 5 24 0;
#P connect 27 6 25 0;
#P connect 27 7 26 0;
#P fasten 11 0 28 1 38 217 71 217;
#P fasten 11 0 29 1 38 217 101 217;
#P fasten 11 0 30 1 38 217 131 217;
#P fasten 11 0 31 1 38 217 161 217;
#P fasten 11 0 32 1 38 217 191 217;
#P fasten 11 0 33 1 38 217 221 217;
#P fasten 11 0 34 1 38 217 251 217;
#P fasten 11 0 35 1 38 217 281 217;
#P connect 26 0 35 0;
#P connect 25 0 34 0;
#P connect 24 0 33 0;
#P connect 23 0 32 0;
#P connect 22 0 31 0;
#P connect 21 0 30 0;
#P connect 20 0 29 0;
#P connect 19 0 28 0;
#P connect 10 0 26 1;
#P connect 9 0 25 1;
#P connect 8 0 24 1;
#P connect 7 0 23 1;
#P connect 6 0 22 1;
#P connect 5 0 21 1;
#P connect 4 0 20 1;
#P connect 3 0 19 1;
#P fasten 18 0 10 0 79 129 331 129;
#P fasten 18 0 9 0 79 129 295 129;
#P fasten 18 0 8 0 79 129 259 129;
#P fasten 18 0 7 0 79 129 223 129;
#P fasten 18 0 6 0 79 129 187 129;
#P fasten 18 0 5 0 79 129 151 129;
#P fasten 18 0 4 0 79 129 115 129;
#P fasten 18 0 3 0 79 129 79 129;
#P window clipboard copycount 68;


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

#76830
Jun 27, 2006 at 1:59pm

Ah I see. Thanks Stefan.
This will really come in handy.

Cheers

/Bjorn

#76831

You must be logged in to reply to this topic.