aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/3.audio.examples/H04.filter.sweep.pd
blob: 1675e9a6536f8da44394e6bd6cba310aeffef75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#N canvas 360 22 557 528 12;
#X floatatom 44 146 5 0 150 0 - #0-pitch -;
#X text 126 9 SWEEPING FILTERS;
#X obj 44 193 phasor~;
#X obj 59 351 +~;
#X floatatom 81 326 5 0 100 0 - #0-offset -;
#X floatatom 60 222 5 0 0 0 - #0-speed -;
#X floatatom 82 273 5 0 100 0 - #0-depth -;
#X floatatom 75 404 5 0 1000 0 - #0-q -;
#X obj 44 426 vcf~;
#X obj 59 375 tabread4~ mtof;
#X text 127 403 <-- Q (selectivity);
#X text 115 182 sawtooth;
#X text 116 198 oscillator;
#X text 112 221 <-- sweep speed;
#X text 137 245 LFO for sweep;
#X text 134 274 <-- sweep depth;
#X text 131 326 <-- base center frequency;
#X text 103 350 add base to sweep;
#X text 192 375 convert to Hz.;
#X text 97 144 <-- pitch;
#X obj 43 457 output~;
#X obj 44 169 mtof;
#X obj 60 244 phasor~;
#X obj 60 298 *~;
#X text 294 496 updated for Pd version 0.39;
#N canvas 706 247 450 300 startup 0;
#X obj 85 16 loadbang;
#X obj 85 40 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 85 59 f \$0;
#X text 9 257 boxes.;
#X text 18 209 This subpatch loads initial values in number;
#X msg 85 83 \; \$1-pitch 48 \; \$1-speed -2 \; \$1-depth 27 \; \$1-offset
56 \; \$1-q 2;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X restore 168 491 pd startup;
#X text 14 109 Note the different effects of negative and positive
sweep speeds.;
#X text 13 32 If you want actively changing center frequencies \, use
"vcf~" instead of "bp~". The vcf~ module takes an audio signal to set
center frequency. (Q is still set by messages though.) Vcf is computationally
somewhat more expensive than bp~.;
#N canvas 0 22 612 404 conversion-tables 0;
#N canvas 0 22 450 300 graph2 0;
#X array mtof 130 float 1;
#A 0 8.1758 8.66196 9.17702 9.72272 10.3009 10.9134 11.5623 12.2499
12.9783 13.75 14.5676 15.4339 16.3516 17.3239 18.354 19.4454 20.6017
21.8268 23.1247 24.4997 25.9565 27.5 29.1352 30.8677 32.7032 34.6478
36.7081 38.8909 41.2034 43.6535 46.2493 48.9994 51.9131 55 58.2705
61.7354 65.4064 69.2957 73.4162 77.7817 82.4069 87.3071 92.4986 97.9989
103.826 110 116.541 123.471 130.813 138.591 146.832 155.563 164.814
174.614 184.997 195.998 207.652 220 233.082 246.942 261.626 277.183
293.665 311.127 329.628 349.228 369.994 391.995 415.305 440 466.164
493.883 523.251 554.365 587.33 622.254 659.255 698.456 739.989 783.991
830.609 880 932.328 987.767 1046.5 1108.73 1174.66 1244.51 1318.51
1396.91 1479.98 1567.98 1661.22 1760 1864.66 1975.53 2093 2217.46 2349.32
2489.02 2637.02 2793.83 2959.96 3135.96 3322.44 3520 3729.31 3951.07
4186.01 4434.92 4698.64 4978.03 5274.04 5587.65 5919.91 6271.93 6644.88
7040 7458.62 7902.13 8372.02 8869.84 9397.27 9956.06 10548.1 11175.3
11839.8 12543.9 13289.8 14080;
#X coords 0 12000 130 0 200 100 1;
#X restore 309 225 graph;
#X text 319 333 ------ 130 samples ------;
#X text 518 318 0;
#X text 520 218 12000;
#X restore 168 463 pd conversion-tables;
#X connect 0 0 21 0;
#X connect 2 0 8 0;
#X connect 3 0 9 0;
#X connect 4 0 3 1;
#X connect 5 0 22 0;
#X connect 6 0 23 1;
#X connect 7 0 8 2;
#X connect 8 0 20 0;
#X connect 8 0 20 1;
#X connect 9 0 8 1;
#X connect 21 0 2 0;
#X connect 22 0 23 0;
#X connect 23 0 3 0;