From 136bd4f8ccaa56bda77e4a9c48ca362cbe28c00d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 22 Nov 2010 04:33:17 +0000 Subject: added object for doing a fade-in-out on a signal svn path=/trunk/externals/framesync/; revision=14471 --- fadeinout~-help.pd | 26 ++++++++++++++++++++++++++ fadeinout~.pd | 24 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 fadeinout~-help.pd create mode 100644 fadeinout~.pd diff --git a/fadeinout~-help.pd b/fadeinout~-help.pd new file mode 100644 index 0000000..d3323d2 --- /dev/null +++ b/fadeinout~-help.pd @@ -0,0 +1,26 @@ +#N canvas 648 414 404 386 10; +#X obj 83 68 frameclock 100; +#X text 33 16 Generate a 0-to-1-to-0 envelope based on frame numbers +\, outputting once per frame.; +#X text 31 285 the first argument/inlet sets the start frame of fade-in +; +#X text 31 344 the fourth argument/inlet sets the end frame of fade-out +; +#X text 31 325 the third argument/inlet sets the start frame of fade-out +; +#X text 31 304 the second argument/inlet sets the end frame of fade-in +; +#X obj 50 149 osc~ 300; +#X obj 200 150 noise~; +#X obj 50 199 *~ 0.1; +#X obj 143 243 dac~; +#X obj 200 199 *~ 0.1; +#X text 33 265 the inlet~ is for the audio to be faded in and out; +#X obj 200 174 fadeinout~ 5 40 90 95; +#X obj 50 174 fadeinout~ 10 20 40 95; +#X connect 6 0 13 0; +#X connect 7 0 12 0; +#X connect 8 0 9 0; +#X connect 10 0 9 1; +#X connect 12 0 10 0; +#X connect 13 0 8 0; diff --git a/fadeinout~.pd b/fadeinout~.pd new file mode 100644 index 0000000..e96b02d --- /dev/null +++ b/fadeinout~.pd @@ -0,0 +1,24 @@ +#N canvas 757 456 358 381 10; +#X obj 47 12 inlet~; +#X obj 47 333 outlet~; +#X obj 47 266 *~; +#X obj 113 12 inlet; +#X obj 153 12 inlet; +#X obj 193 12 inlet; +#X obj 233 12 inlet; +#X obj 62 244 line~; +#X obj 155 179 loadbang; +#X obj 62 221 pack float float; +#X obj 155 199 framesync/fps_ms; +#X obj 62 117 fadeinout \$1 \$2 \$3 \$4; +#X connect 0 0 2 0; +#X connect 2 0 1 0; +#X connect 3 0 11 0; +#X connect 4 0 11 1; +#X connect 5 0 11 2; +#X connect 6 0 11 3; +#X connect 7 0 2 1; +#X connect 8 0 10 0; +#X connect 9 0 7 0; +#X connect 10 0 9 1; +#X connect 11 0 9 0; -- cgit v1.2.1