aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/3.audio.examples/D02.adsr.pd
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2003-05-09 16:04:00 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2003-05-09 16:04:00 +0000
commit9c0e19a3be2288db79e2502e5fa450c3e20a668d (patch)
treeca97ce615e037a533304fc4660dcf372ca3b9cd6 /pd/doc/3.audio.examples/D02.adsr.pd
parentef50dd62804d54af7da18d8bd8413c0dccd729b8 (diff)
This commit was generated by cvs2svn to compensate for changes in r610,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=611
Diffstat (limited to 'pd/doc/3.audio.examples/D02.adsr.pd')
-rw-r--r--pd/doc/3.audio.examples/D02.adsr.pd34
1 files changed, 34 insertions, 0 deletions
diff --git a/pd/doc/3.audio.examples/D02.adsr.pd b/pd/doc/3.audio.examples/D02.adsr.pd
new file mode 100644
index 00000000..06fa21b7
--- /dev/null
+++ b/pd/doc/3.audio.examples/D02.adsr.pd
@@ -0,0 +1,34 @@
+#N canvas 141 83 672 516 12;
+#X text 412 489 updated for Pd version 0.26;
+#X graph graph1 0 -1.02 44100 1.02 395 235 595 105;
+#X array adsr-output 44100 float 0;
+#X pop;
+#X text 394 244 ------ 1 second ------;
+#X obj 32 74 r trigger;
+#X obj 32 148 tabwrite~ adsr-output;
+#X obj 54 123 r graphit;
+#X msg 31 176 bang;
+#X text 75 177 <-- attack and delayed release;
+#X obj 42 200 del 500;
+#X text 146 283 <-- attack only;
+#X msg 31 264 \; pd dsp 1 \; trigger 1 \; graphit bang;
+#X text 147 360 <-- release only;
+#X msg 30 334 \; pd dsp 1 \; trigger 0 \; graphit bang;
+#X msg 42 225 \; trigger 0;
+#X text 598 221 -1;
+#X text 600 96 1;
+#X text 35 24 This patch introduces a simple "adsr" abstraction we'll
+use frequently. You can click on the "adsr" object to see what's inside.
+;
+#X text 30 402 The active ingredient of the ADSR envelope generator
+is a single line~ which gets passed messages to make the attack and
+release behavior. You can retrigger the ADSR envelope generator all
+you wish without having to wait for attacks or releases to finish;
+#X text 104 5 ENVELOPE GENERATOR ABSTRACTION;
+#X obj 32 100 adsr 1 100 200 50 300;
+#X connect 3 0 19 0;
+#X connect 5 0 4 0;
+#X connect 6 0 10 0;
+#X connect 6 0 8 0;
+#X connect 8 0 13 0;
+#X connect 19 0 4 0;