tone 14.9.12 → 14.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Tone/component/analysis/Analyser.ts +3 -3
- package/Tone/component/analysis/DCMeter.ts +2 -1
- package/Tone/component/analysis/FFT.ts +3 -3
- package/Tone/component/analysis/Meter.ts +6 -5
- package/Tone/component/analysis/Waveform.ts +1 -1
- package/Tone/component/channel/Channel.ts +6 -6
- package/Tone/component/channel/MidSideMerge.ts +2 -2
- package/Tone/component/channel/MidSideSplit.ts +1 -1
- package/Tone/component/channel/Recorder.ts +1 -1
- package/Tone/component/dynamics/Gate.ts +4 -3
- package/Tone/component/dynamics/Limiter.ts +1 -1
- package/Tone/component/dynamics/MidSideCompressor.ts +3 -2
- package/Tone/component/dynamics/MultibandCompressor.ts +2 -1
- package/Tone/component/envelope/FrequencyEnvelope.ts +2 -2
- package/Tone/component/filter/BiquadFilter.ts +1 -1
- package/Tone/component/filter/LowpassCombFilter.ts +1 -1
- package/Tone/core/Global.ts +1 -1
- package/Tone/core/clock/TickParam.ts +2 -2
- package/Tone/core/clock/Transport.ts +1 -1
- package/Tone/core/clock/TransportEvent.ts +1 -1
- package/Tone/core/context/AbstractParam.ts +4 -4
- package/Tone/core/context/Context.ts +11 -10
- package/Tone/core/context/Listener.ts +1 -1
- package/Tone/core/context/Offline.ts +1 -1
- package/Tone/core/context/ToneAudioNode.ts +1 -1
- package/Tone/core/context/ToneWithContext.ts +1 -1
- package/Tone/core/type/Time.ts +1 -1
- package/Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts +1 -1
- package/Tone/effect/AutoPanner.ts +1 -1
- package/Tone/effect/AutoWah.ts +1 -1
- package/Tone/effect/Chorus.ts +4 -3
- package/Tone/effect/Freeverb.ts +1 -1
- package/Tone/effect/JCReverb.ts +2 -2
- package/Tone/effect/LFOEffect.ts +4 -2
- package/Tone/effect/Reverb.ts +3 -3
- package/Tone/effect/StereoXFeedbackEffect.ts +1 -1
- package/Tone/effect/Tremolo.ts +1 -1
- package/Tone/event/Pattern.ts +1 -1
- package/Tone/index.ts +15 -14
- package/Tone/instrument/DuoSynth.ts +1 -1
- package/Tone/instrument/Instrument.ts +1 -1
- package/Tone/instrument/MetalSynth.ts +2 -2
- package/Tone/instrument/NoiseSynth.ts +1 -1
- package/Tone/instrument/PluckSynth.ts +1 -1
- package/Tone/instrument/Sampler.ts +1 -1
- package/Tone/instrument/Synth.ts +1 -1
- package/Tone/signal/Add.ts +1 -1
- package/Tone/signal/AudioToGain.ts +1 -1
- package/Tone/signal/GainToAudio.ts +1 -1
- package/Tone/signal/Multiply.ts +1 -1
- package/Tone/signal/ScaleExp.ts +2 -2
- package/Tone/signal/Signal.ts +1 -1
- package/Tone/signal/SyncedSignal.ts +1 -1
- package/Tone/source/Source.ts +2 -1
- package/Tone/source/buffer/Player.ts +1 -1
- package/Tone/source/buffer/Players.ts +1 -1
- package/Tone/source/oscillator/LFO.ts +5 -3
- package/Tone/source/oscillator/OmniOscillator.ts +10 -9
- package/Tone/source/oscillator/Oscillator.ts +1 -1
- package/Tone/source/oscillator/ToneOscillatorNode.ts +1 -1
- package/Tone/version.ts +1 -1
- package/build/Tone.js +1 -1
- package/build/Tone.js.map +1 -1
- package/build/esm/component/analysis/Analyser.d.ts +3 -3
- package/build/esm/component/analysis/Analyser.js +3 -3
- package/build/esm/component/analysis/DCMeter.d.ts +2 -1
- package/build/esm/component/analysis/DCMeter.js +2 -1
- package/build/esm/component/analysis/DCMeter.js.map +1 -1
- package/build/esm/component/analysis/FFT.d.ts +3 -3
- package/build/esm/component/analysis/FFT.js +3 -3
- package/build/esm/component/analysis/Meter.d.ts +6 -5
- package/build/esm/component/analysis/Meter.js +6 -5
- package/build/esm/component/analysis/Meter.js.map +1 -1
- package/build/esm/component/analysis/Waveform.d.ts +1 -1
- package/build/esm/component/analysis/Waveform.js +1 -1
- package/build/esm/component/channel/Channel.d.ts +6 -6
- package/build/esm/component/channel/Channel.js +6 -6
- package/build/esm/component/channel/MidSideMerge.d.ts +2 -2
- package/build/esm/component/channel/MidSideMerge.js +1 -1
- package/build/esm/component/channel/MidSideSplit.d.ts +1 -1
- package/build/esm/component/channel/Recorder.d.ts +1 -1
- package/build/esm/component/channel/Recorder.js +1 -1
- package/build/esm/component/dynamics/Gate.d.ts +4 -3
- package/build/esm/component/dynamics/Gate.js +4 -3
- package/build/esm/component/dynamics/Gate.js.map +1 -1
- package/build/esm/component/dynamics/Limiter.d.ts +1 -1
- package/build/esm/component/dynamics/Limiter.js +1 -1
- package/build/esm/component/dynamics/MidSideCompressor.d.ts +3 -2
- package/build/esm/component/dynamics/MidSideCompressor.js +3 -2
- package/build/esm/component/dynamics/MidSideCompressor.js.map +1 -1
- package/build/esm/component/dynamics/MultibandCompressor.d.ts +2 -1
- package/build/esm/component/dynamics/MultibandCompressor.js +2 -1
- package/build/esm/component/dynamics/MultibandCompressor.js.map +1 -1
- package/build/esm/component/envelope/FrequencyEnvelope.d.ts +2 -2
- package/build/esm/component/envelope/FrequencyEnvelope.js +2 -2
- package/build/esm/component/filter/BiquadFilter.d.ts +1 -1
- package/build/esm/component/filter/BiquadFilter.js +1 -1
- package/build/esm/component/filter/LowpassCombFilter.d.ts +1 -1
- package/build/esm/component/filter/LowpassCombFilter.js +1 -1
- package/build/esm/core/Global.d.ts +1 -1
- package/build/esm/core/Global.js +1 -1
- package/build/esm/core/clock/TickParam.d.ts +2 -2
- package/build/esm/core/clock/TickParam.js +2 -2
- package/build/esm/core/clock/Transport.d.ts +1 -1
- package/build/esm/core/clock/Transport.js +1 -1
- package/build/esm/core/clock/TransportEvent.d.ts +1 -1
- package/build/esm/core/clock/TransportEvent.js +1 -1
- package/build/esm/core/context/AbstractParam.d.ts +4 -4
- package/build/esm/core/context/AbstractParam.js +1 -1
- package/build/esm/core/context/Context.d.ts +11 -10
- package/build/esm/core/context/Context.js +11 -10
- package/build/esm/core/context/Context.js.map +1 -1
- package/build/esm/core/context/Listener.d.ts +1 -1
- package/build/esm/core/context/Listener.js +1 -1
- package/build/esm/core/context/Offline.d.ts +1 -1
- package/build/esm/core/context/Offline.js +1 -1
- package/build/esm/core/context/ToneAudioNode.d.ts +1 -1
- package/build/esm/core/context/ToneAudioNode.js +1 -1
- package/build/esm/core/context/ToneWithContext.d.ts +1 -1
- package/build/esm/core/context/ToneWithContext.js +1 -1
- package/build/esm/core/type/Time.d.ts +1 -1
- package/build/esm/core/type/Time.js +1 -1
- package/build/esm/core/worklet/ToneAudioWorkletProcessor.worklet.js +1 -1
- package/build/esm/effect/AutoPanner.d.ts +1 -1
- package/build/esm/effect/AutoPanner.js +1 -1
- package/build/esm/effect/AutoWah.d.ts +1 -1
- package/build/esm/effect/AutoWah.js +1 -1
- package/build/esm/effect/Chorus.d.ts +4 -3
- package/build/esm/effect/Chorus.js +4 -3
- package/build/esm/effect/Chorus.js.map +1 -1
- package/build/esm/effect/Freeverb.d.ts +1 -1
- package/build/esm/effect/Freeverb.js +1 -1
- package/build/esm/effect/JCReverb.d.ts +2 -2
- package/build/esm/effect/JCReverb.js +2 -2
- package/build/esm/effect/LFOEffect.d.ts +4 -2
- package/build/esm/effect/LFOEffect.js +4 -2
- package/build/esm/effect/LFOEffect.js.map +1 -1
- package/build/esm/effect/Reverb.d.ts +3 -3
- package/build/esm/effect/Reverb.js +3 -3
- package/build/esm/effect/StereoXFeedbackEffect.d.ts +1 -1
- package/build/esm/effect/StereoXFeedbackEffect.js +1 -1
- package/build/esm/effect/Tremolo.d.ts +1 -1
- package/build/esm/effect/Tremolo.js +1 -1
- package/build/esm/event/Pattern.d.ts +1 -1
- package/build/esm/event/Pattern.js +1 -1
- package/build/esm/index.d.ts +16 -15
- package/build/esm/index.js +14 -14
- package/build/esm/index.js.map +1 -1
- package/build/esm/instrument/DuoSynth.d.ts +1 -1
- package/build/esm/instrument/DuoSynth.js +1 -1
- package/build/esm/instrument/Instrument.d.ts +1 -1
- package/build/esm/instrument/Instrument.js +1 -1
- package/build/esm/instrument/MetalSynth.d.ts +2 -2
- package/build/esm/instrument/MetalSynth.js +1 -1
- package/build/esm/instrument/NoiseSynth.d.ts +1 -1
- package/build/esm/instrument/NoiseSynth.js +1 -1
- package/build/esm/instrument/PluckSynth.d.ts +1 -1
- package/build/esm/instrument/PluckSynth.js +1 -1
- package/build/esm/instrument/Sampler.d.ts +1 -1
- package/build/esm/instrument/Sampler.js +1 -1
- package/build/esm/instrument/Synth.d.ts +1 -1
- package/build/esm/instrument/Synth.js +1 -1
- package/build/esm/signal/Add.d.ts +1 -1
- package/build/esm/signal/AudioToGain.d.ts +1 -1
- package/build/esm/signal/AudioToGain.js +1 -1
- package/build/esm/signal/GainToAudio.d.ts +1 -1
- package/build/esm/signal/GainToAudio.js +1 -1
- package/build/esm/signal/Multiply.d.ts +1 -1
- package/build/esm/signal/ScaleExp.d.ts +2 -2
- package/build/esm/signal/ScaleExp.js +2 -2
- package/build/esm/signal/Signal.d.ts +1 -1
- package/build/esm/signal/Signal.js +1 -1
- package/build/esm/signal/SyncedSignal.d.ts +1 -1
- package/build/esm/signal/SyncedSignal.js +1 -1
- package/build/esm/source/Source.d.ts +2 -1
- package/build/esm/source/Source.js +2 -1
- package/build/esm/source/Source.js.map +1 -1
- package/build/esm/source/buffer/Player.d.ts +1 -1
- package/build/esm/source/buffer/Player.js +1 -1
- package/build/esm/source/buffer/Players.d.ts +1 -1
- package/build/esm/source/buffer/Players.js +1 -1
- package/build/esm/source/oscillator/LFO.d.ts +5 -3
- package/build/esm/source/oscillator/LFO.js +5 -3
- package/build/esm/source/oscillator/LFO.js.map +1 -1
- package/build/esm/source/oscillator/OmniOscillator.d.ts +10 -9
- package/build/esm/source/oscillator/OmniOscillator.js +10 -9
- package/build/esm/source/oscillator/OmniOscillator.js.map +1 -1
- package/build/esm/source/oscillator/Oscillator.d.ts +1 -1
- package/build/esm/source/oscillator/Oscillator.js +1 -1
- package/build/esm/source/oscillator/ToneOscillatorNode.d.ts +1 -1
- package/build/esm/source/oscillator/ToneOscillatorNode.js +1 -1
- package/build/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -44,8 +44,8 @@ export declare class Analyser extends ToneAudioNode<AnalyserOptions> {
|
|
|
44
44
|
constructor(options?: Partial<AnalyserOptions>);
|
|
45
45
|
static getDefaults(): AnalyserOptions;
|
|
46
46
|
/**
|
|
47
|
-
* Run the analysis given the current settings. If
|
|
48
|
-
* it will return a Float32Array. If
|
|
47
|
+
* Run the analysis given the current settings. If {@link channels} = 1,
|
|
48
|
+
* it will return a Float32Array. If {@link channels} > 1, it will
|
|
49
49
|
* return an array of Float32Arrays where each index in the array
|
|
50
50
|
* represents the analysis done on a channel.
|
|
51
51
|
*/
|
|
@@ -57,7 +57,7 @@ export declare class Analyser extends ToneAudioNode<AnalyserOptions> {
|
|
|
57
57
|
set size(size: PowerOfTwo);
|
|
58
58
|
/**
|
|
59
59
|
* The number of channels the analyser does the analysis on. Channel
|
|
60
|
-
* separation is done using
|
|
60
|
+
* separation is done using {@link Split}
|
|
61
61
|
*/
|
|
62
62
|
get channels(): number;
|
|
63
63
|
/**
|
|
@@ -47,8 +47,8 @@ export class Analyser extends ToneAudioNode {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* Run the analysis given the current settings. If
|
|
51
|
-
* it will return a Float32Array. If
|
|
50
|
+
* Run the analysis given the current settings. If {@link channels} = 1,
|
|
51
|
+
* it will return a Float32Array. If {@link channels} > 1, it will
|
|
52
52
|
* return an array of Float32Arrays where each index in the array
|
|
53
53
|
* represents the analysis done on a channel.
|
|
54
54
|
*/
|
|
@@ -83,7 +83,7 @@ export class Analyser extends ToneAudioNode {
|
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* The number of channels the analyser does the analysis on. Channel
|
|
86
|
-
* separation is done using
|
|
86
|
+
* separation is done using {@link Split}
|
|
87
87
|
*/
|
|
88
88
|
get channels() {
|
|
89
89
|
return this._analysers.length;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MeterBase, MeterBaseOptions } from "./MeterBase";
|
|
2
2
|
export declare type DCMeterOptions = MeterBaseOptions;
|
|
3
3
|
/**
|
|
4
|
-
* DCMeter gets the raw value of the input signal at the current time.
|
|
4
|
+
* DCMeter gets the raw value of the input signal at the current time.
|
|
5
|
+
* @see {@link Meter}.
|
|
5
6
|
*
|
|
6
7
|
* @example
|
|
7
8
|
* const meter = new Tone.DCMeter();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { optionsFromArguments } from "../../core/util/Defaults";
|
|
2
2
|
import { MeterBase } from "./MeterBase";
|
|
3
3
|
/**
|
|
4
|
-
* DCMeter gets the raw value of the input signal at the current time.
|
|
4
|
+
* DCMeter gets the raw value of the input signal at the current time.
|
|
5
|
+
* @see {@link Meter}.
|
|
5
6
|
*
|
|
6
7
|
* @example
|
|
7
8
|
* const meter = new Tone.DCMeter();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DCMeter.js","sourceRoot":"","sources":["../../../../Tone/component/analysis/DCMeter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAoB,MAAM,aAAa,CAAC;AAI1D
|
|
1
|
+
{"version":3,"file":"DCMeter.js","sourceRoot":"","sources":["../../../../Tone/component/analysis/DCMeter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAoB,MAAM,aAAa,CAAC;AAI1D;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,OAAQ,SAAQ,SAAyB;IAKrD;QACC,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;QAJtD,SAAI,GAAW,SAAS,CAAC;QAMjC,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,UAAU,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,GAAG,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,QAAQ;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAkB,CAAC;QACxD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;CACD"}
|
|
@@ -26,12 +26,12 @@ export declare class FFT extends MeterBase<FFTOptions> {
|
|
|
26
26
|
static getDefaults(): FFTOptions;
|
|
27
27
|
/**
|
|
28
28
|
* Gets the current frequency data from the connected audio source.
|
|
29
|
-
* Returns the frequency data of length
|
|
29
|
+
* Returns the frequency data of length {@link size} as a Float32Array of decibel values.
|
|
30
30
|
*/
|
|
31
31
|
getValue(): Float32Array;
|
|
32
32
|
/**
|
|
33
33
|
* The size of analysis. This must be a power of two in the range 16 to 16384.
|
|
34
|
-
* Determines the size of the array returned by
|
|
34
|
+
* Determines the size of the array returned by {@link getValue} (i.e. the number of
|
|
35
35
|
* frequency bins). Large FFT sizes may be costly to compute.
|
|
36
36
|
*/
|
|
37
37
|
get size(): PowerOfTwo;
|
|
@@ -42,7 +42,7 @@ export declare class FFT extends MeterBase<FFTOptions> {
|
|
|
42
42
|
get smoothing(): NormalRange;
|
|
43
43
|
set smoothing(val: NormalRange);
|
|
44
44
|
/**
|
|
45
|
-
* Returns the frequency value in hertz of each of the indices of the FFT's
|
|
45
|
+
* Returns the frequency value in hertz of each of the indices of the FFT's {@link getValue} response.
|
|
46
46
|
* @example
|
|
47
47
|
* const fft = new Tone.FFT(32);
|
|
48
48
|
* console.log([0, 1, 2, 3, 4].map(index => fft.getFrequencyOfIndex(index)));
|
|
@@ -26,7 +26,7 @@ export class FFT extends MeterBase {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Gets the current frequency data from the connected audio source.
|
|
29
|
-
* Returns the frequency data of length
|
|
29
|
+
* Returns the frequency data of length {@link size} as a Float32Array of decibel values.
|
|
30
30
|
*/
|
|
31
31
|
getValue() {
|
|
32
32
|
const values = this._analyser.getValue();
|
|
@@ -34,7 +34,7 @@ export class FFT extends MeterBase {
|
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* The size of analysis. This must be a power of two in the range 16 to 16384.
|
|
37
|
-
* Determines the size of the array returned by
|
|
37
|
+
* Determines the size of the array returned by {@link getValue} (i.e. the number of
|
|
38
38
|
* frequency bins). Large FFT sizes may be costly to compute.
|
|
39
39
|
*/
|
|
40
40
|
get size() {
|
|
@@ -53,7 +53,7 @@ export class FFT extends MeterBase {
|
|
|
53
53
|
this._analyser.smoothing = val;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Returns the frequency value in hertz of each of the indices of the FFT's
|
|
56
|
+
* Returns the frequency value in hertz of each of the indices of the FFT's {@link getValue} response.
|
|
57
57
|
* @example
|
|
58
58
|
* const fft = new Tone.FFT(32);
|
|
59
59
|
* console.log([0, 1, 2, 3, 4].map(index => fft.getFrequencyOfIndex(index)));
|
|
@@ -10,7 +10,8 @@ export interface MeterOptions extends MeterBaseOptions {
|
|
|
10
10
|
* of an input signal. It can also get the raw value of the input signal.
|
|
11
11
|
* Setting `normalRange` to `true` will covert the output to a range of
|
|
12
12
|
* 0-1. See an example using a graphical display
|
|
13
|
-
* [here](https://tonejs.github.io/examples/meter).
|
|
13
|
+
* [here](https://tonejs.github.io/examples/meter).
|
|
14
|
+
* @see {@link DCMeter}.
|
|
14
15
|
*
|
|
15
16
|
* @example
|
|
16
17
|
* const meter = new Tone.Meter();
|
|
@@ -45,15 +46,15 @@ export declare class Meter extends MeterBase<MeterOptions> {
|
|
|
45
46
|
constructor(options?: Partial<MeterOptions>);
|
|
46
47
|
static getDefaults(): MeterOptions;
|
|
47
48
|
/**
|
|
48
|
-
* Use
|
|
49
|
+
* Use {@link getValue} instead. For the previous getValue behavior, use DCMeter.
|
|
49
50
|
* @deprecated
|
|
50
51
|
*/
|
|
51
52
|
getLevel(): number | number[];
|
|
52
53
|
/**
|
|
53
54
|
* Get the current value of the incoming signal.
|
|
54
|
-
* Output is in decibels when
|
|
55
|
-
* If
|
|
56
|
-
* representing the value of the input signal. When
|
|
55
|
+
* Output is in decibels when {@link normalRange} is `false`.
|
|
56
|
+
* If {@link channels} = 1, then the output is a single number
|
|
57
|
+
* representing the value of the input signal. When {@link channels} > 1,
|
|
57
58
|
* then each channel is returned as a value in a number array.
|
|
58
59
|
*/
|
|
59
60
|
getValue(): number | number[];
|
|
@@ -8,7 +8,8 @@ import { Analyser } from "./Analyser";
|
|
|
8
8
|
* of an input signal. It can also get the raw value of the input signal.
|
|
9
9
|
* Setting `normalRange` to `true` will covert the output to a range of
|
|
10
10
|
* 0-1. See an example using a graphical display
|
|
11
|
-
* [here](https://tonejs.github.io/examples/meter).
|
|
11
|
+
* [here](https://tonejs.github.io/examples/meter).
|
|
12
|
+
* @see {@link DCMeter}.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* const meter = new Tone.Meter();
|
|
@@ -44,7 +45,7 @@ export class Meter extends MeterBase {
|
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
|
-
* Use
|
|
48
|
+
* Use {@link getValue} instead. For the previous getValue behavior, use DCMeter.
|
|
48
49
|
* @deprecated
|
|
49
50
|
*/
|
|
50
51
|
getLevel() {
|
|
@@ -53,9 +54,9 @@ export class Meter extends MeterBase {
|
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
56
|
* Get the current value of the incoming signal.
|
|
56
|
-
* Output is in decibels when
|
|
57
|
-
* If
|
|
58
|
-
* representing the value of the input signal. When
|
|
57
|
+
* Output is in decibels when {@link normalRange} is `false`.
|
|
58
|
+
* If {@link channels} = 1, then the output is a single number
|
|
59
|
+
* representing the value of the input signal. When {@link channels} > 1,
|
|
59
60
|
* then each channel is returned as a value in a number array.
|
|
60
61
|
*/
|
|
61
62
|
getValue() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Meter.js","sourceRoot":"","sources":["../../../../Tone/component/analysis/Meter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAoB,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC
|
|
1
|
+
{"version":3,"file":"Meter.js","sourceRoot":"","sources":["../../../../Tone/component/analysis/Meter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAoB,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,KAAM,SAAQ,SAAuB;IA0BjD;QACC,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAzBnE,SAAI,GAAW,OAAO,CAAC;QA0B/B,MAAM,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QAEpF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,QAAQ,CAAC;YACxD,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,OAAO,CAAC,YAAY;SAC9B,CAAC,CAAC;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,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QACzE,CAAC,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,EAAE;YACxB,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;SACf;aAAM;YACN,OAAO,IAAI,CAAC;SACZ;IACF,CAAC;IAED;;OAEG;IACH,IAAI,QAAQ;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED,OAAO;QACN,KAAK,CAAC,OAAO,EAAE,CAAC;QAChB,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACb,CAAC;CACD"}
|
|
@@ -25,7 +25,7 @@ export declare class Waveform extends MeterBase<WaveformOptions> {
|
|
|
25
25
|
getValue(): Float32Array;
|
|
26
26
|
/**
|
|
27
27
|
* The size of analysis. This must be a power of two in the range 16 to 16384.
|
|
28
|
-
* Determines the size of the array returned by
|
|
28
|
+
* Determines the size of the array returned by {@link getValue}.
|
|
29
29
|
*/
|
|
30
30
|
get size(): PowerOfTwo;
|
|
31
31
|
set size(size: PowerOfTwo);
|
|
@@ -26,7 +26,7 @@ export class Waveform extends MeterBase {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* The size of analysis. This must be a power of two in the range 16 to 16384.
|
|
29
|
-
* Determines the size of the array returned by
|
|
29
|
+
* Determines the size of the array returned by {@link getValue}.
|
|
30
30
|
*/
|
|
31
31
|
get size() {
|
|
32
32
|
return this._analyser.size;
|
|
@@ -11,7 +11,7 @@ export interface ChannelOptions extends ToneAudioNodeOptions {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Channel provides a channel strip interface with volume, pan, solo and mute controls.
|
|
14
|
-
*
|
|
14
|
+
* @see {@link PanVol} and {@link Solo}
|
|
15
15
|
* @example
|
|
16
16
|
* // pan the incoming signal left and drop the volume 12db
|
|
17
17
|
* const channel = new Tone.Channel(-0.25, -12);
|
|
@@ -47,7 +47,7 @@ export declare class Channel extends ToneAudioNode<ChannelOptions> {
|
|
|
47
47
|
constructor(options?: Partial<ChannelOptions>);
|
|
48
48
|
static getDefaults(): ChannelOptions;
|
|
49
49
|
/**
|
|
50
|
-
* Solo/unsolo the channel. Soloing is only relative to other
|
|
50
|
+
* Solo/unsolo the channel. Soloing is only relative to other {@link Channel}s and {@link Solo} instances
|
|
51
51
|
*/
|
|
52
52
|
get solo(): boolean;
|
|
53
53
|
set solo(solo: boolean);
|
|
@@ -73,9 +73,9 @@ export declare class Channel extends ToneAudioNode<ChannelOptions> {
|
|
|
73
73
|
private _getBus;
|
|
74
74
|
/**
|
|
75
75
|
* Send audio to another channel using a string. `send` is a lot like
|
|
76
|
-
*
|
|
77
|
-
* be useful in large applications to decouple sections since
|
|
78
|
-
* and
|
|
76
|
+
* {@link connect}, except it uses a string instead of an object. This can
|
|
77
|
+
* be useful in large applications to decouple sections since {@link send}
|
|
78
|
+
* and {@link receive} can be invoked separately in order to connect an object
|
|
79
79
|
* @param name The channel name to send the audio
|
|
80
80
|
* @param volume The amount of the signal to send.
|
|
81
81
|
* Defaults to 0db, i.e. send the entire signal
|
|
@@ -83,7 +83,7 @@ export declare class Channel extends ToneAudioNode<ChannelOptions> {
|
|
|
83
83
|
*/
|
|
84
84
|
send(name: string, volume?: Decibels): Gain<"decibels">;
|
|
85
85
|
/**
|
|
86
|
-
* Receive audio from a channel which was connected with
|
|
86
|
+
* Receive audio from a channel which was connected with {@link send}.
|
|
87
87
|
* @param name The channel name to receive audio from.
|
|
88
88
|
*/
|
|
89
89
|
receive(name: string): this;
|
|
@@ -6,7 +6,7 @@ import { readOnly } from "../../core/util/Interface";
|
|
|
6
6
|
import { Gain } from "../../core/context/Gain";
|
|
7
7
|
/**
|
|
8
8
|
* Channel provides a channel strip interface with volume, pan, solo and mute controls.
|
|
9
|
-
*
|
|
9
|
+
* @see {@link PanVol} and {@link Solo}
|
|
10
10
|
* @example
|
|
11
11
|
* // pan the incoming signal left and drop the volume 12db
|
|
12
12
|
* const channel = new Tone.Channel(-0.25, -12);
|
|
@@ -43,7 +43,7 @@ export class Channel extends ToneAudioNode {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
* Solo/unsolo the channel. Soloing is only relative to other
|
|
46
|
+
* Solo/unsolo the channel. Soloing is only relative to other {@link Channel}s and {@link Solo} instances
|
|
47
47
|
*/
|
|
48
48
|
get solo() {
|
|
49
49
|
return this._solo.solo;
|
|
@@ -80,9 +80,9 @@ export class Channel extends ToneAudioNode {
|
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* Send audio to another channel using a string. `send` is a lot like
|
|
83
|
-
*
|
|
84
|
-
* be useful in large applications to decouple sections since
|
|
85
|
-
* and
|
|
83
|
+
* {@link connect}, except it uses a string instead of an object. This can
|
|
84
|
+
* be useful in large applications to decouple sections since {@link send}
|
|
85
|
+
* and {@link receive} can be invoked separately in order to connect an object
|
|
86
86
|
* @param name The channel name to send the audio
|
|
87
87
|
* @param volume The amount of the signal to send.
|
|
88
88
|
* Defaults to 0db, i.e. send the entire signal
|
|
@@ -100,7 +100,7 @@ export class Channel extends ToneAudioNode {
|
|
|
100
100
|
return sendKnob;
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
* Receive audio from a channel which was connected with
|
|
103
|
+
* Receive audio from a channel which was connected with {@link send}.
|
|
104
104
|
* @param name The channel name to receive audio from.
|
|
105
105
|
*/
|
|
106
106
|
receive(name) {
|
|
@@ -2,7 +2,7 @@ import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudi
|
|
|
2
2
|
import { Merge } from "./Merge";
|
|
3
3
|
export declare type MidSideMergeOptions = ToneAudioNodeOptions;
|
|
4
4
|
/**
|
|
5
|
-
* MidSideMerge merges the mid and side signal after they've been separated by
|
|
5
|
+
* MidSideMerge merges the mid and side signal after they've been separated by {@link MidSideSplit}
|
|
6
6
|
* ```
|
|
7
7
|
* Mid = (Left+Right)/sqrt(2); // obtain mid-signal from left and right
|
|
8
8
|
* Side = (Left-Right)/sqrt(2); // obtain side-signal from left and right
|
|
@@ -12,7 +12,7 @@ export declare type MidSideMergeOptions = ToneAudioNodeOptions;
|
|
|
12
12
|
export declare class MidSideMerge extends ToneAudioNode<MidSideMergeOptions> {
|
|
13
13
|
readonly name: string;
|
|
14
14
|
/**
|
|
15
|
-
* There is no input, connect sources to either
|
|
15
|
+
* There is no input, connect sources to either {@link mid} or {@link side} inputs.
|
|
16
16
|
*/
|
|
17
17
|
readonly input: undefined;
|
|
18
18
|
/**
|
|
@@ -6,7 +6,7 @@ import { Subtract } from "../../signal/Subtract";
|
|
|
6
6
|
import { Gain } from "../../core/context/Gain";
|
|
7
7
|
import { optionsFromArguments } from "../../core/util/Defaults";
|
|
8
8
|
/**
|
|
9
|
-
* MidSideMerge merges the mid and side signal after they've been separated by
|
|
9
|
+
* MidSideMerge merges the mid and side signal after they've been separated by {@link MidSideSplit}
|
|
10
10
|
* ```
|
|
11
11
|
* Mid = (Left+Right)/sqrt(2); // obtain mid-signal from left and right
|
|
12
12
|
* Side = (Left-Right)/sqrt(2); // obtain side-signal from left and right
|
|
@@ -14,7 +14,7 @@ export declare class MidSideSplit extends ToneAudioNode<MidSideSplitOptions> {
|
|
|
14
14
|
readonly name: string;
|
|
15
15
|
readonly input: Split;
|
|
16
16
|
/**
|
|
17
|
-
* There is no output node, use either
|
|
17
|
+
* There is no output node, use either {@link mid} or {@link side} outputs.
|
|
18
18
|
*/
|
|
19
19
|
readonly output: undefined;
|
|
20
20
|
/**
|
|
@@ -66,7 +66,7 @@ export declare class Recorder extends ToneAudioNode<RecorderOptions> {
|
|
|
66
66
|
start(): Promise<void>;
|
|
67
67
|
/**
|
|
68
68
|
* Stop the recorder. Returns a promise with the recorded content until this point
|
|
69
|
-
* encoded as
|
|
69
|
+
* encoded as {@link mimeType}
|
|
70
70
|
*/
|
|
71
71
|
stop(): Promise<Blob>;
|
|
72
72
|
/**
|
|
@@ -97,7 +97,7 @@ export class Recorder extends ToneAudioNode {
|
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Stop the recorder. Returns a promise with the recorded content until this point
|
|
100
|
-
* encoded as
|
|
100
|
+
* encoded as {@link mimeType}
|
|
101
101
|
*/
|
|
102
102
|
stop() {
|
|
103
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6,8 +6,8 @@ export interface GateOptions extends ToneAudioNodeOptions {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Gate only passes a signal through when the incoming
|
|
9
|
-
* signal exceeds a specified threshold. It uses
|
|
10
|
-
* of the incoming signal and compares it to the
|
|
9
|
+
* signal exceeds a specified threshold. It uses {@link Follower} to follow the ampltiude
|
|
10
|
+
* of the incoming signal and compares it to the {@link threshold} value using {@link GreaterThan}.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* const gate = new Tone.Gate(-30, 0.2).toDestination();
|
|
@@ -45,7 +45,8 @@ export declare class Gate extends ToneAudioNode<GateOptions> {
|
|
|
45
45
|
get threshold(): Decibels;
|
|
46
46
|
set threshold(thresh: Decibels);
|
|
47
47
|
/**
|
|
48
|
-
* The attack/decay speed of the gate.
|
|
48
|
+
* The attack/decay speed of the gate.
|
|
49
|
+
* @see {@link Follower.smoothing}
|
|
49
50
|
*/
|
|
50
51
|
get smoothing(): Time;
|
|
51
52
|
set smoothing(smoothingTime: Time);
|
|
@@ -6,8 +6,8 @@ import { optionsFromArguments } from "../../core/util/Defaults";
|
|
|
6
6
|
import { dbToGain, gainToDb } from "../../core/type/Conversions";
|
|
7
7
|
/**
|
|
8
8
|
* Gate only passes a signal through when the incoming
|
|
9
|
-
* signal exceeds a specified threshold. It uses
|
|
10
|
-
* of the incoming signal and compares it to the
|
|
9
|
+
* signal exceeds a specified threshold. It uses {@link Follower} to follow the ampltiude
|
|
10
|
+
* of the incoming signal and compares it to the {@link threshold} value using {@link GreaterThan}.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* const gate = new Tone.Gate(-30, 0.2).toDestination();
|
|
@@ -52,7 +52,8 @@ export class Gate extends ToneAudioNode {
|
|
|
52
52
|
this._gt.value = dbToGain(thresh);
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* The attack/decay speed of the gate.
|
|
55
|
+
* The attack/decay speed of the gate.
|
|
56
|
+
* @see {@link Follower.smoothing}
|
|
56
57
|
*/
|
|
57
58
|
get smoothing() {
|
|
58
59
|
return this._follower.smoothing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gate.js","sourceRoot":"","sources":["../../../../Tone/component/dynamics/Gate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAwB,MAAM,kCAAkC,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAOjE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,IAAK,SAAQ,aAA0B;IA4BnD;QACC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QA3B9F,SAAI,GAAW,MAAM,CAAC;QA4B9B,MAAM,OAA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AC;CACD"}
|
|
@@ -6,7 +6,7 @@ export interface LimiterOptions extends ToneAudioNodeOptions {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Limiter will limit the loudness of an incoming signal.
|
|
9
|
-
* Under the hood it's composed of a
|
|
9
|
+
* Under the hood it's composed of a {@link Compressor} with a fast attack
|
|
10
10
|
* and release and max compression ratio.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
@@ -4,7 +4,7 @@ import { Compressor } from "./Compressor";
|
|
|
4
4
|
import { readOnly } from "../../core/util/Interface";
|
|
5
5
|
/**
|
|
6
6
|
* Limiter will limit the loudness of an incoming signal.
|
|
7
|
-
* Under the hood it's composed of a
|
|
7
|
+
* Under the hood it's composed of a {@link Compressor} with a fast attack
|
|
8
8
|
* and release and max compression ratio.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
@@ -6,8 +6,9 @@ export interface MidSideCompressorOptions extends ToneAudioNodeOptions {
|
|
|
6
6
|
side: Omit<CompressorOptions, keyof ToneAudioNodeOptions>;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* MidSideCompressor applies two different compressors to the
|
|
10
|
-
* and
|
|
9
|
+
* MidSideCompressor applies two different compressors to the {@link mid}
|
|
10
|
+
* and {@link side} signal components of the input.
|
|
11
|
+
* @see {@link MidSideSplit} and {@link MidSideMerge}.
|
|
11
12
|
* @category Component
|
|
12
13
|
*/
|
|
13
14
|
export declare class MidSideCompressor extends ToneAudioNode<MidSideCompressorOptions> {
|
|
@@ -5,8 +5,9 @@ import { MidSideSplit } from "../channel/MidSideSplit";
|
|
|
5
5
|
import { MidSideMerge } from "../channel/MidSideMerge";
|
|
6
6
|
import { readOnly } from "../../core/util/Interface";
|
|
7
7
|
/**
|
|
8
|
-
* MidSideCompressor applies two different compressors to the
|
|
9
|
-
* and
|
|
8
|
+
* MidSideCompressor applies two different compressors to the {@link mid}
|
|
9
|
+
* and {@link side} signal components of the input.
|
|
10
|
+
* @see {@link MidSideSplit} and {@link MidSideMerge}.
|
|
10
11
|
* @category Component
|
|
11
12
|
*/
|
|
12
13
|
export class MidSideCompressor extends ToneAudioNode {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MidSideCompressor.js","sourceRoot":"","sources":["../../../../Tone/component/dynamics/MidSideCompressor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,aAAa,EAAwB,MAAM,kCAAkC,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAqB,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAoB,MAAM,2BAA2B,CAAC;AAOvE
|
|
1
|
+
{"version":3,"file":"MidSideCompressor.js","sourceRoot":"","sources":["../../../../Tone/component/dynamics/MidSideCompressor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,aAAa,EAAwB,MAAM,kCAAkC,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAqB,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAoB,MAAM,2BAA2B,CAAC;AAOvE;;;;;GAKG;AACH,MAAM,OAAO,iBAAkB,SAAQ,aAAuC;IA4B7E;QACC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,WAAW,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;QA3B/E,SAAI,GAAW,mBAAmB,CAAC;QA4B3C,MAAM,OAAO,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,WAAW,EAAE,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;gBACd,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,EAAE;aACR;SACD,CAAC,CAAC;IACJ,CAAC;IAED,OAAO;QACN,KAAK,CAAC,OAAO,EAAE,CAAC;QAChB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QACnB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACpB,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACb,CAAC;CACD"}
|
|
@@ -11,7 +11,8 @@ export interface MultibandCompressorOptions extends ToneAudioNodeOptions {
|
|
|
11
11
|
highFrequency: Frequency;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* A compressor with separate controls over low/mid/high dynamics.
|
|
14
|
+
* A compressor with separate controls over low/mid/high dynamics.
|
|
15
|
+
* @see {@link Compressor} and {@link MultibandSplit}
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* const multiband = new Tone.MultibandCompressor({
|
|
@@ -5,7 +5,8 @@ import { readOnly } from "../../core/util/Interface";
|
|
|
5
5
|
import { MultibandSplit } from "../channel/MultibandSplit";
|
|
6
6
|
import { Gain } from "../../core/context/Gain";
|
|
7
7
|
/**
|
|
8
|
-
* A compressor with separate controls over low/mid/high dynamics.
|
|
8
|
+
* A compressor with separate controls over low/mid/high dynamics.
|
|
9
|
+
* @see {@link Compressor} and {@link MultibandSplit}
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
* const multiband = new Tone.MultibandCompressor({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultibandCompressor.js","sourceRoot":"","sources":["../../../../Tone/component/dynamics/MultibandCompressor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAwB,MAAM,kCAAkC,CAAC;AAClG,OAAO,EAAE,UAAU,EAA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,IAAI;YACnB,GAAG,EAAE;gBACJ,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,CAAC,EAAE;gBACd,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,EAAE;aACR;YACD,GAAG,EAAE;gBACJ,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,CAAC,EAAE;gBACd,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,EAAE;aACR;YACD,IAAI,EAAE;gBACL,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,CAAC,EAAE;gBACd,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,EAAE;aACR;SACD,CAAC,CAAC;IACJ,CAAC;IAED,OAAO;QACN,KAAK,CAAC,OAAO,EAAE,CAAC;QAChB,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;QACzB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QACnB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QACnB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;CACD"}
|
|
@@ -6,8 +6,8 @@ export interface FrequencyEnvelopeOptions extends EnvelopeOptions {
|
|
|
6
6
|
exponent: number;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* FrequencyEnvelope is an
|
|
10
|
-
* and
|
|
9
|
+
* FrequencyEnvelope is an {@link Envelope} which ramps between {@link baseFrequency}
|
|
10
|
+
* and {@link octaves}. It can also have an optional {@link exponent} to adjust the curve
|
|
11
11
|
* which it ramps.
|
|
12
12
|
* @example
|
|
13
13
|
* const oscillator = new Tone.Oscillator().toDestination().start();
|
|
@@ -4,8 +4,8 @@ import { Scale } from "../../signal/Scale";
|
|
|
4
4
|
import { Pow } from "../../signal/Pow";
|
|
5
5
|
import { assertRange } from "../../core/util/Debug";
|
|
6
6
|
/**
|
|
7
|
-
* FrequencyEnvelope is an
|
|
8
|
-
* and
|
|
7
|
+
* FrequencyEnvelope is an {@link Envelope} which ramps between {@link baseFrequency}
|
|
8
|
+
* and {@link octaves}. It can also have an optional {@link exponent} to adjust the curve
|
|
9
9
|
* which it ramps.
|
|
10
10
|
* @example
|
|
11
11
|
* const oscillator = new Tone.Oscillator().toDestination().start();
|
|
@@ -10,7 +10,7 @@ export interface BiquadFilterOptions extends ToneAudioNodeOptions {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Thin wrapper around the native Web Audio [BiquadFilterNode](https://webaudio.github.io/web-audio-api/#biquadfilternode).
|
|
13
|
-
* BiquadFilter is similar to
|
|
13
|
+
* BiquadFilter is similar to {@link Filter} but doesn't have the option to set the "rolloff" value.
|
|
14
14
|
* @category Component
|
|
15
15
|
*/
|
|
16
16
|
export declare class BiquadFilter extends ToneAudioNode<BiquadFilterOptions> {
|
|
@@ -4,7 +4,7 @@ import { Param } from "../../core/context/Param";
|
|
|
4
4
|
import { assert } from "../../core/util/Debug";
|
|
5
5
|
/**
|
|
6
6
|
* Thin wrapper around the native Web Audio [BiquadFilterNode](https://webaudio.github.io/web-audio-api/#biquadfilternode).
|
|
7
|
-
* BiquadFilter is similar to
|
|
7
|
+
* BiquadFilter is similar to {@link Filter} but doesn't have the option to set the "rolloff" value.
|
|
8
8
|
* @category Component
|
|
9
9
|
*/
|
|
10
10
|
export class BiquadFilter extends ToneAudioNode {
|
|
@@ -9,7 +9,7 @@ interface LowpassCombFilterOptions extends ToneAudioNodeOptions {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* A lowpass feedback comb filter. It is similar to
|
|
12
|
-
*
|
|
12
|
+
* {@link FeedbackCombFilter}, but includes a lowpass filter.
|
|
13
13
|
* @category Component
|
|
14
14
|
*/
|
|
15
15
|
export declare class LowpassCombFilter extends ToneAudioNode<LowpassCombFilterOptions> {
|
|
@@ -4,7 +4,7 @@ import { FeedbackCombFilter } from "./FeedbackCombFilter";
|
|
|
4
4
|
import { OnePoleFilter } from "./OnePoleFilter";
|
|
5
5
|
/**
|
|
6
6
|
* A lowpass feedback comb filter. It is similar to
|
|
7
|
-
*
|
|
7
|
+
* {@link FeedbackCombFilter}, but includes a lowpass filter.
|
|
8
8
|
* @category Component
|
|
9
9
|
*/
|
|
10
10
|
export class LowpassCombFilter extends ToneAudioNode {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyAudioContext } from "./context/AudioContext";
|
|
2
2
|
import { BaseContext } from "./context/BaseContext";
|
|
3
3
|
/**
|
|
4
|
-
* Returns the default system-wide
|
|
4
|
+
* Returns the default system-wide {@link Context}
|
|
5
5
|
* @category Core
|
|
6
6
|
*/
|
|
7
7
|
export declare function getContext(): BaseContext;
|
package/build/esm/core/Global.js
CHANGED
|
@@ -8,7 +8,7 @@ interface TickParamOptions<TypeName extends UnitName> extends ParamOptions<TypeN
|
|
|
8
8
|
multiplier: number;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* A Param class just for computing ticks. Similar to the
|
|
11
|
+
* A Param class just for computing ticks. Similar to the {@link Param} class,
|
|
12
12
|
* but offers conversion to BPM values as well as ability to compute tick
|
|
13
13
|
* duration and elapsed ticks
|
|
14
14
|
*/
|
|
@@ -72,7 +72,7 @@ export declare class TickParam<TypeName extends "hertz" | "bpm"> extends Param<T
|
|
|
72
72
|
*/
|
|
73
73
|
ticksToTime(ticks: Ticks, when: Time): Seconds;
|
|
74
74
|
/**
|
|
75
|
-
* The inverse of
|
|
75
|
+
* The inverse of {@link ticksToTime}. Convert a duration in
|
|
76
76
|
* seconds to the corresponding number of ticks accounting for any
|
|
77
77
|
* automation curves starting at the given time.
|
|
78
78
|
* @param duration The time interval to convert to ticks.
|