From 068bc1474e2a16957787818df31ce4fa1da4358a Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 22 Nov 2010 04:28:47 +0000 Subject: added object for doing a fade-in-out line svn path=/trunk/externals/framesync/; revision=14470 --- fadeinout-help.pd | 24 ++++++++++++++++++++++++ fadeinout.pd | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 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..4ac44d0 --- /dev/null +++ b/fadeinout-help.pd @@ -0,0 +1,24 @@ +#N canvas 648 414 404 386 10; +#X floatatom 80 212 9 0 0 0 - - -; +#X obj 83 239 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X obj 83 68 frameclock 100; +#X floatatom 230 212 9 0 0 0 - - -; +#X obj 233 239 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X obj 80 184 fadeinout 10 20 40 50; +#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 obj 230 184 fadeinout 25 40 90 95; +#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 connect 0 0 1 0; +#X connect 3 0 4 0; +#X connect 5 0 0 0; +#X connect 8 0 3 0; diff --git a/fadeinout.pd b/fadeinout.pd new file mode 100644 index 0000000..56c7122 --- /dev/null +++ b/fadeinout.pd @@ -0,0 +1,41 @@ +#N canvas 761 232 404 407 10; +#X text 143 16 frame; +#X obj 62 192 bang; +#X msg 62 212 0; +#X obj 105 81 moses \$1; +#X obj 150 102 moses \$2; +#X obj 202 191 bang; +#X msg 202 212 1; +#X obj 195 125 moses \$3; +#X obj 240 146 moses \$4; +#X obj 260 232 mapping/reverse; +#X obj 192 43 inlet; +#X obj 232 43 inlet; +#X obj 272 43 inlet; +#X obj 312 43 inlet; +#X obj 127 340 outlet; +#X obj 107 212 fsline \$1 \$2; +#X obj 260 211 fsline \$3 \$4; +#X obj 105 13 receive framesync/frameclock; +#X connect 1 0 2 0; +#X connect 2 0 14 0; +#X connect 3 0 1 0; +#X connect 3 1 4 0; +#X connect 4 1 7 0; +#X connect 5 0 6 0; +#X connect 6 0 14 0; +#X connect 7 0 5 0; +#X connect 7 1 8 0; +#X connect 8 1 1 0; +#X connect 9 0 14 0; +#X connect 10 0 3 1; +#X connect 10 0 15 0; +#X connect 11 0 4 1; +#X connect 11 0 15 1; +#X connect 12 0 7 1; +#X connect 12 0 16 0; +#X connect 13 0 8 1; +#X connect 13 0 16 1; +#X connect 15 0 14 0; +#X connect 16 0 9 0; +#X connect 17 0 3 0; -- cgit v1.2.1