Function fanIn

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

    Parameters

    • Rest ...nodes: OutputNode[]

      One or more source nodes followed by one destination node

    Returns void

    Example

    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);