Commit 6f155f25 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

finally figured out how to make 'note change duration' interaction work...

finally figured out how to make 'note change duration' interaction work correctly while respecting boundaries
parent ef76601d
......@@ -520,7 +520,7 @@ n float nvis;
#X connect 21 0 5 1;
#X connect 22 0 9 0;
#X restore 491 186 pd create_vertline;
#N canvas 35 99 741 470 note-template 0;
#N canvas 35 99 741 470 note-template 1;
#X obj 121 282 min 127;
#X obj 51 166 route click change;
#X obj 121 307 t a a;
......@@ -2798,18 +2798,17 @@ num float nvis;
#X obj 490 318 r \$0.clear;
#X obj 461 78 t b b b b b b;
#N canvas 0 99 430 292 generate.events 0;
#N canvas 0 99 406 517 note.change.duration 0;
#N canvas 0 99 401 500 note.change.duration 0;
#X obj 14 19 r \$0.note.send;
#X obj 14 246 change -1;
#X obj 167 164 t a a;
#X obj 194 190 tabread \$0.duration;
#X msg 194 215 set \$1;
#X obj 14 325 change -1;
#X obj 227 179 t a a;
#X obj 254 205 tabread \$0.duration;
#X msg 254 230 set \$1;
#X obj 14 376 list prepend;
#X obj 14 404 list prepend note change duration;
#X obj 14 427 list trim;
#X obj 14 455 s \$0.global.send;
#X obj 167 138 change -1;
#X obj 14 42 route change click;
#X obj 14 42 route change click, f 21;
#N canvas 83 99 398 214 pointer->id 0;
#X obj 13 14 inlet;
#X obj 13 37 t b a;
......@@ -2822,22 +2821,51 @@ num float nvis;
#X connect 1 1 4 0;
#X connect 2 0 3 0;
#X connect 5 0 2 1;
#X restore 167 76 pd pointer->id;
#X obj 14 85 get \$0.note dur;
#X connect 0 0 10 0;
#X restore 227 125 pd pointer->id;
#N canvas 0 99 405 189 w->duration 0;
#X obj 13 14 inlet;
#X obj 13 37 t b a;
#X obj 13 114 list append;
#X obj 13 137 outlet;
#X obj 40 85 r \$0.convert.w->duration;
#X obj 40 63 s \$0.convert.w->duration.get;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 5 0;
#X connect 2 0 3 0;
#X connect 4 0 2 1;
#X restore 59 232 pd w->duration;
#X obj 59 205 -;
#X obj 125 75 t p p;
#X obj 125 103 get \$0.note w;
#X obj 59 277 +;
#X obj 59 162 change -1;
#X msg 139 134 set \$1;
#X obj 14 104 get \$0.note dur w;
#X connect 0 0 9 0;
#X connect 1 0 5 0;
#X connect 2 0 5 1;
#X connect 2 1 3 0;
#X connect 3 0 4 0;
#X connect 3 0 15 1;
#X connect 4 0 1 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 9 0 2 0;
#X connect 10 0 12 0;
#X connect 10 1 11 0;
#X connect 11 0 9 0;
#X connect 12 0 1 0;
#X connect 9 0 18 0;
#X connect 9 1 13 0;
#X connect 10 0 2 0;
#X connect 11 0 15 0;
#X connect 12 0 11 0;
#X connect 13 0 14 0;
#X connect 13 1 10 0;
#X connect 14 0 12 1;
#X connect 14 0 17 0;
#X connect 15 0 1 0;
#X connect 16 0 12 0;
#X connect 17 0 16 0;
#X connect 18 0 1 0;
#X connect 18 1 16 0;
#X restore 16 67 pd note.change.duration;
#N canvas 104 99 719 620 note.create/delete 0;
#X obj 29 275 del 0;
......@@ -3738,13 +3766,13 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 21 0 9 0;
#X connect 22 0 21 1;
#X restore 19 41 pd note.delete;
#N canvas 0 341 375 609 note.change.duration 0;
#N canvas 0 473 333 520 note.change.duration 0;
#X obj 6 8 r \$0.global.receive;
#X obj 6 31 route note;
#X obj 6 54 route change;
#X obj 6 77 route duration;
#X obj 6 258 pack f f;
#X obj 6 299 s \$0.duration;
#X obj 141 185 pack f f;
#X obj 141 209 s \$0.duration;
#N canvas 83 99 410 208 id->pointer 0;
#X obj 13 14 inlet;
#X obj 13 37 t b a;
......@@ -3757,7 +3785,7 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 1 1 4 0;
#X connect 2 0 3 0;
#X connect 5 0 2 1;
#X restore 105 251 pd id->pointer;
#X restore 6 171 pd id->pointer;
#N canvas 0 99 405 189 duration->w 0;
#X obj 13 14 inlet;
#X obj 13 37 t b a;
......@@ -3770,14 +3798,10 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 1 1 4 0;
#X connect 2 0 3 0;
#X connect 5 0 2 1;
#X restore 150 416 pd duration->w;
#X obj 105 274 route -1;
#X text 117 141 duration;
#X obj 6 225 t a a, f 17;
#X obj 150 449 set \$0.note w dur;
#X msg 82 139 \$2;
#X msg 6 138 \$1;
#N canvas 731 272 337 209 only.active 0;
#X restore 51 336 pd duration->w;
#X obj 6 194 route -1;
#X obj 51 369 set \$0.note w dur;
#N canvas 731 305 337 209 only.active 0;
#X obj 20 71 tabread \$0.active;
#X obj 20 94 sel 1;
#X obj 20 117 f;
......@@ -3790,7 +3814,7 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 3 0 0 0;
#X connect 3 1 2 1;
#X connect 4 0 3 0;
#X restore 6 179 pd only.active;
#X restore 141 160 pd only.active;
#N canvas 83 99 410 208 id->visible.length 0;
#X obj 13 14 inlet;
#X obj 13 37 t b a;
......@@ -3803,35 +3827,36 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 1 1 5 0;
#X connect 2 0 3 0;
#X connect 4 0 2 1;
#X restore 150 383 pd id->visible.length;
#X obj 150 300 t b p;
#X obj 6 100 t a a a, f 26;
#X obj 150 323 list append;
#X obj 150 346 unpack f f;
#X restore 51 303 pd id->visible.length;
#X obj 51 220 t b p;
#X obj 51 243 list append;
#X obj 51 266 unpack f f;
#X obj 141 135 unpack, f 8;
#X msg 6 144 \$1;
#X obj 6 106 t a a a, f 23;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 17 0;
#X connect 4 0 5 0;
#X connect 6 0 8 0;
#X connect 7 0 11 0;
#X connect 8 1 16 0;
#X connect 7 0 9 0;
#X connect 8 1 12 0;
#X connect 10 0 4 0;
#X connect 10 1 6 0;
#X connect 12 0 4 1;
#X connect 11 0 7 0;
#X connect 12 0 13 0;
#X connect 12 1 9 2;
#X connect 13 0 14 0;
#X connect 14 0 10 0;
#X connect 15 0 7 0;
#X connect 16 0 18 0;
#X connect 16 1 11 2;
#X connect 17 0 13 0;
#X connect 17 1 12 0;
#X connect 17 2 18 1;
#X connect 18 0 19 0;
#X connect 19 0 15 0;
#X connect 19 1 11 1;
#X connect 14 0 11 0;
#X connect 14 1 9 1;
#X connect 15 0 10 0;
#X connect 15 1 4 1;
#X connect 16 0 6 0;
#X connect 17 0 16 0;
#X connect 17 1 13 1;
#X connect 17 2 15 0;
#X restore 19 64 pd note.change.duration;
#N canvas 103 315 357 536 note.change.velocity 0;
#N canvas 103 348 357 536 note.change.velocity 0;
#X obj 6 8 r \$0.global.receive;
#X obj 6 31 route note;
#X obj 6 54 route change;
......@@ -4525,6 +4550,9 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
777 \; \$1.griddivision 4 \; \$1.gridsubdivision 4 \; \$1.gidcolorlist
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 333 508 s \$0.global.receive;
#X msg 333 485 note change duration 0 \$1;
#X floatatom 333 460 5 0 0 0 - - -;
#X connect 0 0 22 0;
#X connect 1 0 2 0;
#X connect 2 0 45 0;
......@@ -4555,3 +4583,5 @@ by clicking on two coordinates on the grid with Ctrl-key pressed.;
#X connect 38 3 4 0;
#X connect 38 4 7 0;
#X connect 38 5 0 0;
#X connect 47 0 46 0;
#X connect 48 0 47 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