aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/3.audio.examples/J04.corners.pd
blob: 72671d3d0fab1ed92e540bbf9ebea1f40f2dfc1c (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#N canvas 612 -7 619 714 12;
#X obj 117 132 wrap~;
#X obj 117 154 -~ 0.5;
#N canvas 0 0 450 300 graph1 0;
#X array \$0-sum 882 float 0;
#X coords 0 0.25 881 -0.25 200 130 1;
#X restore 411 70 graph;
#X text 410 208 ---- 0.02 seconds ----;
#X text 354 676 updated for Pd version 0.39;
#X obj 33 427 output~;
#X obj 127 461 tabwrite~ \$0-sum;
#X obj 117 110 -~;
#X obj 139 69 / 100;
#X floatatom 139 48 4 -100 100 0 - - -;
#X obj 138 312 / 100;
#X floatatom 138 291 4 -100 100 0 - - -;
#X obj 116 334 *~;
#X obj 203 133 wrap~;
#X obj 203 155 -~ 0.5;
#X obj 203 111 -~;
#X obj 225 70 / 100;
#X floatatom 225 49 4 -100 100 0 - - -;
#X obj 225 313 / 100;
#X floatatom 225 292 4 -100 100 0 - - -;
#X obj 203 335 *~;
#X obj 290 134 wrap~;
#X obj 290 156 -~ 0.5;
#X obj 290 112 -~;
#X obj 311 71 / 100;
#X floatatom 311 50 4 -100 100 0 - - -;
#X obj 313 314 / 100;
#X floatatom 313 293 4 -100 100 0 - - -;
#X obj 291 336 *~;
#X text 129 26 -- PHASES (percent) --;
#X text 140 267 AMPLITUDES (percent);
#X obj 91 360 +~;
#X obj 92 386 +~;
#X obj 138 413 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 138 435 metro 193;
#X obj 20 80 phasor~;
#X floatatom 20 59 5 0 0 0 - - -;
#X text 12 36 frequency;
#X obj 116 184 *~;
#X obj 203 184 *~;
#X obj 290 184 *~;
#X obj 116 209 *~ 0.5;
#X obj 116 234 -~ 0.0833;
#X obj 203 209 *~ 0.5;
#X obj 290 209 *~ 0.5;
#X obj 204 234 -~ 0.0833;
#X obj 291 234 -~ 0.0833;
#X text 30 3 Making waveforms with corners using parabolic waves;
#X text 14 499 Here we combine three parabolic waves (in the same way
as \, two patches ago \, we combined sawtooth waves). The parabolic
wave is obtained from the sawtooth wave (assuming it runs from -0.5
to 0.5) by the formula: y=x*x/2 - 1/12. This is normalized so that
the corner has a slope change of minus one unit per cycle \, and adjusted
to remove any DC component.;
#X text 12 593 In general \, the segments of the result will be curved
\, but if the three magnitudes sum algebraicly to zero \, the segments
will be linear.;
#X text 371 67 0.25;
#X text 362 184 -0.25;
#X text 14 644 Note the reduced scale of the graph (from -0.25 to 0.25)
compared to the previous examples.;
#X connect 0 0 1 0;
#X connect 1 0 38 0;
#X connect 1 0 38 1;
#X connect 7 0 0 0;
#X connect 8 0 7 1;
#X connect 9 0 8 0;
#X connect 10 0 12 1;
#X connect 11 0 10 0;
#X connect 12 0 31 0;
#X connect 13 0 14 0;
#X connect 14 0 39 0;
#X connect 14 0 39 1;
#X connect 15 0 13 0;
#X connect 16 0 15 1;
#X connect 17 0 16 0;
#X connect 18 0 20 1;
#X connect 19 0 18 0;
#X connect 20 0 31 1;
#X connect 21 0 22 0;
#X connect 22 0 40 0;
#X connect 22 0 40 1;
#X connect 23 0 21 0;
#X connect 24 0 23 1;
#X connect 25 0 24 0;
#X connect 26 0 28 1;
#X connect 27 0 26 0;
#X connect 28 0 32 1;
#X connect 31 0 32 0;
#X connect 32 0 6 0;
#X connect 32 0 5 0;
#X connect 32 0 5 1;
#X connect 33 0 34 0;
#X connect 34 0 6 0;
#X connect 35 0 7 0;
#X connect 35 0 15 0;
#X connect 35 0 23 0;
#X connect 36 0 35 0;
#X connect 38 0 41 0;
#X connect 39 0 43 0;
#X connect 40 0 44 0;
#X connect 41 0 42 0;
#X connect 42 0 12 0;
#X connect 43 0 45 0;
#X connect 44 0 46 0;
#X connect 45 0 20 0;
#X connect 46 0 28 0;