Commit 118e4040 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

implement 'note unselect' which is triggered by 'Esc' key

parent 6f863cb4
......@@ -2454,7 +2454,7 @@ num float nvis;
#X connect 5 0 2 1;
#X restore 135 168 pd gid->gclr;
#X restore 19 95 pd converters;
#N canvas 344 165 401 476 inspector 0;
#N canvas 342 165 401 476 inspector 0;
#X obj 42 89 t a a a a a a;
#X obj 117 113 tabread \$0.active;
#X obj 102 158 tabread \$0.step;
......@@ -2595,7 +2595,7 @@ num float nvis;
800 840 80 68 408 808 \; \$1.default.vel 64 \; \$1.default.gid 0 \;
\$1.default.dur 4 \; \$1.default.show 0 \; \$1.redraw bang \;;
#X obj 461 78 t b b b b b b;
#N canvas 0 99 430 292 generate.events 0;
#N canvas 0 91 430 292 generate.events 0;
#N canvas 0 99 406 517 note.change.duration 0;
#X obj 14 19 r \$0.note.send;
#X obj 14 246 change -1;
......@@ -3089,7 +3089,7 @@ certain period.;
#X connect 14 0 15 0;
#X connect 15 0 1 0;
#X restore 16 141 pd note.edit.modes;
#N canvas 446 174 420 655 note.select 0;
#N canvas 436 166 420 655 note.select 0;
#X obj 19 64 r \$0.horizgrid.send;
#X obj 19 127 route click;
#X obj 19 150 get \$0.horizgrid y;
......@@ -3187,8 +3187,23 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 30 0 29 0;
#X restore 16 166 pd note.select;
#X text 15 17 GENERATE EVENTS;
#N canvas 336 294 403 183 note.unselect 0;
#X obj 25 17 keyname;
#X obj 25 40 pack f s;
#X obj 25 63 route 1;
#X obj 25 86 route Escape;
#X obj 25 133 s \$0.global.receive;
#X text 148 135 <- we use the selection only locally;
#X msg 25 110 note unselect;
#X connect 0 0 1 0;
#X connect 0 1 1 1;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 6 0 4 0;
#X restore 16 191 pd note.unselect;
#X restore 19 125 pd generate.events;
#N canvas 0 99 413 279 process.events 0;
#N canvas 0 91 413 279 process.events 0;
#N canvas 109 324 713 500 note.create 0;
#X obj 6 8 r \$0.global.receive;
#X obj 6 31 route note;
......@@ -4177,7 +4192,24 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 11 0 12 0;
#X connect 11 1 7 0;
#X connect 12 0 7 0;
#X restore 19 156 pd dump;
#X restore 19 186 pd dump;
#N canvas 0 256 347 307 note.unselect 0;
#X obj 17 21 r \$0.global.receive;
#X obj 17 44 route note;
#X obj 17 193 s \$0.redraw;
#X msg 56 117 const 0;
#X obj 56 140 s \$0.marked;
#X obj 17 90 t b a b;
#X obj 17 163 del 0;
#X obj 17 67 route unselect;
#X connect 0 0 1 0;
#X connect 1 0 7 0;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 5 2 3 0;
#X connect 6 0 2 0;
#X connect 7 0 5 0;
#X restore 19 158 pd note.unselect;
#X restore 19 155 pd process.events;
#X text 13 12 [unpunch] v0.0alpha;
#X obj 565 443 array define \$0.marked 1000;
......
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