1 | import { WaveShaper } from "./WaveShaper.js";
|
2 | import { SignalOperator } from "./SignalOperator.js";
|
3 | import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
|
4 | export interface PowOptions extends ToneAudioNodeOptions {
|
5 | value: number;
|
6 | }
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare class Pow extends SignalOperator<PowOptions> {
|
17 | readonly name: string;
|
18 | private _exponent;
|
19 | private _exponentScaler;
|
20 | input: WaveShaper;
|
21 | output: WaveShaper;
|
22 | |
23 |
|
24 |
|
25 | constructor(value?: number);
|
26 | constructor(options?: Partial<PowOptions>);
|
27 | static getDefaults(): PowOptions;
|
28 | /**
|
29 | * the function which maps the waveshaper
|
30 | * @param exponent exponent value
|
31 | */
|
32 | private _expFunc;
|
33 | /**
|
34 | * The value of the exponent.
|
35 | */
|
36 | get value(): number;
|
37 | set value(exponent: number);
|
38 | /**
|
39 | * Clean up.
|
40 | */
|
41 | dispose(): this;
|
42 | }
|