diff --git a/pd/loopaudio.pd b/pd/loopaudio.pd index 1587a5d..a3fda18 100644 --- a/pd/loopaudio.pd +++ b/pd/loopaudio.pd @@ -1,33 +1,34 @@ -#N canvas 557 181 583 527 10; +#N canvas 137 370 679 478 10; #X obj 155 392 dac~; #X obj 155 342 readsf~; #X msg 81 297 0; #X obj 233 324 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 254 315 (re-)start loop; -#X obj 45 64 oscparse; -#X obj 45 89 list trim; -#X obj 45 42 netreceive -u -b 5555; -#X obj 167 171 route 1; -#X obj 241 168 route 0; -#X obj 145 123 route trigger; +#X obj 239 60 oscparse; +#X obj 239 85 list trim; +#X obj 239 38 netreceive -u -b 5555; +#X obj 339 163 route 1; +#X obj 425 162 route 0; +#X obj 339 119 route trigger; #X text 69 276 stop loop; -#X text 32 12 listen to osc at port XXXX; -#X obj 314 209 print "starting loop"; -#X obj 315 232 print "stopping loop"; -#X msg 156 285 open /home/a/projects/pd-play/testaudio.wav \, 1; +#X obj 508 205 print "starting loop"; +#X obj 509 228 print "stopping loop"; +#X msg 163 258 open testaudio.wav \, 1; +#X text 233 18 listen to osc at port 5555; +#X text 163 233 change audiofile HERE; #X connect 1 0 0 0; #X connect 1 0 0 1; #X connect 1 1 3 0; #X connect 2 0 1 0; -#X connect 3 0 15 0; +#X connect 3 0 14 0; #X connect 5 0 6 0; #X connect 6 0 10 0; #X connect 7 0 5 0; #X connect 8 0 3 0; -#X connect 8 0 13 0; +#X connect 8 0 12 0; #X connect 9 0 2 0; -#X connect 9 0 14 0; +#X connect 9 0 13 0; #X connect 10 0 8 0; #X connect 10 0 9 0; -#X connect 15 0 1 0; +#X connect 14 0 1 0; diff --git a/pd/sendOSCMsg.py b/pd/sendOSCMsg.py index 488113d..6552643 100644 --- a/pd/sendOSCMsg.py +++ b/pd/sendOSCMsg.py @@ -25,7 +25,7 @@ while(1): print("sending start to {0} on port {1}".format(args.ip, args.port)) client.send_message("/trigger", 1) time.sleep(2) - print("sending start to {0} on port {1}".format(args.ip, args.port)) + print("sending stop to {0} on port {1}".format(args.ip, args.port)) client.send_message("/trigger", 0) time.sleep(2)