tone 15.2.4 → 15.2.5
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/dynamics/Limiter.ts +1 -1
- package/Tone/component/envelope/AmplitudeEnvelope.ts +1 -1
- package/Tone/component/envelope/Envelope.ts +3 -3
- package/Tone/core/clock/Clock.test.ts +1 -1
- package/Tone/core/context/AbstractParam.ts +5 -5
- package/Tone/core/context/ToneAudioBuffer.ts +1 -1
- package/Tone/core/util/IntervalTimeline.ts +1 -1
- package/Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts +1 -1
- package/Tone/effect/AutoFilter.ts +1 -1
- package/Tone/effect/Tremolo.ts +1 -1
- package/Tone/instrument/Sampler.test.ts +2 -2
- package/Tone/signal/Zero.ts +1 -1
- package/Tone/source/Source.ts +1 -1
- package/Tone/source/buffer/Player.ts +2 -2
- package/Tone/source/buffer/ToneBufferSource.ts +1 -1
- package/Tone/source/oscillator/LFO.test.ts +1 -1
- package/Tone/source/oscillator/LFO.ts +1 -1
- package/Tone/source/oscillator/PWMOscillator.test.ts +1 -1
- package/Tone/source/oscillator/PulseOscillator.test.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/dynamics/Limiter.d.ts +1 -1
- package/build/esm/component/dynamics/Limiter.js +1 -1
- package/build/esm/component/envelope/AmplitudeEnvelope.d.ts +1 -1
- package/build/esm/component/envelope/Envelope.d.ts +3 -3
- package/build/esm/core/context/AbstractParam.d.ts +5 -5
- package/build/esm/core/context/ToneAudioBuffer.js +1 -1
- package/build/esm/core/context/ToneAudioBuffer.js.map +1 -1
- package/build/esm/core/util/IntervalTimeline.js +1 -1
- package/build/esm/core/worklet/ToneAudioWorkletProcessor.worklet.js +1 -1
- package/build/esm/effect/AutoFilter.d.ts +1 -1
- package/build/esm/effect/AutoFilter.js +1 -1
- package/build/esm/effect/Tremolo.d.ts +1 -1
- package/build/esm/effect/Tremolo.js +1 -1
- package/build/esm/signal/Zero.d.ts +1 -1
- package/build/esm/signal/Zero.js +1 -1
- package/build/esm/source/Source.d.ts +1 -1
- package/build/esm/source/buffer/Player.d.ts +2 -2
- package/build/esm/source/buffer/Player.js +1 -1
- package/build/esm/source/buffer/ToneBufferSource.d.ts +1 -1
- package/build/esm/source/buffer/ToneBufferSource.js +1 -1
- package/build/esm/source/oscillator/LFO.d.ts +1 -1
- package/build/esm/source/oscillator/LFO.js +1 -1
- package/build/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
9
|
+
* Under the hood its 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.js";
|
|
|
4
4
|
import { readOnly } from "../../core/util/Interface.js";
|
|
5
5
|
/**
|
|
6
6
|
* Limiter will limit the loudness of an incoming signal.
|
|
7
|
-
* Under the hood
|
|
7
|
+
* Under the hood its composed of a {@link Compressor} with a fast attack
|
|
8
8
|
* and release and max compression ratio.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
@@ -29,7 +29,7 @@ export declare class AmplitudeEnvelope extends Envelope {
|
|
|
29
29
|
output: Gain;
|
|
30
30
|
input: Gain;
|
|
31
31
|
/**
|
|
32
|
-
* @param attack The amount of time it takes for the envelope to go from 0 to
|
|
32
|
+
* @param attack The amount of time it takes for the envelope to go from 0 to its maximum value.
|
|
33
33
|
* @param decay The period of time after the attack that it takes for the envelope
|
|
34
34
|
* to fall to the sustain value. Value must be greater than 0.
|
|
35
35
|
* @param sustain The percent of the maximum value that the envelope rests at until
|
|
@@ -44,7 +44,7 @@ export declare class Envelope extends ToneAudioNode<EnvelopeOptions> {
|
|
|
44
44
|
readonly name: string;
|
|
45
45
|
/**
|
|
46
46
|
* When triggerAttack is called, the attack time is the amount of
|
|
47
|
-
* time it takes for the envelope to reach
|
|
47
|
+
* time it takes for the envelope to reach its maximum value.
|
|
48
48
|
* ```
|
|
49
49
|
* /\
|
|
50
50
|
* /X \
|
|
@@ -62,7 +62,7 @@ export declare class Envelope extends ToneAudioNode<EnvelopeOptions> {
|
|
|
62
62
|
attack: Time;
|
|
63
63
|
/**
|
|
64
64
|
* After the attack portion of the envelope, the value will fall
|
|
65
|
-
* over the duration of the decay time to
|
|
65
|
+
* over the duration of the decay time to its sustain value.
|
|
66
66
|
* ```
|
|
67
67
|
* /\
|
|
68
68
|
* / X\
|
|
@@ -140,7 +140,7 @@ export declare class Envelope extends ToneAudioNode<EnvelopeOptions> {
|
|
|
140
140
|
input: InputNode | undefined;
|
|
141
141
|
/**
|
|
142
142
|
* @param attack The amount of time it takes for the envelope to go from
|
|
143
|
-
* 0 to
|
|
143
|
+
* 0 to its maximum value.
|
|
144
144
|
* @param decay The period of time after the attack that it takes for the envelope
|
|
145
145
|
* to fall to the sustain value. Value must be greater than 0.
|
|
146
146
|
* @param sustain The percent of the maximum value that the envelope rests at until
|
|
@@ -75,7 +75,7 @@ export declare abstract class AbstractParam<TypeName extends UnitName> {
|
|
|
75
75
|
* duration of the rampTime.
|
|
76
76
|
* @param value The value to ramp to.
|
|
77
77
|
* @param rampTime the time that it takes the
|
|
78
|
-
* value to ramp from
|
|
78
|
+
* value to ramp from its current value
|
|
79
79
|
* @param startTime When the ramp should start.
|
|
80
80
|
* @example
|
|
81
81
|
* const delay = new Tone.FeedbackDelay(0.5, 0.98).toDestination();
|
|
@@ -97,7 +97,7 @@ export declare abstract class AbstractParam<TypeName extends UnitName> {
|
|
|
97
97
|
*
|
|
98
98
|
* @param value The value to ramp to.
|
|
99
99
|
* @param rampTime the time that it takes the
|
|
100
|
-
* value to ramp from
|
|
100
|
+
* value to ramp from its current value
|
|
101
101
|
* @param startTime When the ramp should start.
|
|
102
102
|
* @returns {Param} this
|
|
103
103
|
* @example
|
|
@@ -119,7 +119,7 @@ export declare abstract class AbstractParam<TypeName extends UnitName> {
|
|
|
119
119
|
* rampTime is the time that it takes to reach over 99% of the way towards the value.
|
|
120
120
|
* @param value The value to ramp to.
|
|
121
121
|
* @param rampTime the time that it takes the
|
|
122
|
-
* value to ramp from
|
|
122
|
+
* value to ramp from its current value
|
|
123
123
|
* @param startTime When the ramp should start.
|
|
124
124
|
* @example
|
|
125
125
|
* @example
|
|
@@ -136,7 +136,7 @@ export declare abstract class AbstractParam<TypeName extends UnitName> {
|
|
|
136
136
|
* is similar to setTargetAtTime except the third argument is a time instead of a 'timeConstant'
|
|
137
137
|
* @param value The value to ramp to.
|
|
138
138
|
* @param time When the ramp should start.
|
|
139
|
-
* @param rampTime the time that it takes the value to ramp from
|
|
139
|
+
* @param rampTime the time that it takes the value to ramp from its current value
|
|
140
140
|
* @example
|
|
141
141
|
* const osc = new Tone.Oscillator().toDestination().start();
|
|
142
142
|
* // exponential approach over 4 seconds starting in 1 second
|
|
@@ -198,7 +198,7 @@ export declare abstract class AbstractParam<TypeName extends UnitName> {
|
|
|
198
198
|
* depending on the `units` of the signal
|
|
199
199
|
*
|
|
200
200
|
* @param value
|
|
201
|
-
* @param rampTime The time that it takes the value to ramp from
|
|
201
|
+
* @param rampTime The time that it takes the value to ramp from its current value
|
|
202
202
|
* @param startTime When the ramp should start.
|
|
203
203
|
* @example
|
|
204
204
|
* const osc = new Tone.Oscillator().toDestination().start();
|
|
@@ -62,7 +62,7 @@ export class ToneAudioBuffer extends Tone {
|
|
|
62
62
|
this._buffer = buffer.get();
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
65
|
-
// otherwise when
|
|
65
|
+
// otherwise when its loaded, invoke it's callback
|
|
66
66
|
buffer.onload = () => {
|
|
67
67
|
this.set(buffer);
|
|
68
68
|
this.onload(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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9,7 @@ const toneAudioWorkletProcessor = /* javascript */ `
|
|
|
9
9
|
|
|
10
10
|
super(options);
|
|
11
11
|
/**
|
|
12
|
-
* If the processor was disposed or not. Keep alive until
|
|
12
|
+
* If the processor was disposed or not. Keep alive until its disposed.
|
|
13
13
|
*/
|
|
14
14
|
this.disposed = false;
|
|
15
15
|
/**
|
|
@@ -13,7 +13,7 @@ export interface AutoFilterOptions extends LFOEffectOptions {
|
|
|
13
13
|
* and depth.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* // create an autofilter and start
|
|
16
|
+
* // create an autofilter and start its LFO
|
|
17
17
|
* const autoFilter = new Tone.AutoFilter("4n").toDestination().start();
|
|
18
18
|
* // route an oscillator through the filter and start it
|
|
19
19
|
* const oscillator = new Tone.Oscillator().connect(autoFilter).start();
|
|
@@ -7,7 +7,7 @@ import { LFOEffect } from "./LFOEffect.js";
|
|
|
7
7
|
* and depth.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
-
* // create an autofilter and start
|
|
10
|
+
* // create an autofilter and start its LFO
|
|
11
11
|
* const autoFilter = new Tone.AutoFilter("4n").toDestination().start();
|
|
12
12
|
* // route an oscillator through the filter and start it
|
|
13
13
|
* const oscillator = new Tone.Oscillator().connect(autoFilter).start();
|
|
@@ -13,7 +13,7 @@ export interface TremoloOptions extends StereoEffectOptions {
|
|
|
13
13
|
* The effect is a stereo effect where the modulation phase is inverted in each channel.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* // create a tremolo and start
|
|
16
|
+
* // create a tremolo and start its LFO
|
|
17
17
|
* const tremolo = new Tone.Tremolo(9, 0.75).toDestination().start();
|
|
18
18
|
* // route an oscillator through the tremolo and start it
|
|
19
19
|
* const oscillator = new Tone.Oscillator().connect(tremolo).start();
|
|
@@ -9,7 +9,7 @@ import { readOnly } from "../core/util/Interface.js";
|
|
|
9
9
|
* The effect is a stereo effect where the modulation phase is inverted in each channel.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
|
-
* // create a tremolo and start
|
|
12
|
+
* // create a tremolo and start its LFO
|
|
13
13
|
* const tremolo = new Tone.Tremolo(9, 0.75).toDestination().start();
|
|
14
14
|
* // route an oscillator through the tremolo and start it
|
|
15
15
|
* const oscillator = new Tone.Oscillator().connect(tremolo).start();
|
|
@@ -3,7 +3,7 @@ import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
|
|
|
3
3
|
import { SignalOperator } from "./SignalOperator.js";
|
|
4
4
|
/**
|
|
5
5
|
* Tone.Zero outputs 0's at audio-rate. The reason this has to be
|
|
6
|
-
*
|
|
6
|
+
* its own class is that many browsers optimize out Tone.Signal
|
|
7
7
|
* with a value of 0 and will not process nodes further down the graph.
|
|
8
8
|
* @category Signal
|
|
9
9
|
*/
|
package/build/esm/signal/Zero.js
CHANGED
|
@@ -4,7 +4,7 @@ import { optionsFromArguments } from "../core/util/Defaults.js";
|
|
|
4
4
|
import { SignalOperator } from "./SignalOperator.js";
|
|
5
5
|
/**
|
|
6
6
|
* Tone.Zero outputs 0's at audio-rate. The reason this has to be
|
|
7
|
-
*
|
|
7
|
+
* its own class is that many browsers optimize out Tone.Signal
|
|
8
8
|
* with a value of 0 and will not process nodes further down the graph.
|
|
9
9
|
* @category Signal
|
|
10
10
|
*/
|
|
@@ -59,7 +59,7 @@ export declare abstract class Source<Options extends SourceOptions> extends Tone
|
|
|
59
59
|
offset?: Seconds;
|
|
60
60
|
/**
|
|
61
61
|
* Either the buffer is explicitly scheduled to end using the stop method,
|
|
62
|
-
* or
|
|
62
|
+
* or its implicitly ended when the buffer is over.
|
|
63
63
|
*/
|
|
64
64
|
implicitEnd?: boolean;
|
|
65
65
|
}>;
|
|
@@ -34,7 +34,7 @@ export declare class Player extends Source<PlayerOptions> {
|
|
|
34
34
|
*/
|
|
35
35
|
private _buffer;
|
|
36
36
|
/**
|
|
37
|
-
* if the buffer should loop once
|
|
37
|
+
* if the buffer should loop once its over
|
|
38
38
|
*/
|
|
39
39
|
private _loop;
|
|
40
40
|
/**
|
|
@@ -154,7 +154,7 @@ export declare class Player extends Source<PlayerOptions> {
|
|
|
154
154
|
get buffer(): ToneAudioBuffer;
|
|
155
155
|
set buffer(buffer: ToneAudioBuffer);
|
|
156
156
|
/**
|
|
157
|
-
* If the buffer should loop once
|
|
157
|
+
* If the buffer should loop once its over.
|
|
158
158
|
* @example
|
|
159
159
|
* const player = new Tone.Player("https://tonejs.github.io/audio/drum-samples/breakbeat.mp3").toDestination();
|
|
160
160
|
* player.loop = true;
|
|
@@ -267,7 +267,7 @@ export class Player extends Source {
|
|
|
267
267
|
this._buffer.set(buffer);
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
-
* If the buffer should loop once
|
|
270
|
+
* If the buffer should loop once its over.
|
|
271
271
|
* @example
|
|
272
272
|
* const player = new Tone.Player("https://tonejs.github.io/audio/drum-samples/breakbeat.mp3").toDestination();
|
|
273
273
|
* player.loop = true;
|
|
@@ -86,7 +86,7 @@ export declare class ToneBufferSource extends OneShotSource<ToneBufferSourceOpti
|
|
|
86
86
|
get buffer(): ToneAudioBuffer;
|
|
87
87
|
set buffer(buffer: ToneAudioBuffer);
|
|
88
88
|
/**
|
|
89
|
-
* If the buffer should loop once
|
|
89
|
+
* If the buffer should loop once its over.
|
|
90
90
|
*/
|
|
91
91
|
get loop(): boolean;
|
|
92
92
|
set loop(loop: boolean);
|
package/build/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "15.2.
|
|
1
|
+
export const version = "15.2.5";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|