UNPKG

827 BTypeScriptView Raw
1import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
2interface SplitOptions extends ToneAudioNodeOptions {
3 channels: number;
4}
5/**
6 * Split splits an incoming signal into the number of given channels.
7 *
8 * @example
9 * const split = new Tone.Split();
10 * // stereoSignal.connect(split);
11 * @category Component
12 */
13export declare class Split extends ToneAudioNode<SplitOptions> {
14 readonly name: string;
15 /**
16 * The splitting node
17 */
18 private _splitter;
19 readonly input: ChannelSplitterNode;
20 readonly output: ChannelSplitterNode;
21 /**
22 * @param channels The number of channels to merge.
23 */
24 constructor(channels?: number);
25 constructor(options?: Partial<SplitOptions>);
26 static getDefaults(): SplitOptions;
27 dispose(): this;
28}
29export {};