1
#N canvas 37 0 825 630 12;
2
#X obj 132 166 metro 500;
9
#X obj 93 333 env~ 65536;
10
#X floatatom 93 360 4 0 0 0 - - -;
11
#X floatatom 339 170 4 0 0 0 - - -;
13
#X obj 339 218 dbtorms;
14
#X obj 181 333 env~ 65536;
15
#X floatatom 181 362 4 0 0 0 - - -;
16
#X floatatom 291 347 4 0 0 0 - - -;
18
#X obj 348 278 threshold~ 0.1 5 0.05 5;
20
#X obj 634 188 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
22
#X obj 508 188 osc~ 440;
24
#X obj 582 189 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
27
#X obj 79 25 vdl 15 1 0 3 empty empty empty 0 -6 0 8 -262144 -1 -1
29
#X msg 17 138 \; pd dsp 1;
35
#X text 102 36 measure latency;
36
#X text 100 53 test continuity;
38
#X text 90 379 level out;
39
#X text 182 380 level in;
41
#X text 292 368 latency in;
43
#X text 656 188 this flashes when;
44
#X text 656 207 a discontinuity is;
45
#X text 657 226 detected;
47
#X text 328 131 you can;
48
#X text 324 147 adjust gain here;
49
#X text 538 66 --- continuity check ---;
50
#X text 169 105 --- latency measurement ---;
51
#X text 67 420 To use this patch \, connect your audio output back
52
to the audio input (channel 1 should suffice.) The latency measurement
53
assumes the feedback gain is at least about -14 dB - you can increase
54
the input sensitivity if need be.;
55
#X text 70 491 If you select "measure latency" a series of pulses are
56
timed using the "threshold~" object - note that it has an uncertainty
57
of 1.45 msec (at 44K1) \, so you might see the number jitter even if
58
the latency is constant.;
59
#X text 70 564 Select "test continuity' to see if there are interruptions
60
in the sound \, either at the input or output stage. If there are \,
61
the button will flash.;
63
#X obj 133 279 threshold~ 0.1 5 0.05 5;