aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/3.audio.examples/03.line.pd
blob: 535152f24cafaffb02d83b93b9b24b67ae3f9917 (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
#N canvas 30 68 683 481 12;
#X obj 56 79 osc~ 440;
#X obj 56 309 dac~;
#X msg 446 79 \; pd dsp 1;
#X msg 538 79 \; pd dsp 0;
#X text 467 112 ON;
#X text 555 112 OFF;
#X obj 56 269 *~;
#X obj 72 235 line~;
#X text 129 235 <--- ramp generator;
#X text 124 78 <-- sine wave;
#X msg 72 103 0.1 2000;
#X msg 72 169 0 2000;
#X msg 72 125 0.1 50;
#X msg 72 191 0 50;
#X msg 72 147 0.1;
#X msg 72 213 0;
#X text 274 124 ON;
#X text 154 105 <-- slow;
#X text 144 126 <-- fast;
#X text 111 146 <-- instantly;
#X text 271 189 OFF;
#X text 136 170 <-- slow;
#X text 129 191 <-- fast;
#X text 109 211 <-- instantly;
#X text 135 159 ----------------------;
#X text 93 268 <-- multiply the sine wave by the ramp. There's no longer
a "0" argument;
#X text 97 308 <-- out;
#X text 103 7 CONTROLLING AMPLITUDE USING LINE~;
#X text 38 342 Line~'s left inlet is a target value \; it reaches that
target in the time specified (in milliseconds) to its right inlet.
;
#X text 39 396 The line~ object (and its control brother \, line) treat
their right inlet specially. The inlets don't retain values the way
other inlets do but revert to zero whenever a target is received.;
#X text 14 27 In this patch \, the multiplier is configured to multiply
two signals. The amplitude is now a signal computed by the line~ object.
;
#X text 415 457 updated for Pd version 0.33;
#X connect 0 0 6 0;
#X connect 6 0 1 0;
#X connect 6 0 1 1;
#X connect 7 0 6 1;
#X connect 10 0 7 0;
#X connect 11 0 7 0;
#X connect 12 0 7 0;
#X connect 13 0 7 0;
#X connect 14 0 7 0;
#X connect 15 0 7 0;