1 | import { Frequency, NormalRange, Time } from "../../core/type/Units.js";
|
2 | import { Envelope, EnvelopeOptions } from "./Envelope.js";
|
3 | export interface FrequencyEnvelopeOptions extends EnvelopeOptions {
|
4 | baseFrequency: Frequency;
|
5 | octaves: number;
|
6 | exponent: number;
|
7 | }
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare class FrequencyEnvelope extends Envelope {
|
24 | readonly name: string;
|
25 | |
26 |
|
27 |
|
28 | private _baseFrequency;
|
29 | |
30 |
|
31 |
|
32 | private _octaves;
|
33 | |
34 |
|
35 |
|
36 | private _scale;
|
37 | |
38 |
|
39 |
|
40 | private _exponent;
|
41 | |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | constructor(attack?: Time, decay?: Time, sustain?: NormalRange, release?: Time);
|
48 | constructor(options?: Partial<FrequencyEnvelopeOptions>);
|
49 | static getDefaults(): FrequencyEnvelopeOptions;
|
50 | /**
|
51 | * The envelope's minimum output value. This is the value which it
|
52 | * starts at.
|
53 | */
|
54 | get baseFrequency(): Frequency;
|
55 | set baseFrequency(min: Frequency);
|
56 | /**
|
57 | * The number of octaves above the baseFrequency that the
|
58 | * envelope will scale to.
|
59 | */
|
60 | get octaves(): number;
|
61 | set octaves(octaves: number);
|
62 | /**
|
63 | * The envelope's exponent value.
|
64 | */
|
65 | get exponent(): number;
|
66 | set exponent(exponent: number);
|
67 | /**
|
68 | * Clean up
|
69 | */
|
70 | dispose(): this;
|
71 | }
|