using matrixctrl to do something….help

Nov 12, 2007 at 12:18pm

using matrixctrl to do something….help

Helu

I think i want to use a matrix ctrl to choose wichh line values to bang here, or is other object better suited_

If matrixctr is best / what to do

megathanks

max v2;
#N vpatcher 280 54 1002 651;
#P origin 0 19;
#P user matrixctrl 414 198 130 66 MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 130 66 16 16 8 4 16 16 1 1 48 2 5120 0;
#P window setfont “Sans Serif” 9.;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 24.;
#P number 614 124 64 24 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 322 254 15 0;
#P window setfont “Sans Serif” 9.;
#P message 322 277 20 9109513 33;
#P button 345 254 15 0;
#P button 368 254 15 0;
#P message 368 277 20 9109513 57;
#P message 345 277 20 9109513 45;
#P button 391 254 15 0;
#P message 391 277 20 9109513 69;
#P button 406 152 15 0;
#P button 360 152 14 0;
#P newex 473 132 136 9109513 select 114 115 118 99 120 122;
#P newex 473 104 40 9109513 key;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 448 229 92 9240586 midiparse;
#B color 5;
#P window setfont “Sans Serif” 10.;
#P message 406 178 29 9109514 stop;
#P message 360 179 31 9109514 start;
#P message 326 179 30 9109514 read;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 448 199 50 9240586 seq;
#B color 5;
#P button 616 315 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 578 282 48 9109513 stripnote;
#P newex 449 296 27 9109513 mtof;
#P newex 449 261 40 9109513 notein;
#P number 449 333 57 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N comlet freq;
#P outlet 449 353 15 0;
#N comlet bang;
#P outlet 616 335 15 0;
#P fasten 13 5 23 0 216 151 216 253;
#P connect 23 0 22 0;
#P fasten 13 4 21 0 224 151 224 244 350 244;
#P connect 21 0 18 0;
#P connect 13 0 14 0;
#P connect 14 0 9 0;
#P fasten 13 3 20 0 234 151 234 237 373 237;
#P connect 20 0 19 0;
#P fasten 13 2 17 0 240 151 240 231 396 231;
#P connect 17 0 16 0;
#P connect 13 1 15 0;
#P connect 15 0 10 0;
#P connect 10 0 7 0;
#P connect 9 0 7 0;
#P connect 8 0 7 0;
#P connect 7 0 11 0;
#P connect 11 0 4 0;
#P connect 3 0 4 0;
#P connect 22 0 4 0;
#P connect 18 0 4 0;
#P connect 19 0 4 0;
#P connect 16 0 4 0;
#P connect 4 0 2 0;
#P connect 2 0 1 0;
#P connect 12 0 13 0;
#P connect 11 0 5 0;
#P connect 3 0 5 0;
#P connect 12 0 24 0;
#P connect 11 0 5 1;
#P connect 3 1 5 1;
#P connect 23 0 6 0;
#P connect 21 0 6 0;
#P connect 20 0 6 0;
#P connect 17 0 6 0;
#P connect 5 1 6 0;
#P connect 6 0 0 0;
#P pop;
#P newobj 297 97 60 9109513 p;
#P message 560 312 52 9109513 10 , 4 1000;
#P message 539 422 65 9109513 1 200 , 5 1000;
#P flonum 495 500 92 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 15 55 251 362;
#P window setfont “Sans Serif” 9.;
#P flonum 113 84 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 114 50 27 9109513 * 3.;
#P newex 50 209 27 9109513 /~;
#P newex 51 100 27 9109513 *;
#P newex 51 147 36 9109513 cycle~;
#P inlet 114 30 15 0;
#P inlet 51 80 15 0;
#P outlet 50 233 15 0;
#P connect 3 0 5 0;
#P connect 5 0 0 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 7 1 5 1;
#P connect 7 0 4 1;
#P connect 6 0 7 0;
#P connect 2 0 6 0;
#P pop 1;
#P newobj 403 536 60 9109513 p;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P flonum 112 88 51 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 50 213 27 9109513 /~;
#P newex 51 104 27 9109513 *;
#P newex 51 151 36 9109513 cycle~;
#P newex 112 50 27 9109513 * 2.;
#P inlet 112 30 15 0;
#P inlet 51 84 15 0;
#P outlet 50 237 15 0;
#P connect 4 0 6 0;
#P connect 6 0 0 0;
#P connect 1 0 5 0;
#P connect 5 0 4 0;
#P connect 7 1 6 1;
#P connect 7 0 5 1;
#P connect 2 0 3 0;
#P connect 3 0 7 0;
#P pop;
#P newobj 382 506 60 9109513 p;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P flonum 123 50 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 50 175 27 9109513 /~;
#P newex 51 66 27 9109513 *;
#P newex 51 113 36 9109513 cycle~;
#P inlet 123 30 15 0;
#P inlet 51 46 15 0;
#P outlet 50 199 15 0;
#P connect 3 0 5 0;
#P connect 5 0 0 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 6 1 5 1;
#P connect 6 0 4 1;
#P connect 2 0 6 0;
#P pop;
#P newobj 367 485 60 9109513 p;
#P message 623 312 47 9109513 1 , 5 1000;
#P message 500 315 47 9109513 1 , 5 1000;
#P message 449 315 47 9109513 1 , 4 1000;
#P message 347 316 47 9109513 1 , 2 1000;
#P message 397 315 47 9109513 1 , 3 1000;
#P newex 453 465 40 9109513 line 1.;
#P connect 12 1 2 0;
#P connect 0 0 6 1;
#P connect 0 0 7 1;
#P connect 11 0 0 0;
#P connect 10 0 0 0;
#P connect 5 0 0 0;
#P connect 4 0 0 0;
#P connect 3 0 0 0;
#P connect 2 0 0 0;
#P connect 1 0 0 0;
#P connect 0 0 8 1;
#P connect 0 0 9 0;
#P pop;

#34566
Nov 12, 2007 at 12:44pm

Here’s one way, using matrixctrl:

#P button 580 287 15 0;
#P button 536 287 15 0;
#P button 492 287 15 0;
#P button 448 287 15 0;
#P button 404 287 15 0;
#P button 360 287 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 356 213 27 196617 t b l;
#P newex 356 251 270 196617 router 1 6;
#P user matrixctrl 356 106 22 103
MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 22 103 16
16 1 6 16 16 1 1 50 2 5120 0;
#P window linecount 2;
#P message 560 312 52 196617 10 , 4 1000;
#P message 539 422 65 196617 1 200 , 5 1000;
#P flonum 495 500 92 9 0 0 0 3 0 0 0 221 221 221 222
222 222 0 0 0;
#P window linecount 1;
#N vpatcher 15 55 251 362;
#P window setfont “Sans Serif” 9.;
#P flonum 113 84 35 9 0 0 0 3 0 0 0 221 221 221 222
222 222 0 0 0;
#P newex 114 50 27 196617 * 3.;
#P newex 50 209 27 196617 /~;
#P newex 51 100 27 196617 *;
#P newex 51 147 36 196617 cycle~;
#P inlet 114 30 15 0;
#P inlet 51 80 15 0;
#P outlet 50 233 15 0;
#P connect 3 0 5 0;
#P connect 5 0 0 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 7 1 5 1;
#P connect 7 0 4 1;
#P connect 6 0 7 0;
#P connect 2 0 6 0;
#P pop;
#P newobj 403 536 60 196617 p;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P flonum 112 88 51 9 0 0 0 3 0 0 0 221 221 221 222
222 222 0 0 0;
#P newex 50 213 27 196617 /~;
#P newex 51 104 27 196617 *;
#P newex 51 151 36 196617 cycle~;
#P newex 112 50 27 196617 * 2.;
#P inlet 112 30 15 0;
#P inlet 51 84 15 0;
#P outlet 50 237 15 0;
#P connect 4 0 6 0;
#P connect 6 0 0 0;
#P connect 1 0 5 0;
#P connect 5 0 4 0;
#P connect 7 1 6 1;
#P connect 7 0 5 1;
#P connect 2 0 3 0;
#P connect 3 0 7 0;
#P pop;
#P newobj 382 506 60 196617 p;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P flonum 123 50 35 9 0 0 0 3 0 0 0 221 221 221 222
222 222 0 0 0;
#P newex 50 175 27 196617 /~;
#P newex 51 66 27 196617 *;
#P newex 51 113 36 196617 cycle~;
#P inlet 123 30 15 0;
#P inlet 51 46 15 0;
#P outlet 50 199 15 0;
#P connect 3 0 5 0;
#P connect 5 0 0 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 6 1 5 1;
#P connect 6 0 4 1;
#P connect 2 0 6 0;
#P pop;
#P newobj 367 485 60 196617 p;
#P window linecount 2;
#P message 623 312 47 196617 1 , 5 1000;
#P message 500 315 47 196617 1 , 5 1000;
#P message 449 315 47 196617 1 , 4 1000;
#P message 347 316 47 196617 1 , 2 1000;
#P message 397 315 47 196617 1 , 3 1000;
#P window linecount 1;
#P newex 453 465 40 196617 line 1.;
#P connect 20 0 5 0;
#P connect 19 0 11 0;
#P connect 18 0 4 0;
#P connect 17 0 3 0;
#P connect 16 0 1 0;
#P connect 15 0 2 0;
#P connect 13 5 20 0;
#P connect 13 4 19 0;
#P connect 13 3 18 0;
#P connect 13 2 17 0;
#P connect 13 1 16 0;
#P connect 13 0 15 0;
#P fasten 14 1 13 0 378 242 361 242;
#P fasten 14 0 13 1 361 234 621 234;
#P connect 12 0 14 0;
#P connect 0 0 6 1;
#P connect 0 0 7 1;
#P connect 0 0 8 1;
#P connect 0 0 9 0;
#P connect 1 0 0 0;
#P connect 2 0 0 0;
#P connect 3 0 0 0;
#P connect 4 0 0 0;
#P connect 5 0 0 0;
#P connect 10 0 0 0;
#P connect 11 0 0 0;
#P window clipboard copycount 21;

— petterdass wrote:

>
> Helu
>
> I think i want to use a matrix ctrl to choose wichh
> line values to bang here, or is other object better
> suited_
>
> If matrixctr is best / what to do
>
> megathanks
>
>

#116945
Nov 12, 2007 at 2:47pm

If you only need one choice at a time, the Radio Group object will work. Or you can simply use the Buttons themselves. One advantage of matrixctl is the ability to build your own gui. Look at jsui for other gui goodness.

#P user radiogroup 356 149 18 96;
#X size 6;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 5;
#X done;
#P button 580 287 15 0;
#P button 536 287 15 0;
#P button 492 287 15 0;
#P button 448 287 15 0;
#P button 404 287 15 0;
#P button 360 287 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P hidden newex 356 251 92 196617 sel 0 1 2 3 4 5;
#P window linecount 2;
#P message 560 312 52 196617 10 , 4 1000;
#P message 539 422 65 196617 1 200 , 5 1000;
#P flonum 495 500 92 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#N vpatcher 15 55 251 362;
#P window setfont “Sans Serif” 9.;
#P flonum 113 84 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 114 50 27 196617 * 3.;
#P newex 50 209 27 196617 /~;
#P newex 51 100 27 196617 *;
#P newex 51 147 36 196617 cycle~;
#P inlet 114 30 15 0;
#P inlet 51 80 15 0;
#P outlet 50 233 15 0;
#P connect 3 0 5 0;
#P connect 5 0 0 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 7 1 5 1;
#P connect 7 0 4 1;
#P connect 6 0 7 0;
#P connect 2 0 6 0;
#P pop;
#P newobj 403 536 60 196617 p;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P flonum 112 88 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 50 213 27 196617 /~;
#P newex 51 104 27 196617 *;
#P newex 51 151 36 196617 cycle~;
#P newex 112 50 27 196617 * 2.;
#P inlet 112 30 15 0;
#P inlet 51 84 15 0;
#P outlet 50 237 15 0;
#P connect 4 0 6 0;
#P connect 6 0 0 0;
#P connect 1 0 5 0;
#P connect 5 0 4 0;
#P connect 7 1 6 1;
#P connect 7 0 5 1;
#P connect 2 0 3 0;
#P connect 3 0 7 0;
#P pop;
#P newobj 382 506 60 196617 p;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P flonum 123 50 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 50 175 27 196617 /~;
#P newex 51 66 27 196617 *;
#P newex 51 113 36 196617 cycle~;
#P inlet 123 30 15 0;
#P inlet 51 46 15 0;
#P outlet 50 199 15 0;
#P connect 3 0 5 0;
#P connect 5 0 0 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 6 1 5 1;
#P connect 6 0 4 1;
#P connect 2 0 6 0;
#P pop;
#P newobj 367 485 60 196617 p;
#P window linecount 2;
#P message 623 312 47 196617 1 , 5 1000;
#P message 500 315 47 196617 1 , 5 1000;
#P message 449 315 47 196617 1 , 4 1000;
#P message 347 316 47 196617 1 , 2 1000;
#P message 397 315 47 196617 1 , 3 1000;
#P window linecount 1;
#P newex 453 465 40 196617 line 1.;
#P user panel 355 278 246 31;
#X brgb 214 166 166;
#X frgb 0 0 0;
#X border 1;
#X rounded 20;
#X shadow 0;
#X done;
#P hidden connect 14 0 3 0;
#P hidden connect 20 0 13 0;
#P hidden connect 13 0 14 0;
#P hidden connect 15 0 2 0;
#P hidden connect 13 1 15 0;
#P connect 1 0 7 1;
#P connect 1 0 8 1;
#P hidden connect 13 2 16 0;
#P hidden connect 16 0 4 0;
#P connect 12 0 1 0;
#P connect 11 0 1 0;
#P connect 6 0 1 0;
#P connect 5 0 1 0;
#P connect 4 0 1 0;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P connect 1 0 9 1;
#P hidden connect 13 3 17 0;
#P connect 1 0 10 0;
#P hidden connect 17 0 5 0;
#P hidden connect 13 4 18 0;
#P hidden connect 18 0 12 0;
#P hidden connect 13 5 19 0;
#P hidden connect 19 0 6 0;
#P window clipboard copycount 21;

#116946

You must be logged in to reply to this topic.