From 57045df5fe3ec557e57dc7434ac1a07b5521bffc Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Mon, 29 Jul 2002 17:06:19 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r58, which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=59 --- pd/doc/7.stuff/tools/latency.pd | 97 ++++++++++ pd/doc/7.stuff/tools/load-meter.pd | 21 +++ pd/doc/7.stuff/tools/testtone.pd | 366 +++++++++++++++++++++++++++++++++++++ 3 files changed, 484 insertions(+) create mode 100644 pd/doc/7.stuff/tools/latency.pd create mode 100644 pd/doc/7.stuff/tools/load-meter.pd create mode 100644 pd/doc/7.stuff/tools/testtone.pd (limited to 'pd/doc/7.stuff/tools') diff --git a/pd/doc/7.stuff/tools/latency.pd b/pd/doc/7.stuff/tools/latency.pd new file mode 100644 index 00000000..ce6db34d --- /dev/null +++ b/pd/doc/7.stuff/tools/latency.pd @@ -0,0 +1,97 @@ +#N canvas 37 -7 825 630 12; +#X obj 98 184 metro 500; +#X obj 60 296 sig~; +#X msg 60 267 0.5; +#X obj 96 245 del 3; +#X msg 96 270 0; +#X obj 33 325 dac~; +#X obj 286 216 adc~; +#X obj 290 312 timer; +#X obj 92 335 env~ 65536; +#X floatatom 92 362 4 0 0; +#X floatatom 339 170 4 0 0; +#X obj 339 193 + 100; +#X obj 339 218 dbtorms; +#X obj 180 335 env~ 65536; +#X floatatom 180 364 4 0 0; +#X floatatom 290 349 4 0 0; +#X obj 312 245 *~ 1; +#X obj 312 282 threshold~ 0.1 5 0.05 5; +#X obj 634 160 bonk~; +#X obj 634 188 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 508 188 osc~ 440; +#X obj 530 214 *~ 0; +#X obj 582 189 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#X obj 571 211 * 0.1; +#X obj 80 25 vdl 15 1 0 3 empty empty empty 0 -6 0 8 -262144 -1 -1 +0; +#X msg 17 138 \; pd dsp 1; +#X obj 634 132 *~; +#X obj 16 113 sel 0; +#X text 100 20 off; +#X obj 96 156 == 1; +#X obj 80 78 t f; +#X text 102 36 measure latency; +#X text 100 53 test continuity; +#X obj 582 97 == 2; +#X text 89 381 level out; +#X text 181 382 level in; +#X obj 530 244 dac~; +#X text 291 370 latency in; +#X text 292 386 msec; +#X text 656 188 this flashes when; +#X text 656 207 a discontinuity is; +#X text 657 226 detected; +#X obj 642 105 adc~; +#X text 328 131 you can; +#X text 324 147 adjust gain here; +#X text 538 66 --- continuity check ---; +#X text 169 105 --- latency measurement ---; +#X text 63 410 To use this patch \, connect your audio output back +to the audio input (channel 1 should suffice.) The latency measurement +assumes the feedback gain is at least about -14 dB - you can increase +the input sensitivity if need be.; +#X text 66 481 If you select "measure latency" a series of pulses are +timed using the "threshold~" object - note that it has an uncertainty +of 1.45 msec (at 44K1) \, so you might see the number jitter even if +the latency is constant.; +#X text 66 554 Select "test continuity' to see if there are interruptions +in the sound \, either at the input or output stage. If there are \, +the button will flash.; +#X connect 0 0 2 0; +#X connect 0 0 3 0; +#X connect 0 0 7 0; +#X connect 1 0 8 0; +#X connect 1 0 5 0; +#X connect 1 0 5 1; +#X connect 2 0 1 0; +#X connect 3 0 4 0; +#X connect 4 0 1 0; +#X connect 6 0 16 0; +#X connect 7 0 15 0; +#X connect 8 0 9 0; +#X connect 10 0 11 0; +#X connect 11 0 12 0; +#X connect 12 0 16 1; +#X connect 13 0 14 0; +#X connect 16 0 13 0; +#X connect 16 0 17 0; +#X connect 17 0 7 1; +#X connect 18 0 19 0; +#X connect 20 0 21 0; +#X connect 21 0 36 0; +#X connect 21 0 36 1; +#X connect 22 0 23 0; +#X connect 23 0 21 1; +#X connect 24 0 30 0; +#X connect 26 0 18 0; +#X connect 27 1 25 0; +#X connect 29 0 0 0; +#X connect 30 0 27 0; +#X connect 30 0 29 0; +#X connect 30 0 33 0; +#X connect 33 0 22 0; +#X connect 33 0 26 1; +#X connect 42 0 26 0; diff --git a/pd/doc/7.stuff/tools/load-meter.pd b/pd/doc/7.stuff/tools/load-meter.pd new file mode 100644 index 00000000..6a73b5a4 --- /dev/null +++ b/pd/doc/7.stuff/tools/load-meter.pd @@ -0,0 +1,21 @@ +#N canvas 161 261 299 317 12; +#X floatatom 118 256; +#X obj 118 168 cputime; +#X obj 118 28 loadbang; +#X obj 118 112 metro 1000; +#X msg 118 56 1; +#X floatatom 118 84; +#X obj 118 140 t b b; +#X obj 118 228 * 0.1; +#X obj 118 197 int; +#X text 163 84 <-- on/off; +#X text 51 284 CPU load in percent; +#X connect 1 0 8 0; +#X connect 2 0 4 0; +#X connect 3 0 6 0; +#X connect 4 0 5 0; +#X connect 5 0 3 0; +#X connect 6 0 1 0; +#X connect 6 1 1 1; +#X connect 7 0 0 0; +#X connect 8 0 7 0; diff --git a/pd/doc/7.stuff/tools/testtone.pd b/pd/doc/7.stuff/tools/testtone.pd new file mode 100644 index 00000000..965859c7 --- /dev/null +++ b/pd/doc/7.stuff/tools/testtone.pd @@ -0,0 +1,366 @@ +#N canvas 36 16 581 402 12; +#X floatatom 83 307 3 0 0; +#X obj 33 257 notein; +#X obj 33 283 stripnote; +#X floatatom 32 308 3 0 0; +#X text 35 5 Welcome to Pd ("Pure Data"). This window can test your +audio and MIDI connections. To see Pd's DOCUMENTATION select "getting +started" in the Help menu.; +#X text 236 258 MIDI OUT; +#X text 33 233 MIDI IN; +#X floatatom 175 305 3 0 0; +#X floatatom 136 304 3 0 0; +#X obj 136 279 ctlin; +#N canvas 0 0 484 446 midi 0; +#X obj 95 61 inlet; +#X obj 96 262 noteout; +#X floatatom 96 92 0 0 0; +#X obj 107 120 outlet; +#X obj 338 113 loadbang; +#X obj 96 184 metro; +#X obj 96 236 makenote; +#X floatatom 189 166 0 0 0; +#X obj 96 210 f; +#X floatatom 145 166 0 0 0; +#X floatatom 233 166 0 0 0; +#X floatatom 276 166 0 0 0; +#X msg 338 148 500; +#X msg 370 148 60; +#X msg 399 148 64; +#X msg 427 148 250; +#X text 144 145 rate; +#X text 187 145 pitch; +#X text 232 145 vel; +#X text 268 146 length; +#X obj 230 257 ctlout 1; +#X floatatom 231 228 0 0 0; +#X connect 0 0 2 0; +#X connect 2 0 3 0; +#X connect 2 0 5 0; +#X connect 4 0 12 0; +#X connect 4 0 13 0; +#X connect 4 0 14 0; +#X connect 4 0 15 0; +#X connect 5 0 8 0; +#X connect 6 0 1 0; +#X connect 6 1 1 1; +#X connect 7 0 8 1; +#X connect 8 0 6 0; +#X connect 9 0 5 1; +#X connect 10 0 6 1; +#X connect 11 0 6 2; +#X connect 12 0 9 0; +#X connect 13 0 7 0; +#X connect 14 0 10 0; +#X connect 15 0 11 0; +#X connect 21 0 20 0; +#X restore 236 308 pd midi; +#X floatatom 149 183 3 0 0; +#X floatatom 182 183 3 0 0; +#X text 24 341 PD is COPYRIGHT 1997-2002 by Miller Puckette and others +but is free for you to use for any reasonable purpose. See the file +\, LICENSE.txt in the distribution.; +#X obj 145 115 tgl 20 0 tone-ch1 tone-ch1 1 5 -8 192 12 -262144 -1 +-1 1 1; +#X obj 170 115 tgl 20 0 tone-ch2 tone-ch2 2 5 -8 192 12 -262144 -1 +-1 1 1; +#X obj 236 282 tgl 20 0 empty empty empty 20 8 0 8 -262144 -1 -1 0 +1; +#X obj 394 110 tgl 20 0 tone-monitor set-tone-monitor monitor 25 10 +192 12 -262144 -1 -1 0 1; +#X obj 36 132 vdl 20 1 0 3 tone-radio set-tone-radio empty 20 8 192 +8 -262144 -1 -1 2; +#X text 62 177 OFF; +#X text 62 154 -40; +#X text 62 131 -20; +#N canvas 0 0 536 251 more 0; +#X floatatom 42 209 0 0 0; +#X obj 42 183 f; +#X obj 79 183 + 1; +#X obj 42 150 metro 1000; +#X obj 42 123 tgl 20 0 empty empty empty 20 8 0 8 -262144 -1 -1 0 1 +; +#X msg 264 142 \; pd restart-audio; +#X text 24 30 this window has various wierd debugging stuff...; +#X text 218 97 ALSA gets twisted after a few; +#X text 216 118 hours sometimes... use this to fix:; +#X text 22 74 see if Pd's time; +#X text 22 93 measurement works:; +#X connect 1 0 2 0; +#X connect 1 0 0 0; +#X connect 2 0 1 1; +#X connect 3 0 1 0; +#X connect 4 0 3 0; +#X restore 459 298 pd more; +#X obj 393 148 tgl 20 0 tone-hipass set-tone-hipass input-hipass 25 +10 192 12 -262144 -1 -1 0 1; +#X obj 195 115 tgl 20 0 tone-ch3 tone-ch3 3 5 -8 192 12 -262144 -1 +-1 1 1; +#X obj 220 115 tgl 20 0 tone-ch4 tone-ch4 4 5 -8 192 12 -262144 -1 +-1 1 1; +#X obj 245 115 tgl 20 0 tone-ch5 tone-ch5 5 5 -8 192 12 -262144 -1 +-1 1 1; +#X obj 270 115 tgl 20 0 tone-ch6 tone-ch6 6 5 -8 192 12 -262144 -1 +-1 1 1; +#X obj 304 106 bng 15 250 50 0 tone-all empty ALL 20 8 128 12 -262144 +-1 -1; +#X obj 304 127 bng 15 250 50 0 tone-none empty NONE 20 8 128 12 -262144 +-1 -1; +#X floatatom 215 183 3 0 0; +#X floatatom 248 183 3 0 0; +#X floatatom 281 184 3 0 0; +#X floatatom 315 184 3 0 0; +#X text 164 208 AUDIO INPUT (RMS dB); +#X text 41 83 TEST; +#X text 40 103 TONE; +#X text 152 76 test tone channels:; +#N canvas 29 216 908 548 -------audio---- 0; +#X obj 182 92 hip~ 5; +#X obj 23 351 *~; +#X obj 45 324 line~; +#X obj 190 169 outlet; +#X obj 45 297 pack 0 50; +#X obj 22 134 osc~; +#X floatatom 45 245 0 0 0; +#X obj 45 270 dbtorms; +#X obj 190 143 int; +#X obj 22 66 mtof; +#X floatatom 22 43 0 0 0; +#X floatatom 22 88 0 0 0; +#X obj 22 110 sig~; +#X obj 190 117 env~ 8192; +#X obj 182 39 adc~ 1; +#X obj 23 377 s~ tone-osc; +#X obj 45 162 r tone-radio; +#X obj 22 18 r tone-pitch; +#X obj 45 190 sel 0 1 2; +#X msg 114 213 0; +#X msg 45 215 80; +#X msg 78 215 60; +#X obj 192 192 r~ tone-mon; +#X obj 201 327 line~; +#X obj 182 217 *~; +#X obj 201 300 pack 0 50; +#X obj 201 274 r tone-ch1; +#X obj 192 247 r~ tone-osc; +#X obj 192 352 *~; +#X obj 182 407 dac~ 1; +#X obj 182 382 +~; +#X obj 190 65 r tone-hip; +#X obj 16 487 s~ tone-mon; +#X obj 16 461 line~; +#X obj 17 433 pack 0 50; +#X obj 17 407 r tone-monitor; +#X obj 302 91 hip~ 5; +#X obj 310 168 outlet; +#X obj 310 142 int; +#X obj 310 116 env~ 8192; +#X obj 312 191 r~ tone-mon; +#X obj 321 326 line~; +#X obj 302 216 *~; +#X obj 321 299 pack 0 50; +#X obj 312 246 r~ tone-osc; +#X obj 312 351 *~; +#X obj 302 381 +~; +#X obj 310 64 r tone-hip; +#X obj 302 38 adc~ 2; +#X obj 302 406 dac~ 2; +#X obj 321 273 r tone-ch2; +#X obj 177 485 * 5; +#X obj 177 510 s tone-hip; +#X obj 179 459 r tone-hipass; +#N canvas 499 63 548 519 glue+loadbang 0; +#X obj 171 21 loadbang; +#X msg 171 49 \; pd dsp 1 \; tone-pitch 69 \; tone-radio 2 \; set-tone-radio +2 \; tone-all 1 \;; +#X obj 171 176 r tone-all; +#X msg 171 204 \; tone-ch1 1 \; tone-ch2 1 \; tone-ch3 1 \; tone-ch4 +1 \; tone-ch5 1 \; tone-ch6 1; +#X obj 168 323 r tone-none; +#X msg 168 352 \; tone-ch1 0 \; tone-ch2 0 \; tone-ch3 0 \; tone-ch4 +0 \; tone-ch5 0 \; tone-ch6 0; +#X connect 0 0 1 0; +#X connect 2 0 3 0; +#X connect 4 0 5 0; +#X restore 14 516 pd glue+loadbang; +#X obj 424 93 hip~ 5; +#X obj 432 170 outlet; +#X obj 432 144 int; +#X obj 432 118 env~ 8192; +#X obj 434 193 r~ tone-mon; +#X obj 443 328 line~; +#X obj 424 218 *~; +#X obj 443 301 pack 0 50; +#X obj 434 248 r~ tone-osc; +#X obj 434 353 *~; +#X obj 424 383 +~; +#X obj 432 66 r tone-hip; +#X obj 544 92 hip~ 5; +#X obj 552 169 outlet; +#X obj 552 143 int; +#X obj 552 117 env~ 8192; +#X obj 554 192 r~ tone-mon; +#X obj 563 327 line~; +#X obj 544 217 *~; +#X obj 563 300 pack 0 50; +#X obj 554 247 r~ tone-osc; +#X obj 554 352 *~; +#X obj 544 382 +~; +#X obj 552 65 r tone-hip; +#X obj 661 92 hip~ 5; +#X obj 669 169 outlet; +#X obj 669 143 int; +#X obj 669 117 env~ 8192; +#X obj 671 192 r~ tone-mon; +#X obj 680 327 line~; +#X obj 661 217 *~; +#X obj 680 300 pack 0 50; +#X obj 671 247 r~ tone-osc; +#X obj 671 352 *~; +#X obj 661 382 +~; +#X obj 669 65 r tone-hip; +#X obj 781 91 hip~ 5; +#X obj 789 168 outlet; +#X obj 789 142 int; +#X obj 789 116 env~ 8192; +#X obj 791 191 r~ tone-mon; +#X obj 800 326 line~; +#X obj 781 216 *~; +#X obj 800 299 pack 0 50; +#X obj 791 246 r~ tone-osc; +#X obj 791 351 *~; +#X obj 781 381 +~; +#X obj 789 64 r tone-hip; +#X obj 424 40 adc~ 3; +#X obj 544 39 adc~ 4; +#X obj 661 39 adc~ 5; +#X obj 781 38 adc~ 6; +#X obj 443 275 r tone-ch3; +#X obj 563 273 r tone-ch4; +#X obj 680 274 r tone-ch5; +#X obj 800 273 r tone-ch6; +#X obj 424 408 dac~ 3; +#X obj 543 406 dac~ 4; +#X obj 661 407 dac~ 5; +#X obj 781 406 dac~ 6; +#X connect 0 0 24 0; +#X connect 0 0 13 0; +#X connect 1 0 15 0; +#X connect 2 0 1 1; +#X connect 4 0 2 0; +#X connect 5 0 1 0; +#X connect 6 0 7 0; +#X connect 7 0 4 0; +#X connect 8 0 3 0; +#X connect 9 0 11 0; +#X connect 10 0 9 0; +#X connect 11 0 12 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 16 0 18 0; +#X connect 17 0 10 0; +#X connect 18 0 20 0; +#X connect 18 1 21 0; +#X connect 18 2 19 0; +#X connect 19 0 6 0; +#X connect 20 0 6 0; +#X connect 21 0 6 0; +#X connect 22 0 24 1; +#X connect 23 0 28 1; +#X connect 24 0 30 0; +#X connect 25 0 23 0; +#X connect 26 0 25 0; +#X connect 27 0 28 0; +#X connect 28 0 30 1; +#X connect 30 0 29 0; +#X connect 31 0 0 1; +#X connect 33 0 32 0; +#X connect 34 0 33 0; +#X connect 35 0 34 0; +#X connect 36 0 42 0; +#X connect 36 0 39 0; +#X connect 38 0 37 0; +#X connect 39 0 38 0; +#X connect 40 0 42 1; +#X connect 41 0 45 1; +#X connect 42 0 46 0; +#X connect 43 0 41 0; +#X connect 44 0 45 0; +#X connect 45 0 46 1; +#X connect 46 0 49 0; +#X connect 47 0 36 1; +#X connect 48 0 36 0; +#X connect 50 0 43 0; +#X connect 51 0 52 0; +#X connect 53 0 51 0; +#X connect 55 0 61 0; +#X connect 55 0 58 0; +#X connect 57 0 56 0; +#X connect 58 0 57 0; +#X connect 59 0 61 1; +#X connect 60 0 64 1; +#X connect 61 0 65 0; +#X connect 62 0 60 0; +#X connect 63 0 64 0; +#X connect 64 0 65 1; +#X connect 65 0 111 0; +#X connect 66 0 55 1; +#X connect 67 0 73 0; +#X connect 67 0 70 0; +#X connect 69 0 68 0; +#X connect 70 0 69 0; +#X connect 71 0 73 1; +#X connect 72 0 76 1; +#X connect 73 0 77 0; +#X connect 74 0 72 0; +#X connect 75 0 76 0; +#X connect 76 0 77 1; +#X connect 77 0 112 0; +#X connect 78 0 67 1; +#X connect 79 0 85 0; +#X connect 79 0 82 0; +#X connect 81 0 80 0; +#X connect 82 0 81 0; +#X connect 83 0 85 1; +#X connect 84 0 88 1; +#X connect 85 0 89 0; +#X connect 86 0 84 0; +#X connect 87 0 88 0; +#X connect 88 0 89 1; +#X connect 89 0 113 0; +#X connect 90 0 79 1; +#X connect 91 0 97 0; +#X connect 91 0 94 0; +#X connect 93 0 92 0; +#X connect 94 0 93 0; +#X connect 95 0 97 1; +#X connect 96 0 100 1; +#X connect 97 0 101 0; +#X connect 98 0 96 0; +#X connect 99 0 100 0; +#X connect 100 0 101 1; +#X connect 101 0 114 0; +#X connect 102 0 91 1; +#X connect 103 0 55 0; +#X connect 104 0 67 0; +#X connect 105 0 79 0; +#X connect 106 0 91 0; +#X connect 107 0 62 0; +#X connect 108 0 74 0; +#X connect 109 0 86 0; +#X connect 110 0 98 0; +#X restore 149 157 pd -------audio----; +#X connect 1 0 2 0; +#X connect 1 1 2 1; +#X connect 2 0 3 0; +#X connect 2 1 0 0; +#X connect 9 0 8 0; +#X connect 9 1 7 0; +#X connect 16 0 10 0; +#X connect 38 0 11 0; +#X connect 38 1 12 0; +#X connect 38 2 30 0; +#X connect 38 3 31 0; +#X connect 38 4 32 0; +#X connect 38 5 33 0; -- cgit v1.2.1