tone 14.8.44 → 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.
@@ -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!: BasicEnvelopeCurve;
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(): BasicEnvelopeCurve {
326
- return this._decayCurve;
325
+ get decayCurve(): EnvelopeCurve {
326
+ return this._getCurve(this._decayCurve, "Out");
327
327
  }
328
328
  set decayCurve(curve) {
329
- assert(["linear", "exponential"].some(c => c === curve), `Invalid envelope curve: ${curve}`);
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 {
@@ -611,7 +611,7 @@ export class Transport
611
611
  }
612
612
 
613
613
  /**
614
- * The transports current tick position.
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.44";
1
+ export const version: string = "14.8.45";