Tone.CrossFade
↳ EXTENDS ToneTone.Crossfade provides equal power fading between two inputs. More on crossfading technique here.
EXAMPLE
var crossFade = new Tone.CrossFade(0.5);
//connect effect A to crossfade from
//effect output 0 to crossfade input 0
effectA.connect(crossFade, 0, 0);
//connect effect B to crossfade from
//effect output 0 to crossfade input 1
effectB.connect(crossFade, 0, 1);
crossFade.fade.value = 0;
// ^ only effectA is output
crossFade.fade.value = 1;
// ^ only effectB is output
crossFade.fade.value = 0.5;
// ^ the two signals are mixed equally. Members
∿
.fade
↝ NormalRange #The mix between the two inputs. A fade value of 0 will output 100% input[0] and a value of 1 will output 100% input[1].