Skip to content
Tone.js

fanIn

function

fanIn(...nodes: OutputNode[]): void

Connect the output of one or more source nodes to a single destination node

const player = new Tone.Player("https://tonejs.github.io/audio/drum-samples/conga-rhythm.mp3");
const player1 = new Tone.Player("https://tonejs.github.io/audio/drum-samples/conga-rhythm.mp3");
const filter = new Tone.Filter("G5").toDestination();
// connect nodes to a common destination
Tone.fanIn(player, player1, filter);

Parameters

  • nodes OutputNode[]

    One or more source nodes followed by one destination node