#N canvas 713 70 497 378 10; #N canvas 488 485 1023 388 playcount 1; #X obj 71 22 inlet; #X obj 71 295 outlet; #X obj 71 55 openpanel; #X msg 71 178 read \$1; #X obj 71 206 soundfile_info; #X obj 250 248 readsf~ 2; #X text 255 82 start playback; #X text 363 186 stop it; #X obj 71 153 t a a; #X msg 160 170 open \$1; #X obj 71 234 zl nth 3; #X obj 250 278 dac~; #X obj 71 264 / 44100; #X obj 558 197 counter; #X obj 558 161 metro 1; #X obj 558 233 / 1000; #X obj 618 254 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 0.57 256; #X obj 618 226 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 570 256; #X obj 531 129 t b 0; #X text 369 221 stop metro & reset counter; #X obj 558 291 outlet; #X text 109 22 bang to load file; #X obj 250 23 inlet; #X text 296 22 1 to start playing 0 to stop; #X text 574 97 + if 1 bangs nowhere \, if 0 \, 0 to stop metro and reset counter; #X text 70 325 total length of wav in ms; #X text 557 320 elapsed time in s.ms; #X obj 531 105 sel 0; #X text 610 189 <- using the 3rd inlet so counter will reset to 0 without outputing the result; #X text 281 263 <- corrected patch chords; #X obj 71 132 symbol; #X obj 78 108 sel 1; #X obj 250 55 t f f; #X text 117 127 <- this will save the path to your file \, allowing playback without reloading; #X connect 0 0 2 0; #X connect 2 0 30 0; #X connect 3 0 4 0; #X connect 4 0 10 0; #X connect 5 0 11 0; #X connect 5 1 11 1; #X connect 5 2 18 0; #X connect 8 0 3 0; #X connect 8 1 9 0; #X connect 9 0 5 0; #X connect 10 0 12 0; #X connect 12 0 1 0; #X connect 13 0 15 0; #X connect 13 0 17 0; #X connect 14 0 13 0; #X connect 15 0 16 0; #X connect 15 0 20 0; #X connect 18 0 13 2; #X connect 18 1 14 0; #X connect 22 0 14 0; #X connect 22 0 27 0; #X connect 22 0 32 0; #X connect 27 0 18 0; #X connect 30 0 8 0; #X connect 31 0 30 0; #X connect 32 0 5 0; #X connect 32 1 31 0; #X restore 32 63 pd playcount; #X text 30 1 bang to load file; #X text 120 32 1 to start playing 0 to stop; #X obj 101 33 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 32 20 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 32 120 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 5.82388 256; #X obj 101 95 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 0.57 256; #X text 160 92 elapsed time in s \, ms; #X text 92 118 total length of file in ms; #X connect 0 0 5 0; #X connect 0 1 6 0; #X connect 3 0 0 1; #X connect 4 0 0 0;