Hello, I've been in need of a patch that let one slider fade between several outputs, for building the famous RSF's kobol waveshape morphing for example or many other things... The patch is attached, with an example, are there more interesting (maybe less complicated) solutions? Cheers, PC.
#N canvas 0 0 339 233 10; #N canvas 29 318 179 311 fade-morph 0; #X obj 42 8 inlet; #X obj 41 267 outlet; #X obj 42 114 change; #X obj 41 245 /; #X obj 42 157 -; #X obj 109 50 $2; #X obj 127 118 / 2; #X obj 42 178 abs; #X obj 42 200 -; #X obj 42 222 abs; #X obj 42 135 - $1; #X obj 42 30 t a b; #X obj 80 72 + $1; #X obj 42 91 clip $1; #X connect 0 0 11 0; #X connect 2 0 10 0; #X connect 3 0 1 0; #X connect 4 0 7 0; #X connect 5 0 6 0; #X connect 5 0 12 0; #X connect 6 0 4 1; #X connect 6 0 3 1; #X connect 6 0 8 1; #X connect 7 0 8 0; #X connect 8 0 9 0; #X connect 9 0 3 0; #X connect 10 0 4 0; #X connect 11 0 13 0; #X connect 11 1 5 0; #X connect 12 0 13 2; #X connect 13 0 2 0; #X restore 163 121 pd fade-morph; #X text 161 47 $2 = ending fade out; #X text 161 26 $1 = begining fade in; #X text 148 66 $2/2 = top level; #X text 86 44 inlet; #X text 72 189 outlet = value between 0 and 1; #X obj 163 94 inlet; #X obj 163 145 outlet; #X connect 0 0 7 0; #X connect 6 0 0 0;
#N canvas 521 242 461 404 10; #X obj 162 65 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144 -1 -1 0 1; #X obj 33 149 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144 -1 -1 12700 1; #X obj 127 149 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144 -1 -1 0 1; #X obj 227 154 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144 -1 -1 0 1; #X obj 336 150 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144 -1 -1 0 1; #X obj 349 116 fade-morph 84 86; #X obj 112 120 fade-morph 0 84; #X obj 228 118 fade-morph 41 84; #X obj 25 96 fade-morph -42 84; #X text 160 48 0....127; #X obj 84 357 print A; #X obj 134 358 print B; #X obj 186 358 print C; #X obj 236 359 print D; #X connect 0 0 5 0; #X connect 0 0 6 0; #X connect 0 0 7 0; #X connect 0 0 8 0; #X connect 1 0 10 0; #X connect 2 0 11 0; #X connect 3 0 12 0; #X connect 4 0 13 0; #X connect 5 0 4 0; #X connect 6 0 2 0; #X connect 7 0 3 0; #X connect 8 0 1 0;