#N canvas 52 134 1059 587 10;
#X obj 709 421 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-scope 1000 float 2;
#X coords 0 1 999 -1 200 140 1;
#X restore 467 356 graph;
#X obj 504 141 phasor~ 123;
#X obj 504 162 -~ 0.5;
#X obj 504 183 *~ 2;
#X obj 486 94 noise~;
#X obj 669 67 hsl 300 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 666 111 nbx 7 20 0 1 0 0 empty empty empty 0 -8 0 16 -204786
-1 -1 0 256;
#X obj 666 136 sig~;
#X obj 665 158 lop~ 0.5;
#X obj 709 398 loadbang;
#X obj 469 51 osc~ 400;
#X obj 470 218 c_mfade3;
#X text 697 357 ajf2009;
#X obj 471 279 soundoutput;
#X obj 699 377 catch~ \$0-s;
#X obj 538 243 throw~ \$0-s;
#X obj 709 439 metro 90;
#X obj 666 85 cnv 15 306 17 empty empty empty 10 8 1 12 -1 -66577 0
;
#X obj 667 86 cnv 15 100 15 empty empty a<->b 10 8 1 12 -233017 -66577
0;
#X obj 769 86 cnv 15 100 15 empty empty b<->c 10 8 1 12 -191407 -66577
0;
#X obj 871 86 cnv 15 100 15 empty empty c<->a 10 8 1 12 -233017 -66577
0;
#X text 499 77 noise (b);
#X text 542 123 saw (c);
#X text 483 33 sine (a);
#N canvas 61 202 665 672 REFERENCE 0;
#X text 114 121 Name: c_mfade3;
#X text 114 138 Summary: wrapped crossfader between three inputs;
#X text 112 167 Inlet 0: audio signal (a);
#X text 112 184 Inlet 1: audio signal (b);
#X text 112 201 Inlet 3: audio signal (c);
#X text 112 218 Inlet 4: audio signal to crossfade signals (a) \, (b)
and (c). The range 0-1 fades through signals in the order: a \, mix(ab)
\, b \, mix(bc) \, c \, mix(ca).;
#X text 112 261 Outlet 0: mix of (a) \, (b) rsp. (c);
#X text 122 529 Tags: mixing \, crossfade \, wavetable synthesis;
#X text 112 321 Description: c_mfade3 allows one to crossfade three
signals \, mixing each possible pairs (ab \, bc \, ca). The last inlet
selects the active mix: 0 ... 1/3 will fade signals (a) and (b) \,
1/3 ... 2/3 will mix (b) and (c) \, 2/3 ... 1 will mix (c) and (a).
The control inlet is wrapped so it repeats with values larger than
1.0. The mixing uses linear interpolation.;
#X coords 0 -1 1 1 450 450 1 100 100;
#X restore 5 48 pd REFERENCE;
#X floatatom 624 112 5 0 0 0 - - -;
#X text 7 14 c_mfade3 - wrapped crossfader between three inputs;
#X obj 699 463 tabwrite~ \$0-scope;
#X connect 0 0 17 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 12 2;
#X connect 5 0 12 1;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 12 3;
#X connect 10 0 0 0;
#X connect 11 0 12 0;
#X connect 12 0 16 0;
#X connect 12 0 14 0;
#X connect 12 0 14 1;
#X connect 15 0 28 0;
#X connect 17 0 28 0;
#X connect 26 0 8 0;
