From 506b547224a7caec6578536610a6ddb95fdcf62e Mon Sep 17 00:00:00 2001 From: Rob Hamilton Date: Thu, 18 Jun 2020 22:42:34 -0400 Subject: [PATCH] fixing sample mouse code; prepend was messed up --- hamilr4.pd | 52 ++++++++++++++++++++++++++++------------------------ masheen.pd | 4 ++-- mouser.pd | 6 +++--- 3 files changed, 33 insertions(+), 29 deletions(-) diff --git a/hamilr4.pd b/hamilr4.pd index 83fcc54..f54c0ae 100644 --- a/hamilr4.pd +++ b/hamilr4.pd @@ -14,7 +14,7 @@ the second is for data; #X obj 1030 97 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 1184 119 list trim; -#X msg 1184 140 hamilr4 key 0 ` 96; +#X msg 1184 140 hamilr4 key 1 Meta_L 0; #X obj 1184 98 list prepend set; #X text 1030 0 Two named receives \, one for tempo (receives a "bang" event from the global clock metro) and the other receives a list of @@ -1478,7 +1478,7 @@ Risset.; #X connect 33 0 18 0; #X restore 388 362 pd bells; #X text 370 341 Risset "Bells" model; -#N canvas 676 122 567 604 play_soundfile 0; +#N canvas 586 95 567 604 play_soundfile 0; #X obj 13 22 loadbang; #X obj 13 71 soundfiler; #N canvas 0 22 450 300 (subpatch) 0; @@ -1662,7 +1662,7 @@ pointer location \, depending on the system.; to your [r username_control] receive; #X obj 68 175 receive hamilr4_control; #X obj 68 238 list trim; -#X msg 68 259 hamilr4 key 0 ` 96; +#X msg 68 259 hamilr4 key 1 Meta_L 0; #X obj 68 217 list prepend set; #X obj 66 392 mouse_osx; #X text 36 102 KEYBOARD CONTROLLER; @@ -1695,15 +1695,15 @@ to your [r username_control] receive; -228856 -1 -1 0 256; #X text 379 974 delta x; #X obj 324 957 nbx 4 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 --228856 -1 -1 0 256; +-228856 -1 -1 -21 256; #X obj 266 957 nbx 4 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 --228856 -1 -1 0 256; +-228856 -1 -1 182 256; #X text 267 974 x pos; #X text 327 974 y pos; #X obj 209 955 tgl 18 0 empty empty empty 17 7 0 10 -228856 -1 -1 0 1; #X text 200 974 click; -#X obj 272 877 tgl 15 0 empty empty empty 17 7 0 10 -228856 -1 -1 0 +#X obj 272 877 tgl 15 0 empty empty empty 17 7 0 10 -228856 -1 -1 1 1; #X text 290 877 polling on/off with [metro]; #X msg 137 892 zero; @@ -1715,7 +1715,7 @@ to your [r username_control] receive; \, where (0 \, 0) is the top left corner of the primary display.; #X msg 144 866 mode \$1; #X obj 144 810 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -228856 --1 -1 0; +-1 -1 1; #X text 167 809 mode 0: screen relative; #X text 167 824 mode 1: patch relative; #X text 167 839 mode 2: front-most patch relative; @@ -1733,23 +1733,25 @@ selectring the parent patch for example.; #X text 1058 663 mode 0: screen relative; #X text 1058 678 mode 1: patch relative; #X text 1058 693 mode 2: front-most patch relative; -#X obj 933 699 tgl 15 0 empty empty empty 17 7 0 10 -228856 -1 -1 0 +#X obj 933 699 tgl 15 0 empty empty empty 17 7 0 10 -228856 -1 -1 1 1; #X text 731 697 polling on/off with [metro]; #X floatatom 984 666 5 0 0 0 - - -; #X text 777 666 Polling speed (50ms default); -#X text 732 809 outputs list of all values; -#X obj 933 785 prepend set; -#X msg 933 809 username mouse 0 1062 581 0 0; +#X text 732 849 outputs list of all values; +#X msg 933 849 username mouse 0 683 2 0 0; #X obj 933 761 mouser username; -#X obj 933 854 r username_control; -#X obj 933 878 prepend set; -#X msg 933 902 username mouse 0 1062 581 0 0; +#X obj 932 904 r username_control; +#X msg 933 976 username mouse 0 683 2 0 0; #X text 33 363 MOUSE CONTROLLER - SIMPLE OSX VERSION; -#X obj 933 728 tgl 15 0 empty empty empty 17 7 0 10 -228856 -1 -1 0 +#X obj 933 728 tgl 15 0 empty empty empty 17 7 0 10 -228856 -1 -1 1 1; #X text 772 726 polling on/off toggle; #X text 600 760 open inlet for messages to cyclone/mousestate; +#X obj 933 788 list prepend set; +#X obj 932 928 list prepend set; +#X obj 933 812 list trim; +#X obj 933 952 list trim; #X connect 4 0 7 0; #X connect 4 0 13 0; #X connect 5 0 6 0; @@ -1780,14 +1782,16 @@ selectring the parent patch for example.; #X connect 43 0 25 0; #X connect 45 0 25 0; #X connect 46 0 45 0; -#X connect 53 0 64 4; -#X connect 57 0 64 2; -#X connect 59 0 64 3; -#X connect 62 0 63 0; -#X connect 64 0 62 0; -#X connect 65 0 66 0; -#X connect 66 0 67 0; -#X connect 69 0 64 1; +#X connect 53 0 63 4; +#X connect 57 0 63 2; +#X connect 59 0 63 3; +#X connect 63 0 70 0; +#X connect 64 0 71 0; +#X connect 67 0 63 1; +#X connect 70 0 72 0; +#X connect 71 0 73 0; +#X connect 72 0 62 0; +#X connect 73 0 65 0; #X restore 227 332 pd more_control; #N canvas 0 23 450 300 more_structure 0; #X obj 28 50 hamilr4_etude_1 one 2 three; @@ -1825,7 +1829,7 @@ selectring the parent patch for example.; #X obj 946 342 throw~ deegaj_audio_1; #X restore 1788 92 pd stuff; #X obj 738 278 hamilr4_etude_1; -#X obj 1628 429 ``; +#X obj 1628 429 channel; #X connect 7 0 9 0; #X connect 8 0 12 0; #X connect 10 0 11 0; diff --git a/masheen.pd b/masheen.pd index 5f4228f..29e0bf2 100644 --- a/masheen.pd +++ b/masheen.pd @@ -1,4 +1,4 @@ -#N canvas 0 23 1920 1129 12; +#N canvas 4 23 1920 1129 12; #X obj 74 53 bartoa; #X obj 74 143 johnsz2; #X obj 74 173 martse; @@ -81,7 +81,7 @@ the outlet for now.; #X obj 1751 645 recorder_controls; #X obj 74 83 hamilr4; #X obj 327 85 list trim; -#X msg 327 106 username mouse 0 444 692 0 0; +#X msg 327 106 username mouse 0 769 333 0 0; #X obj 327 64 list prepend set; #X obj 327 22 receive username_control; #N canvas 834 255 892 349 masheen_global_tempo 0; diff --git a/mouser.pd b/mouser.pd index 9d6738d..d2abd4b 100644 --- a/mouser.pd +++ b/mouser.pd @@ -11,9 +11,9 @@ -228856 -1 -1 0 256; #X text 326 238 delta x; #X obj 271 221 nbx 4 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 --228856 -1 -1 103 256; +-228856 -1 -1 333 256; #X obj 213 221 nbx 4 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 --228856 -1 -1 443 256; +-228856 -1 -1 769 256; #X text 214 238 x pos; #X text 274 238 y pos; #X obj 156 219 tgl 18 0 empty empty empty 17 7 0 10 -228856 -1 -1 0 @@ -39,7 +39,7 @@ #X obj 164 384 list prepend \$1; #X obj 164 410 s \$1_control; #X obj 100 411 outlet; -#X obj 157 311 list prepend; +#X obj 164 311 list prepend; #X obj 156 262 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 164 356 list prepend mouse;