1 | import { InputNode, OutputNode, ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
|
2 | import { Add } from "./Add.js";
|
3 | import { Multiply } from "./Multiply.js";
|
4 | import { SignalOperator } from "./SignalOperator.js";
|
5 | export interface ScaleOptions extends ToneAudioNodeOptions {
|
6 | min: number;
|
7 | max: number;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare class Scale<Options extends ScaleOptions = ScaleOptions> extends SignalOperator<Options> {
|
21 | readonly name: string;
|
22 | input: InputNode;
|
23 | output: OutputNode;
|
24 | |
25 |
|
26 |
|
27 | protected _mult: Multiply;
|
28 | |
29 |
|
30 |
|
31 | protected _add: Add;
|
32 | |
33 |
|
34 |
|
35 | private _min;
|
36 | |
37 |
|
38 |
|
39 | private _max;
|
40 | |
41 |
|
42 |
|
43 |
|
44 | constructor(min?: number, max?: number);
|
45 | constructor(options?: Partial<ScaleOptions>);
|
46 | static getDefaults(): ScaleOptions;
|
47 | /**
|
48 | * The minimum output value. This number is output when the value input value is 0.
|
49 | */
|
50 | get min(): number;
|
51 | set min(min: number);
|
52 | /**
|
53 | * The maximum output value. This number is output when the value input value is 1.
|
54 | */
|
55 | get max(): number;
|
56 | set max(max: number);
|
57 | /**
|
58 | * set the values
|
59 | */
|
60 | private _setRange;
|
61 | dispose(): this;
|
62 | }
|