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

WIP: work on keyboard toggle: turn on/off key commands

parent 4d856101
......@@ -1333,6 +1333,24 @@ id float gid float vel float dur float c float vis float mrk;
#X connect 16 0 0 0;
#X restore 345 296 pd create.scroller;
#X obj 355 61 t b b b b b b b b b b;
#N canvas 49 734 371 251 create.keyboard.toggle 0;
#X obj 7 7 inlet;
#X obj 7 185 outlet;
#X obj 7 124 list prepend \$0;
#X obj 7 61 f;
#X text 46 86 offset from left border;
#X obj 44 64 r \$0.canvasleftmargin;
#X obj 7 30 b;
#X msg 7 152 scalar \$1.keyboard.toggle \$2 20 keyboard 0 666;
#X obj 7 87 + 545;
#X connect 0 0 6 0;
#X connect 2 0 7 0;
#X connect 3 0 8 0;
#X connect 5 0 3 1;
#X connect 6 0 3 0;
#X connect 7 0 1 0;
#X connect 8 0 2 0;
#X restore 297 330 pd create.keyboard.toggle;
#X connect 0 0 19 0;
#X connect 2 0 4 0;
#X connect 3 0 2 0;
......@@ -1351,6 +1369,7 @@ id float gid float vel float dur float c float vis float mrk;
#X connect 19 0 12 0;
#X connect 19 0 14 0;
#X connect 19 1 18 0;
#X connect 19 1 20 0;
#X connect 19 2 16 0;
#X connect 19 3 13 0;
#X connect 19 4 10 0;
......@@ -1359,15 +1378,16 @@ id float gid float vel float dur float c float vis float mrk;
#X connect 19 7 8 0;
#X connect 19 8 7 0;
#X connect 19 9 17 0;
#X connect 20 0 1 0;
#X restore 476 215 pd create_guis;
#N canvas 0 99 799 284 gui-templates 0;
#N canvas 0 99 799 292 gui-templates 0;
#N canvas 0 99 408 150 gid.button-template 0;
#X obj 16 99 s \$0.gid.button.send;
#X obj 17 26 filledpolygon clr clr 1 0 0 0 15 15 15 15 0;
#X obj 16 60 struct \$0.gid.button float x float y float clr float
gid;
#X connect 2 0 0 0;
#X restore 8 78 pd gid.button-template;
#X restore 8 62 pd gid.button-template;
#N canvas 195 247 417 284 vel-template 0;
#X obj 14 260 s \$0.vel.send;
#X obj 99 168 max 0;
......@@ -1389,7 +1409,7 @@ gid;
#X connect 6 0 7 0;
#X connect 7 0 5 0;
#X connect 7 1 8 1;
#X restore 8 48 pd vel-template;
#X restore 8 40 pd vel-template;
#N canvas 0 99 414 335 dur-template 0;
#X obj 14 75 struct \$0.dur float x float y float value;
#X obj 99 201 min 127;
......@@ -1421,7 +1441,7 @@ hilite float id symbol label;
#X obj 21 25 filledpolygon 666 666 1 0 0 0 15 w 15 w 0;
#X obj 22 53 drawsymbol label 2 1 hilite;
#X connect 1 0 0 0;
#X restore 8 138 pd show.selector-template;
#X restore 8 106 pd show.selector-template;
#X obj 464 59 route click;
#X obj 464 107 s \$0.default.gid;
#X obj 333 35 r \$0.vel.send;
......@@ -1443,14 +1463,14 @@ hilite float id symbol label;
#X obj 22 108 struct \$0.cursor float x float y float h float vis;
#X obj 18 20 drawpolygon -v vis 900 2 0 0 0 h;
#X connect 1 0 0 0;
#X restore 8 168 pd cursor-template;
#N canvas 0 99 392 164 mode.button-template 0;
#X restore 8 150 pd cursor-template;
#N canvas 0 99 474 168 mode.button-template 0;
#X obj 16 99 s \$0.mode.button.send;
#X obj 17 26 filledpolygon c c 1 0 0 0 8 w 8 w 0;
#X obj 16 60 struct \$0.mode.button float x float y float w float c
symbol param;
#X connect 2 0 0 0;
#X restore 8 108 pd mode.button-template;
#X restore 8 84 pd mode.button-template;
#N canvas 330 412 405 373 pager-template 0;
#X obj 15 41 filledpolygon c c 1 dir 7 12 14 12 0;
#X obj 21 285 s \$0.pager.send;
......@@ -1471,20 +1491,28 @@ num float nvis;
#X connect 6 1 4 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X restore 8 198 pd pager-template;
#X restore 8 172 pd pager-template;
#N canvas 305 215 450 300 guibar-template 0;
#X obj 21 180 s \$0.guibar.send;
#X obj 21 117 struct \$0.guibar float x float y float w;
#X obj 17 39 filledpolygon 777 777 1 0 0 w 0 w 24 0 24;
#X connect 1 0 0 0;
#X restore 9 247 pd guibar-template;
#X restore 8 216 pd guibar-template;
#N canvas 330 412 397 197 scroller-template 0;
#X obj 17 95 s \$0.scroller.send;
#X obj 17 61 struct \$0.scroller float x float y float c float dir
;
#X obj 17 26 filledpolygon c c 1 0 0 14 0 7 dir;
#X connect 1 0 0 0;
#X restore 9 220 pd scroller-template;
#X restore 8 194 pd scroller-template;
#N canvas 469 142 450 300 keyboard.toggle-template 0;
#X obj 22 108 struct \$0.keyboard.toggle float x float y symbol label
float hilite float ihilite;
#X obj 24 20 filledpolygon ihilite ihilite 1 0 0 0 15 55 15 55 0;
#X obj 22 45 drawsymbol label 3 1 hilite;
#X obj 22 149 s \$0.keyboard.toggle.send;
#X connect 0 0 3 0;
#X restore 8 128 pd keyboard.toggle-template;
#X connect 4 0 15 0;
#X connect 6 0 9 0;
#X connect 7 0 8 0;
......@@ -5232,6 +5260,49 @@ by clicking on two coordinates on the grid with Mod-key pressed.;
#X connect 19 0 16 0;
#X connect 20 0 17 0;
#X restore 3 56 pd scroller.logic;
#N canvas 139 395 466 477 keyboard.toggle.logic 0;
#X obj 50 52 r \$0.keyboard.toggle.send;
#X obj 50 75 route click;
#X obj 50 98 t b p, f 37;
#X obj 50 378 set \$0.keyboard.toggle hilite ihilite;
#X msg 98 342 0;
#X msg 159 343 0;
#X obj 50 303 t b b;
#X obj 98 303 t b b;
#X msg 199 344 666;
#X msg 50 338 777;
#X obj 83 195 \$0;
#X obj 50 224 s _UNPUNCH_KEYBOARD_GRAB;
#X obj 84 123 r _UNPUNCH_KEYBOARD_GRAB;
#X obj 50 121 f;
#X obj 50 144 sel \$0;
#X msg 50 167 -1;
#X obj 83 168 b;
#X obj 50 246 r _UNPUNCH_KEYBOARD_GRAB;
#X obj 50 269 sel \$0;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 13 0;
#X connect 2 1 3 2;
#X connect 4 0 3 0;
#X connect 5 0 3 1;
#X connect 6 0 9 0;
#X connect 6 1 5 0;
#X connect 7 0 4 0;
#X connect 7 1 8 0;
#X connect 8 0 3 1;
#X connect 9 0 3 0;
#X connect 10 0 11 0;
#X connect 12 0 13 1;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 14 1 16 0;
#X connect 15 0 11 0;
#X connect 16 0 10 0;
#X connect 17 0 18 0;
#X connect 18 0 6 0;
#X connect 18 1 7 0;
#X restore 3 80 pd keyboard.toggle.logic;
#X restore 19 215 pd interaction.logic;
#X connect 0 0 22 0;
#X connect 1 0 2 0;
......
Markdown is supported
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