1 | import { Volume } from "../../component/channel/Volume.js";
|
2 | import { Decibels } from "../type/Units.js";
|
3 | import { Gain } from "./Gain.js";
|
4 | import { Param } from "./Param.js";
|
5 | import { ToneAudioNode, ToneAudioNodeOptions } from "./ToneAudioNode.js";
|
6 | interface DestinationOptions extends ToneAudioNodeOptions {
|
7 | volume: Decibels;
|
8 | mute: boolean;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare class DestinationClass extends ToneAudioNode<DestinationOptions> {
|
26 | readonly name: string;
|
27 | input: Volume;
|
28 | output: Gain;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | volume: Param<"decibels">;
|
38 | constructor(options: Partial<DestinationOptions>);
|
39 | static getDefaults(): DestinationOptions;
|
40 | /**
|
41 | * Mute the output.
|
42 | * @example
|
43 | * const oscillator = new Tone.Oscillator().start().toDestination();
|
44 | * setTimeout(() => {
|
45 | *
|
46 | * Tone.Destination.mute = true;
|
47 | * }, 1000);
|
48 | */
|
49 | get mute(): boolean;
|
50 | set mute(mute: boolean);
|
51 | /**
|
52 | * Add a master effects chain. NOTE: this will disconnect any nodes which were previously
|
53 | * chained in the master effects chain.
|
54 | * @param args All arguments will be connected in a row and the Master will be routed through it.
|
55 | * @example
|
56 | * // route all audio through a filter and compressor
|
57 | * const lowpass = new Tone.Filter(800, "lowpass");
|
58 | * const compressor = new Tone.Compressor(-18);
|
59 | * Tone.Destination.chain(lowpass, compressor);
|
60 | */
|
61 | chain(...args: Array<AudioNode | ToneAudioNode>): this;
|
62 | /**
|
63 | * The maximum number of channels the system can output
|
64 | * @example
|
65 | * console.log(Tone.Destination.maxChannelCount);
|
66 | */
|
67 | get maxChannelCount(): number;
|
68 | /**
|
69 | * Clean up
|
70 | */
|
71 | dispose(): this;
|
72 | }
|
73 | export {};
|