diff --git a/pd/loopaudio.pd b/pd/loopaudio.pd index a3fda18..1d6da6e 100644 --- a/pd/loopaudio.pd +++ b/pd/loopaudio.pd @@ -1,34 +1,42 @@ -#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 +#N canvas 109 131 660 604 10; +#X obj 131 277 dac~; +#X obj 131 227 readsf~; +#X obj 209 209 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; -#X text 254 315 (re-)start loop; -#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 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 text 229 206 (re-)start loop; +#X msg 132 170 open /home/a/projects/pd-play/testaudio.wav \, 1; +#X obj 208 459 netsend -u -b; +#X obj 208 481 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X msg 355 464 disconnect; +#X obj 208 393 list prepend send; +#X obj 208 415 list trim; +#X msg 357 434 connect localhost 5555; +#X obj 208 345 oscformat /trigger; +#X msg 51 193 0; +#X obj 227 83 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X text 40 173 stop loop; +#X msg 210 292 1; +#X obj 318 84 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X text 217 60 START; +#X text 309 61 !STOP!; #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 14 0; +#X connect 1 1 2 0; +#X connect 2 0 4 0; +#X connect 2 0 15 0; +#X connect 4 0 1 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 12 0; -#X connect 9 0 2 0; -#X connect 9 0 13 0; -#X connect 10 0 8 0; -#X connect 10 0 9 0; -#X connect 14 0 1 0; +#X connect 8 0 9 0; +#X connect 9 0 5 0; +#X connect 10 0 5 0; +#X connect 11 0 8 0; +#X connect 12 0 1 0; +#X connect 13 0 10 0; +#X connect 13 0 2 0; +#X connect 15 0 11 0; +#X connect 16 0 12 0; +#X connect 16 0 7 0; diff --git a/pd/sendOSCMsg.py b/pd/sendOSCMsg.py index 6552643..488113d 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 stop to {0} on port {1}".format(args.ip, args.port)) + print("sending start to {0} on port {1}".format(args.ip, args.port)) client.send_message("/trigger", 0) time.sleep(2)