aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/3.audio.examples/03.line.pd
diff options
context:
space:
mode:
Diffstat (limited to 'pd/doc/3.audio.examples/03.line.pd')
-rw-r--r--pd/doc/3.audio.examples/03.line.pd50
1 files changed, 50 insertions, 0 deletions
diff --git a/pd/doc/3.audio.examples/03.line.pd b/pd/doc/3.audio.examples/03.line.pd
new file mode 100644
index 00000000..535152f2
--- /dev/null
+++ b/pd/doc/3.audio.examples/03.line.pd
@@ -0,0 +1,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;