tone 14.9.11 → 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 +2 -1
- package/Tone/core/context/ToneWithContext.ts +1 -1
- package/Tone/core/index.ts +1 -0
- package/Tone/core/type/Time.ts +1 -1
- package/Tone/core/util/Defaults.ts +2 -0
- 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 +2 -1
- package/build/esm/core/context/ToneAudioNode.js +2 -1
- package/build/esm/core/context/ToneAudioNode.js.map +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/index.d.ts +1 -0
- package/build/esm/core/index.js +1 -0
- package/build/esm/core/index.js.map +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/util/Defaults.d.ts +2 -0
- package/build/esm/core/util/Defaults.js +2 -0
- package/build/esm/core/util/Defaults.js.map +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
package/Tone/event/Pattern.ts
CHANGED
|
@@ -121,7 +121,7 @@ export class Pattern<ValueType> extends Loop<PatternOptions<ValueType>> {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* The pattern type.
|
|
124
|
+
* The pattern type.
|
|
125
125
|
*/
|
|
126
126
|
get pattern(): PatternName {
|
|
127
127
|
return this._type;
|
package/Tone/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { getContext, setContext } from "./core/Global";
|
|
2
|
+
import { BaseContext } from "./core/context/BaseContext";
|
|
2
3
|
export * from "./classes";
|
|
3
4
|
export * from "./version";
|
|
4
5
|
import { getContext } from "./core/Global";
|
|
@@ -8,8 +9,8 @@ import { Seconds } from "./core/type/Units";
|
|
|
8
9
|
export { supported } from "./core/context/AudioContext";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
|
-
* The current audio context time of the global
|
|
12
|
-
*
|
|
12
|
+
* The current audio context time of the global {@link BaseContext}.
|
|
13
|
+
* @see {@link BaseContext.now}
|
|
13
14
|
* @category Core
|
|
14
15
|
*/
|
|
15
16
|
export function now(): Seconds {
|
|
@@ -17,8 +18,8 @@ export function now(): Seconds {
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
|
-
* The current audio context time of the global
|
|
21
|
-
*
|
|
21
|
+
* The current audio context time of the global {@link BaseContext} without the {@link BaseContext.lookAhead}
|
|
22
|
+
* @see {@link BaseContext.immediate}
|
|
22
23
|
* @category Core
|
|
23
24
|
*/
|
|
24
25
|
export function immediate(): Seconds {
|
|
@@ -27,7 +28,7 @@ export function immediate(): Seconds {
|
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* The Transport object belonging to the global Tone.js Context.
|
|
30
|
-
*
|
|
31
|
+
* @see {@link TransportClass}
|
|
31
32
|
* @category Core
|
|
32
33
|
* @deprecated Use {@link getTransport} instead
|
|
33
34
|
*/
|
|
@@ -35,7 +36,7 @@ export const Transport = getContext().transport;
|
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* The Transport object belonging to the global Tone.js Context.
|
|
38
|
-
*
|
|
39
|
+
* @see {@link TransportClass}
|
|
39
40
|
* @category Core
|
|
40
41
|
*/
|
|
41
42
|
export function getTransport(): import("./core/clock/Transport").TransportClass {
|
|
@@ -44,7 +45,7 @@ export function getTransport(): import("./core/clock/Transport").TransportClass
|
|
|
44
45
|
|
|
45
46
|
/**
|
|
46
47
|
* The Destination (output) belonging to the global Tone.js Context.
|
|
47
|
-
*
|
|
48
|
+
* @see {@link DestinationClass}
|
|
48
49
|
* @category Core
|
|
49
50
|
* @deprecated Use {@link getDestination} instead
|
|
50
51
|
*/
|
|
@@ -57,7 +58,7 @@ export const Master = getContext().destination;
|
|
|
57
58
|
|
|
58
59
|
/**
|
|
59
60
|
* The Destination (output) belonging to the global Tone.js Context.
|
|
60
|
-
*
|
|
61
|
+
* @see {@link DestinationClass}
|
|
61
62
|
* @category Core
|
|
62
63
|
*/
|
|
63
64
|
export function getDestination(): import("./core/context/Destination").DestinationClass {
|
|
@@ -65,14 +66,14 @@ export function getDestination(): import("./core/context/Destination").Destinati
|
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
|
-
* The
|
|
69
|
+
* The {@link ListenerClass} belonging to the global Tone.js Context.
|
|
69
70
|
* @category Core
|
|
70
71
|
* @deprecated Use {@link getListener} instead
|
|
71
72
|
*/
|
|
72
73
|
export const Listener = getContext().listener;
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
|
-
* The
|
|
76
|
+
* The {@link ListenerClass} belonging to the global Tone.js Context.
|
|
76
77
|
* @category Core
|
|
77
78
|
*/
|
|
78
79
|
export function getListener(): import("./core/context/Listener").ListenerClass {
|
|
@@ -81,7 +82,7 @@ export function getListener(): import("./core/context/Listener").ListenerClass {
|
|
|
81
82
|
|
|
82
83
|
/**
|
|
83
84
|
* Draw is used to synchronize the draw frame with the Transport's callbacks.
|
|
84
|
-
*
|
|
85
|
+
* @see {@link DrawClass}
|
|
85
86
|
* @category Core
|
|
86
87
|
* @deprecated Use {@link getDraw} instead
|
|
87
88
|
*/
|
|
@@ -90,7 +91,7 @@ export const Draw = getContext().draw;
|
|
|
90
91
|
/**
|
|
91
92
|
* Get the singleton attached to the global context.
|
|
92
93
|
* Draw is used to synchronize the draw frame with the Transport's callbacks.
|
|
93
|
-
*
|
|
94
|
+
* @see {@link DrawClass}
|
|
94
95
|
* @category Core
|
|
95
96
|
*/
|
|
96
97
|
export function getDraw(): import("./core/util/Draw").DrawClass {
|
|
@@ -99,14 +100,14 @@ export function getDraw(): import("./core/util/Draw").DrawClass {
|
|
|
99
100
|
|
|
100
101
|
/**
|
|
101
102
|
* A reference to the global context
|
|
102
|
-
*
|
|
103
|
+
* @see {@link BaseContext}
|
|
103
104
|
* @deprecated Use {@link getContext} instead
|
|
104
105
|
*/
|
|
105
106
|
export const context = getContext();
|
|
106
107
|
|
|
107
108
|
/**
|
|
108
109
|
* Promise which resolves when all of the loading promises are resolved.
|
|
109
|
-
* Alias for static
|
|
110
|
+
* Alias for static {@link ToneAudioBuffer.loaded} method.
|
|
110
111
|
* @category Core
|
|
111
112
|
*/
|
|
112
113
|
export function loaded() {
|
|
@@ -18,7 +18,7 @@ export interface DuoSynthOptions extends MonophonicOptions {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* DuoSynth is a monophonic synth composed of two
|
|
21
|
+
* DuoSynth is a monophonic synth composed of two {@link MonoSynth}s run in parallel with control over the
|
|
22
22
|
* frequency ratio between the two voices and vibrato effect.
|
|
23
23
|
* @example
|
|
24
24
|
* const duoSynth = new Tone.DuoSynth().toDestination();
|
|
@@ -67,7 +67,7 @@ export abstract class Instrument<Options extends InstrumentOptions> extends Tone
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Sync the instrument to the Transport. All subsequent calls of
|
|
70
|
-
*
|
|
70
|
+
* {@link triggerAttack} and {@link triggerRelease} will be scheduled along the transport.
|
|
71
71
|
* @example
|
|
72
72
|
* const fmSynth = new Tone.FMSynth().toDestination();
|
|
73
73
|
* fmSynth.volume.value = -6;
|
|
@@ -91,7 +91,7 @@ export class MetalSynth extends Monophonic<MetalSynthOptions> {
|
|
|
91
91
|
/**
|
|
92
92
|
* The envelope which is connected both to the
|
|
93
93
|
* amplitude and a highpass filter's cutoff frequency.
|
|
94
|
-
* The lower-limit of the filter is controlled by the
|
|
94
|
+
* The lower-limit of the filter is controlled by the {@link resonance}
|
|
95
95
|
*/
|
|
96
96
|
readonly envelope: Envelope;
|
|
97
97
|
|
|
@@ -231,7 +231,7 @@ export class MetalSynth extends Monophonic<MetalSynthOptions> {
|
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* The modulationIndex of the oscillators which make up the source.
|
|
234
|
-
* see
|
|
234
|
+
* see {@link FMOscillator.modulationIndex}
|
|
235
235
|
* @min 1
|
|
236
236
|
* @max 100
|
|
237
237
|
*/
|
|
@@ -17,7 +17,7 @@ export interface NoiseSynthOptions extends InstrumentOptions {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Tone.NoiseSynth is composed of
|
|
20
|
+
* Tone.NoiseSynth is composed of {@link Noise} through an {@link AmplitudeEnvelope}.
|
|
21
21
|
* ```
|
|
22
22
|
* +-------+ +-------------------+
|
|
23
23
|
* | Noise +>--> AmplitudeEnvelope +>--> Output
|
|
@@ -111,7 +111,7 @@ export class PluckSynth extends Instrument<PluckSynthOptions> {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Ramp down the
|
|
114
|
+
* Ramp down the {@link resonance} to 0 over the duration of the release time.
|
|
115
115
|
*/
|
|
116
116
|
triggerRelease(time?: Time): this {
|
|
117
117
|
this._lfcf.resonance.linearRampTo(0, this.release, time);
|
|
@@ -33,7 +33,7 @@ export interface SamplerOptions extends InstrumentOptions {
|
|
|
33
33
|
* were not explicitly included which can save loading time.
|
|
34
34
|
*
|
|
35
35
|
* For sample or buffer playback where repitching is not necessary,
|
|
36
|
-
* use
|
|
36
|
+
* use {@link Player}.
|
|
37
37
|
* @example
|
|
38
38
|
* const sampler = new Tone.Sampler({
|
|
39
39
|
* urls: {
|
package/Tone/instrument/Synth.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface SynthOptions extends MonophonicOptions {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Synth is composed simply of a
|
|
20
|
+
* Synth is composed simply of a {@link OmniOscillator} routed through an {@link AmplitudeEnvelope}.
|
|
21
21
|
* ```
|
|
22
22
|
* +----------------+ +-------------------+
|
|
23
23
|
* | OmniOscillator +>--> AmplitudeEnvelope +>--> Output
|
package/Tone/signal/Add.ts
CHANGED
|
@@ -39,7 +39,7 @@ export class Add extends Signal {
|
|
|
39
39
|
readonly addend: Param<"number"> = this._param;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* @param value If no value is provided, will sum the input and
|
|
42
|
+
* @param value If no value is provided, will sum the input and {@link addend}.
|
|
43
43
|
*/
|
|
44
44
|
constructor(value?: number);
|
|
45
45
|
constructor(options?: Partial<SignalOptions<"number">>);
|
|
@@ -4,7 +4,7 @@ import { WaveShaper } from "./WaveShaper";
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* AudioToGain converts an input in AudioRange [-1,1] to NormalRange [0,1].
|
|
7
|
-
*
|
|
7
|
+
* @see {@link GainToAudio}.
|
|
8
8
|
* @category Signal
|
|
9
9
|
*/
|
|
10
10
|
export class AudioToGain extends SignalOperator<ToneAudioNodeOptions> {
|
|
@@ -4,7 +4,7 @@ import { WaveShaper } from "./WaveShaper";
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GainToAudio converts an input in NormalRange [0,1] to AudioRange [-1,1].
|
|
7
|
-
*
|
|
7
|
+
* @see {@link AudioToGain}.
|
|
8
8
|
* @category Signal
|
|
9
9
|
*/
|
|
10
10
|
export class GainToAudio extends SignalOperator<ToneAudioNodeOptions> {
|
package/Tone/signal/Multiply.ts
CHANGED
package/Tone/signal/ScaleExp.ts
CHANGED
|
@@ -50,8 +50,8 @@ export class ScaleExp extends Scale<ScaleExpOptions> {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Instead of interpolating linearly between the
|
|
54
|
-
*
|
|
53
|
+
* Instead of interpolating linearly between the {@link min} and
|
|
54
|
+
* {@link max} values, setting the exponent will interpolate between
|
|
55
55
|
* the two values with an exponential curve.
|
|
56
56
|
*/
|
|
57
57
|
get exponent(): Positive {
|
package/Tone/signal/Signal.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ToneConstantSource } from "./ToneConstantSource";
|
|
|
6
6
|
import { OutputNode } from "../core/context/ToneAudioNode";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Adds the ability to synchronize the signal to the
|
|
9
|
+
* Adds the ability to synchronize the signal to the {@link TransportClass}
|
|
10
10
|
* @category Signal
|
|
11
11
|
*/
|
|
12
12
|
export class SyncedSignal<TypeName extends UnitName = "number"> extends Signal<TypeName> {
|
package/Tone/source/Source.ts
CHANGED
|
@@ -432,7 +432,7 @@ export class Player extends Source<PlayerOptions> {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
|
-
* If the buffer should be reversed. Note that this sets the underlying
|
|
435
|
+
* If the buffer should be reversed. Note that this sets the underlying {@link ToneAudioBuffer.reverse}, so
|
|
436
436
|
* if multiple players are pointing at the same ToneAudioBuffer, they will all be reversed.
|
|
437
437
|
* @example
|
|
438
438
|
* const player = new Tone.Player("https://tonejs.github.io/audio/berklee/chime_1.mp3").toDestination();
|
|
@@ -23,7 +23,7 @@ export interface PlayersOptions extends SourceOptions {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* Players combines multiple
|
|
26
|
+
* Players combines multiple {@link Player} objects.
|
|
27
27
|
* @category Source
|
|
28
28
|
*/
|
|
29
29
|
export class Players extends ToneAudioNode<PlayersOptions> {
|
|
@@ -94,7 +94,7 @@ export class LFO extends ToneAudioNode<LFOOptions> {
|
|
|
94
94
|
private _units: UnitName = "number";
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* If the input value is converted using the
|
|
97
|
+
* If the input value is converted using the {@link units}
|
|
98
98
|
*/
|
|
99
99
|
convert = true;
|
|
100
100
|
|
|
@@ -238,7 +238,8 @@ export class LFO extends ToneAudioNode<LFOOptions> {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
|
-
* The type of the oscillator
|
|
241
|
+
* The type of the oscillator.
|
|
242
|
+
* @see {@link Oscillator.type}
|
|
242
243
|
*/
|
|
243
244
|
get type(): ToneOscillatorType {
|
|
244
245
|
return this._oscillator.type;
|
|
@@ -249,7 +250,8 @@ export class LFO extends ToneAudioNode<LFOOptions> {
|
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
/**
|
|
252
|
-
* The oscillator's partials array
|
|
253
|
+
* The oscillator's partials array.
|
|
254
|
+
* @see {@link Oscillator.partials}
|
|
253
255
|
*/
|
|
254
256
|
get partials(): number[] {
|
|
255
257
|
return this._oscillator.partials;
|
|
@@ -192,7 +192,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
192
192
|
/**
|
|
193
193
|
* The value is an empty array when the type is not "custom".
|
|
194
194
|
* This is not available on "pwm" and "pulse" oscillator types.
|
|
195
|
-
*
|
|
195
|
+
* @see {@link Oscillator.partials}
|
|
196
196
|
*/
|
|
197
197
|
get partials(): number[] {
|
|
198
198
|
return this._oscillator.partials;
|
|
@@ -297,7 +297,8 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
|
-
* The base type of the oscillator.
|
|
300
|
+
* The base type of the oscillator.
|
|
301
|
+
* @see {@link Oscillator.baseType}
|
|
301
302
|
* @example
|
|
302
303
|
* const omniOsc = new Tone.OmniOscillator(440, "fmsquare4");
|
|
303
304
|
* console.log(omniOsc.sourceType, omniOsc.baseType, omniOsc.partialCount);
|
|
@@ -315,7 +316,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
315
316
|
|
|
316
317
|
/**
|
|
317
318
|
* The width of the oscillator when sourceType === "pulse".
|
|
318
|
-
*
|
|
319
|
+
* @see {@link PWMOscillator}
|
|
319
320
|
*/
|
|
320
321
|
get width(): IsPulseOscillator<OscType, Signal<"audioRange">> {
|
|
321
322
|
if (this._getOscType(this._oscillator, "pulse")) {
|
|
@@ -327,7 +328,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
327
328
|
|
|
328
329
|
/**
|
|
329
330
|
* The number of detuned oscillators when sourceType === "fat".
|
|
330
|
-
*
|
|
331
|
+
* @see {@link FatOscillator.count}
|
|
331
332
|
*/
|
|
332
333
|
get count(): IsFatOscillator<OscType, number> {
|
|
333
334
|
if (this._getOscType(this._oscillator, "fat")) {
|
|
@@ -344,7 +345,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
344
345
|
|
|
345
346
|
/**
|
|
346
347
|
* The detune spread between the oscillators when sourceType === "fat".
|
|
347
|
-
*
|
|
348
|
+
* @see {@link FatOscillator.count}
|
|
348
349
|
*/
|
|
349
350
|
get spread(): IsFatOscillator<OscType, Cents> {
|
|
350
351
|
if (this._getOscType(this._oscillator, "fat")) {
|
|
@@ -361,7 +362,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
361
362
|
|
|
362
363
|
/**
|
|
363
364
|
* The type of the modulator oscillator. Only if the oscillator is set to "am" or "fm" types.
|
|
364
|
-
*
|
|
365
|
+
* @see {@link AMOscillator} or {@link FMOscillator}
|
|
365
366
|
*/
|
|
366
367
|
get modulationType(): IsAmOrFmOscillator<OscType, ToneOscillatorType> {
|
|
367
368
|
if (this._getOscType(this._oscillator, "fm") || this._getOscType(this._oscillator, "am")) {
|
|
@@ -378,7 +379,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
378
379
|
|
|
379
380
|
/**
|
|
380
381
|
* The modulation index when the sourceType === "fm"
|
|
381
|
-
*
|
|
382
|
+
* @see {@link FMOscillator}.
|
|
382
383
|
*/
|
|
383
384
|
get modulationIndex(): IsFMOscillator<OscType, Signal<"positive">> {
|
|
384
385
|
if (this._getOscType(this._oscillator, "fm")) {
|
|
@@ -390,7 +391,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
390
391
|
|
|
391
392
|
/**
|
|
392
393
|
* Harmonicity is the frequency ratio between the carrier and the modulator oscillators.
|
|
393
|
-
*
|
|
394
|
+
* @see {@link AMOscillator} or {@link FMOscillator}
|
|
394
395
|
*/
|
|
395
396
|
get harmonicity(): IsAmOrFmOscillator<OscType, Signal<"positive">> {
|
|
396
397
|
if (this._getOscType(this._oscillator, "fm") || this._getOscType(this._oscillator, "am")) {
|
|
@@ -402,7 +403,7 @@ export class OmniOscillator<OscType extends AnyOscillator>
|
|
|
402
403
|
|
|
403
404
|
/**
|
|
404
405
|
* The modulationFrequency Signal of the oscillator when sourceType === "pwm"
|
|
405
|
-
* see
|
|
406
|
+
* see {@link PWMOscillator}
|
|
406
407
|
* @min 0.1
|
|
407
408
|
* @max 5
|
|
408
409
|
*/
|
|
@@ -180,7 +180,7 @@ export class Oscillator extends Source<ToneOscillatorOptions> implements ToneOsc
|
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* Unsync the oscillator's frequency from the Transport.
|
|
183
|
-
*
|
|
183
|
+
* @see {@link syncFrequency}
|
|
184
184
|
*/
|
|
185
185
|
unsyncFrequency(): this {
|
|
186
186
|
this.context.transport.unsyncSignal(this.frequency);
|
|
@@ -14,7 +14,7 @@ export interface ToneOscillatorNodeOptions extends OneShotSourceOptions {
|
|
|
14
14
|
/**
|
|
15
15
|
* Wrapper around the native fire-and-forget OscillatorNode.
|
|
16
16
|
* Adds the ability to reschedule the stop method.
|
|
17
|
-
* ***
|
|
17
|
+
* ***{@link Oscillator} is better for most use-cases***
|
|
18
18
|
* @category Source
|
|
19
19
|
*/
|
|
20
20
|
export class ToneOscillatorNode extends OneShotSource<ToneOscillatorNodeOptions> {
|
package/Tone/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version: string = "14.9.
|
|
1
|
+
export const version: string = "14.9.13";
|