#N canvas 0 536 735 399 10;
#X floatatom 146 53 5 0 0 0 - - -;
#X obj 72 54 noise~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array array1 2048 float 2;
#X coords 0 1 2048 -1 700 140 1;
#X restore 14 216 graph;
#X obj 165 137 metro 50;
#X obj 165 116 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 182 93 loadbang;
#X obj 62 95 z~ 0;
#X obj 108 95 z~ 0;
#X floatatom 14 55 5 0 0 0 - - -;
#X obj 51 176 tabwrite~ array1;
#X obj 279 77 block~ 2048;
#X msg 393 66 \; pd dsp 1 \;;
#X msg 481 67 \; pd dsp 0 \;;
#X obj 50 138 sxcorr~ 2048;
#X obj 215 29 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 233 28 <-bang 3rd inlet to reset;
#X text 264 102 it takes a few blocks to even out the normalization
;
#X text 259 116 but over long signals it is very accurate;
#X text 244 158 when using xcorr~.pd for long periods of time \,;
#X text 238 172 you can expect the accumulators to exceed float pt
ranges;
#X connect 0 0 7 1;
#X connect 1 0 7 0;
#X connect 1 0 6 0;
#X connect 3 0 9 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 13 0;
#X connect 7 0 13 1;
#X connect 8 0 6 1;
#X connect 13 0 9 0;
#X connect 14 0 13 2;
