tone 14.8.43 → 14.8.45
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/envelope/Envelope.ts +5 -6
- package/Tone/core/clock/Transport.ts +3 -3
- package/Tone/version.ts +1 -1
- package/build/Tone.js +1 -1
- package/build/Tone.js.map +1 -1
- package/build/esm/component/envelope/Envelope.d.ts +2 -2
- package/build/esm/component/envelope/Envelope.js +2 -3
- package/build/esm/component/envelope/Envelope.js.map +1 -1
- package/build/esm/core/clock/Transport.d.ts +3 -3
- package/build/esm/core/clock/Transport.js +3 -3
- package/build/esm/version.js +1 -1
- package/docs/tone.json +1 -1
- package/package.json +1 -1
|
@@ -141,7 +141,7 @@ export class Envelope extends ToneAudioNode<EnvelopeOptions> {
|
|
|
141
141
|
/**
|
|
142
142
|
* The automation curve type for the decay
|
|
143
143
|
*/
|
|
144
|
-
private _decayCurve!:
|
|
144
|
+
private _decayCurve!: InternalEnvelopeCurve;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* The automation curve type for the release
|
|
@@ -322,12 +322,11 @@ export class Envelope extends ToneAudioNode<EnvelopeOptions> {
|
|
|
322
322
|
* env.triggerAttack();
|
|
323
323
|
* }, 1, 1);
|
|
324
324
|
*/
|
|
325
|
-
get decayCurve():
|
|
326
|
-
return this._decayCurve;
|
|
325
|
+
get decayCurve(): EnvelopeCurve {
|
|
326
|
+
return this._getCurve(this._decayCurve, "Out");
|
|
327
327
|
}
|
|
328
328
|
set decayCurve(curve) {
|
|
329
|
-
|
|
330
|
-
this._decayCurve = curve;
|
|
329
|
+
this._setCurve("_decayCurve", "Out", curve);
|
|
331
330
|
}
|
|
332
331
|
|
|
333
332
|
/**
|
|
@@ -475,7 +474,7 @@ export class Envelope extends ToneAudioNode<EnvelopeOptions> {
|
|
|
475
474
|
}
|
|
476
475
|
|
|
477
476
|
/**
|
|
478
|
-
* Render the envelope curve to an array of the given length.
|
|
477
|
+
* Render the envelope curve to an array of the given length.
|
|
479
478
|
* Good for visualizing the envelope curve. Rescales the duration of the
|
|
480
479
|
* envelope to fit the length.
|
|
481
480
|
*/
|
|
@@ -582,7 +582,7 @@ export class Transport
|
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
|
-
* The Transport's position in seconds
|
|
585
|
+
* The Transport's position in seconds.
|
|
586
586
|
* Setting the value will jump to that position right away.
|
|
587
587
|
*/
|
|
588
588
|
get seconds(): Seconds {
|
|
@@ -596,7 +596,7 @@ export class Transport
|
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
598
|
* The Transport's loop position as a normalized value. Always
|
|
599
|
-
* returns 0 if the
|
|
599
|
+
* returns 0 if the Transport.loop = false.
|
|
600
600
|
*/
|
|
601
601
|
get progress(): NormalRange {
|
|
602
602
|
if (this.loop) {
|
|
@@ -611,7 +611,7 @@ export class Transport
|
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
/**
|
|
614
|
-
* The
|
|
614
|
+
* The Transport's current tick position.
|
|
615
615
|
*/
|
|
616
616
|
get ticks(): Ticks {
|
|
617
617
|
return this._clock.ticks;
|
package/Tone/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version: string = "14.8.
|
|
1
|
+
export const version: string = "14.8.45";
|