Commit fe86eb05 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

add 'show' selector: shows none, velocity or gid of notes

parent 2aac62f4
......@@ -6,8 +6,8 @@ nvis;
gid;
#N struct 1003.vel float x float y float value;
#N struct 1003.dur float x float y float value;
#N struct 1003.note float x float y float w float h float id float
gid float vel float c float vis;
#N struct 1003.show.selector float x float y float hilite float id
symbol label;
#N canvas 0 99 1123 568 10;
#X msg 644 365 clear;
#X obj 437 15 loadbang;
......@@ -559,7 +559,7 @@ id float gid float vel float c float vis;
#X text 609 68 1 = velocity;
#X text 609 83 2 = gid;
#X obj 478 260 hradio 20 1 0 3 empty empty empty 0 -8 0 10 -262144
-1 -1 2;
-1 -1 0;
#X obj 478 291 s \$0.default.show;
#N canvas 149 210 387 235 range 0;
#X obj 33 104 min;
......@@ -630,14 +630,8 @@ id float gid float vel float c float vis;
#X obj 897 308 route click;
#X obj 897 356 s \$0.default.gid;
#N canvas 617 363 640 399 create_guis 0;
#X obj 12 76 route click;
#X obj 12 99 t b p p b;
#X obj 63 145 pointer;
#X obj 63 168 t b p;
#X msg 63 197 1;
#X msg 12 191 3;
#X obj 238 36 inlet;
#X obj 255 210 outlet;
#X obj 356 33 inlet;
#X obj 404 294 outlet;
#X obj 16 346 list store;
#X msg 16 320 get \$1 1;
#X obj 16 371 s \$0.gid2lr.set;
......@@ -652,10 +646,7 @@ id float gid float vel float c float vis;
#X obj 81 126 + 1;
#X obj 28 317 * 30;
#X obj 28 340 +;
#X obj 62 199 == 0;
#X obj 62 224 sel 0 1;
#X msg 62 254 1;
#X msg 91 253 3;
#N canvas 645 450 401 207 get.gid.clr 0;
#X obj 11 15 inlet;
#X obj 30 74 s \$0.gid2lr.get;
......@@ -676,42 +667,38 @@ id float gid float vel float c float vis;
#X obj 28 39 f;
#X obj 28 91 until;
#X text 49 391 x clr hl gid;
#X obj 28 170 t a a a a;
#X obj 28 370 pack f f f f, f 23;
#X obj 28 468 outlet;
#X obj 28 12 inlet;
#X msg 28 445 scalar \$1.gid.button \$2 20 \$3 \$4 \$5;
#X obj 60 339 + 200;
#X connect 0 0 24 0;
#X obj 28 170 t a a b a;
#X connect 0 0 20 0;
#X connect 1 0 2 0;
#X connect 2 0 19 0;
#X connect 2 0 21 0;
#X connect 2 1 5 0;
#X connect 3 0 23 0;
#X connect 3 0 19 0;
#X connect 4 0 1 1;
#X connect 5 0 1 1;
#X connect 6 0 7 0;
#X connect 7 0 20 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 9 1 11 0;
#X connect 10 0 20 2;
#X connect 11 0 20 2;
#X connect 12 0 20 1;
#X connect 13 0 14 0;
#X connect 14 0 16 1;
#X connect 15 0 17 0;
#X connect 15 1 4 0;
#X connect 16 0 15 0;
#X connect 17 0 1 0;
#X connect 19 0 6 0;
#X connect 19 1 12 0;
#X connect 19 2 8 0;
#X connect 19 3 20 3;
#X connect 20 0 3 0;
#X connect 22 0 16 0;
#X connect 23 0 21 0;
#X connect 24 0 7 1;
#X restore 289 106 pd create.gid.buttons;
#X connect 7 0 16 0;
#X connect 8 0 16 2;
#X connect 9 0 16 1;
#X connect 10 0 11 0;
#X connect 11 0 13 1;
#X connect 12 0 14 0;
#X connect 12 1 4 0;
#X connect 13 0 12 0;
#X connect 14 0 1 0;
#X connect 16 0 3 0;
#X connect 18 0 13 0;
#X connect 19 0 17 0;
#X connect 20 0 7 1;
#X connect 21 0 6 0;
#X connect 21 1 9 0;
#X connect 21 2 8 0;
#X connect 21 3 16 3;
#X restore 426 103 pd create.gid.buttons;
#N canvas 0 99 450 300 create.vel.number 0;
#X obj 24 21 inlet;
#X obj 24 201 outlet;
......@@ -730,7 +717,7 @@ id float gid float vel float c float vis;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 1 0;
#X restore 272 135 pd create.vel.number;
#X restore 409 132 pd create.vel.number;
#N canvas 0 99 450 300 create.dur.number 0;
#X obj 24 21 inlet;
#X obj 24 216 outlet;
......@@ -749,60 +736,156 @@ id float gid float vel float c float vis;
#X connect 6 0 1 0;
#X connect 7 0 4 1;
#X connect 8 0 3 1;
#X restore 255 163 pd create.dur.number;
#X restore 392 160 pd create.dur.number;
#N canvas 0 99 400 241 create.show.selector 0;
#X obj 7 7 inlet;
#X obj 7 139 outlet;
#X obj 7 78 list prepend \$0;
#X msg 7 44 490 0 none \, 545 1 velocity \, 600 2 gid;
#X msg 7 106 scalar \$1.show.selector \$2 20 555 \$3 \$4;
#X connect 0 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 2 0;
#X connect 4 0 1 0;
#X restore 362 190 pd create.show.selector;
#X obj 356 61 t b b b b b;
#N canvas 0 99 450 300 gid.state 0;
#X obj 12 76 route click;
#X obj 12 99 t b p p b;
#X obj 63 145 pointer;
#X obj 63 168 t b p;
#X msg 63 217 1;
#X msg 12 211 3;
#X obj 12 52 r \$0.gid.button.send;
#X obj 12 249 set \$0.gid.button hl;
#N canvas 106 186 401 297 init.pointer 0;
#N canvas 357 99 390 345 init.pointer 0;
#X obj 17 79 until;
#X msg 17 102 next;
#X obj 17 138 pointer \$0.gid.button;
#X obj 80 188 get \$0.gid.button gid;
#X obj 17 188 get \$0.gid.button gid;
#X obj 17 51 t b b;
#X obj 17 14 inlet;
#X obj 80 219 sel 0;
#X obj 126 219 r \$0.default.gid;
#X obj 17 254 outlet;
#X obj 17 219 sel 0;
#X obj 63 219 r \$0.default.gid;
#X obj 17 294 outlet;
#X obj 68 54 \$0;
#X msg 68 80 traverse pd-\$1.display;
#X obj 17 242 t b b, f 23;
#X obj 17 161 t p p;
#X obj 17 265 pointer;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 8 0;
#X connect 2 0 12 0;
#X connect 2 2 0 1;
#X connect 3 0 6 0;
#X connect 4 0 0 0;
#X connect 4 1 9 0;
#X connect 5 0 4 0;
#X connect 6 0 0 1;
#X connect 6 0 11 0;
#X connect 7 0 6 1;
#X connect 9 0 10 0;
#X connect 10 0 2 0;
#X restore 102 119 pd init.pointer;
#X obj 238 64 t b b b b;
#X connect 11 0 13 0;
#X connect 11 1 0 1;
#X connect 12 0 3 0;
#X connect 12 1 13 1;
#X connect 13 0 8 0;
#X restore 181 93 pd init.pointer;
#X obj 181 66 inlet;
#X obj 181 116 t p b p;
#X connect 0 0 1 0;
#X connect 1 0 5 0;
#X connect 1 1 17 1;
#X connect 1 1 7 1;
#X connect 1 2 2 1;
#X connect 1 3 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 17 1;
#X connect 4 0 17 0;
#X connect 5 0 17 0;
#X connect 6 0 19 0;
#X connect 3 1 7 1;
#X connect 4 0 7 0;
#X connect 5 0 7 0;
#X connect 6 0 0 0;
#X connect 8 0 10 0;
#X connect 9 0 8 0;
#X connect 10 0 2 1;
#X connect 10 1 5 0;
#X connect 10 2 7 1;
#X restore 55 135 pd gid.state;
#N canvas 33 502 450 300 show.selector.state 0;
#X obj 12 76 route click;
#X obj 12 99 t b p p b;
#X obj 63 145 pointer;
#X obj 63 168 t b p;
#N canvas 246 399 398 338 init.pointer 0;
#X obj 17 79 until;
#X msg 17 102 next;
#X obj 17 51 t b b;
#X obj 17 14 inlet;
#X obj 17 217 sel 0;
#X obj 17 290 outlet;
#X obj 68 54 \$0;
#X msg 68 80 traverse pd-\$1.display;
#X obj 17 138 pointer \$0.show.selector;
#X obj 17 188 get \$0.show.selector id;
#X obj 58 215 r \$0.default.show;
#X obj 17 161 t p p;
#X obj 17 240 t b b, f 21;
#X obj 17 263 pointer;
#X connect 0 0 1 0;
#X connect 1 0 8 0;
#X connect 2 0 0 0;
#X connect 2 1 6 0;
#X connect 3 0 2 0;
#X connect 4 0 12 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 11 0;
#X connect 8 2 0 1;
#X connect 9 0 4 0;
#X connect 10 0 4 1;
#X connect 11 0 9 0;
#X connect 12 0 8 1;
#X connect 13 0 7 0;
#X connect 14 0 7 0;
#X connect 15 0 7 0;
#X connect 16 0 0 0;
#X connect 18 0 2 1;
#X connect 19 0 18 0;
#X connect 19 1 15 0;
#X connect 19 2 14 0;
#X connect 19 3 13 0;
#X connect 11 1 13 1;
#X connect 12 0 13 0;
#X connect 12 1 0 1;
#X connect 13 0 5 0;
#X restore 191 97 pd init.pointer;
#X obj 191 69 inlet;
#X obj 12 52 r \$0.show.selector.send;
#X msg 63 197 555;
#X msg 12 195 0;
#X obj 12 249 set \$0.show.selector hilite;
#X obj 191 120 t p b p;
#X connect 0 0 1 0;
#X connect 1 0 8 0;
#X connect 1 1 9 1;
#X connect 1 2 2 1;
#X connect 1 3 2 0;
#X connect 2 0 3 0;
#X connect 3 0 7 0;
#X connect 3 1 9 1;
#X connect 4 0 10 0;
#X connect 5 0 4 0;
#X connect 6 0 0 0;
#X connect 7 0 9 0;
#X connect 8 0 9 0;
#X connect 10 0 2 1;
#X connect 10 1 8 0;
#X connect 10 2 9 1;
#X restore 53 169 pd show.selector.state;
#X connect 0 0 11 0;
#X connect 2 0 4 0;
#X connect 3 0 2 0;
#X connect 5 0 3 0;
#X connect 6 0 2 1;
#X connect 7 0 1 0;
#X connect 8 0 1 0;
#X connect 9 0 1 0;
#X connect 10 0 1 0;
#X connect 11 0 12 0;
#X connect 11 0 13 0;
#X connect 11 1 10 0;
#X connect 11 2 9 0;
#X connect 11 3 8 0;
#X connect 11 4 7 0;
#X restore 581 475 pd create_guis;
#N canvas 0 99 416 185 gui-templates 0;
#N canvas 0 99 408 150 gid.button-template 0;
......@@ -856,6 +939,14 @@ hl float gid;
#X connect 7 0 2 0;
#X connect 10 0 3 1;
#X restore 8 76 pd dur-template;
#N canvas 489 158 450 300 show.selector-template 0;
#X obj 22 149 s \$0.show.selector.send;
#X obj 21 25 filledpolygon 777 hilite 2 0 0 0 15 55 15 55 0;
#X obj 22 53 drawsymbol label 2 1 hilite;
#X obj 22 108 struct \$0.show.selector float x float y float hilite
float id symbol label;
#X connect 3 0 0 0;
#X restore 9 102 pd show.selector-template;
#X restore 754 475 pd gui-templates;
#X obj 897 395 r \$0.vel.send;
#X obj 897 441 get \$0.vel value;
......@@ -1732,12 +1823,6 @@ to the note (or prints a 'not found' error);
#X connect 19 1 14 0;
#X restore 43 333 pd note.change.velocity;
#X msg 234 298 note change velocity 16 72 120;
#X msg 437 61 \; \$1.stepcount 64 \; \$1.pitchrange 48 \; \$1.stepviswidth
15 \; \$1.stepvisheight 14 \; \$1.canvastopmargin 60 \; \$1.canvasleftmargin
90 \; \$1.stepkeycolor1 887 \; \$1.stepkeycolor2 777 \; \$1.griddivision
4 \; \$1.gridsubdivision 4 \; \$1.gidcolorlist 800 840 80 88 8 808
\; \$1.default.vel 64 \; \$1.default.gid 0 \; \$1.default.dur 4 \;
\$1.default.show 0 \; \$1.init bang \;;
#N canvas 0 99 406 517 note.change.gid 0;
#X obj 14 19 r \$0.note.send;
#X obj 14 42 route change;
......@@ -1901,9 +1986,19 @@ to the note (or prints a 'not found' error);
#X connect 17 1 12 0;
#X restore 43 356 pd note.change.gid;
#X msg 283 358 note change gid 16 58 4;
#X obj 897 208 route click;
#X obj 897 185 r \$0.show.selector.send;
#X obj 897 231 get \$0.show.selector id;
#X obj 897 256 s \$0.default.show;
#X msg 437 61 \; \$1.stepcount 64 \; \$1.pitchrange 48 \; \$1.stepviswidth
15 \; \$1.stepvisheight 14 \; \$1.canvastopmargin 60 \; \$1.canvasleftmargin
90 \; \$1.stepkeycolor1 887 \; \$1.stepkeycolor2 777 \; \$1.griddivision
4 \; \$1.gridsubdivision 4 \; \$1.gidcolorlist 800 840 80 88 8 808
\; \$1.default.vel 64 \; \$1.default.gid 0 \; \$1.default.dur 4 \;
\$1.default.show 0 \; \$1.init bang \;;
#X connect 0 0 37 0;
#X connect 1 0 2 0;
#X connect 2 0 59 0;
#X connect 2 0 66 0;
#X connect 3 0 20 0;
#X connect 4 0 2 0;
#X connect 5 0 37 0;
......@@ -1939,4 +2034,7 @@ to the note (or prints a 'not found' error);
#X connect 45 1 46 0;
#X connect 56 0 55 0;
#X connect 58 0 55 0;
#X connect 62 0 55 0;
#X connect 61 0 55 0;
#X connect 62 0 64 0;
#X connect 63 0 62 0;
#X connect 64 0 65 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment