Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tone.js also has a bunch of stereo and mono effects.
//create an effect and connect it to the master output var dist = new Tone.Distortion().toMaster(); //create a synth and connect it to the effect var synth = new Tone.SimpleSynth().connect(dist); //and play a note to hear the distortion synth.triggerAttackRelease("C4", "8n");
All effects have a dry/wet control called
wet which controls how much of the effected ("wet") signal is output compared to the uneffected ("dry") signal. The default value for the effects is 100% wet.
// 50/50 mix effect.wet.value = 0.5; //fade to 100% wet over 3 seconds. effect.wet.rampTo(1, 3);