Skip to content

Commit bf6e11c

Browse files
therewasaguyjvntf
authored andcommitted
remove unnecessary cancelScheduledValues from src.env
1 parent a9b7658 commit bf6e11c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/env.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ define(function (require) {
537537

538538
// get and set value (with linear ramp) to anchor automation
539539
var valToSet = this.control.getValueAtTime(t);
540-
this.control.cancelScheduledValues(t); // not sure if this is necessary
540+
541541
if (this.isExponential === true)
542542
{
543543
this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t);
@@ -558,14 +558,12 @@ define(function (require) {
558558
{
559559
this.control.exponentialRampToValueAtTime(this.checkExpInput(this.aLevel), t);
560560
valToSet = this.checkExpInput(this.control.getValueAtTime(t));
561-
this.control.cancelScheduledValues(t);
562561
this.control.exponentialRampToValueAtTime(valToSet, t);
563562
}
564563
else
565564
{
566565
this.control.linearRampToValueAtTime(this.aLevel, t);
567566
valToSet = this.control.getValueAtTime(t);
568-
this.control.cancelScheduledValues(t);
569567
this.control.linearRampToValueAtTime(valToSet, t);
570568
}
571569

@@ -575,14 +573,12 @@ define(function (require) {
575573
{
576574
this.control.exponentialRampToValueAtTime(this.checkExpInput(this.dLevel), t);
577575
valToSet = this.checkExpInput(this.control.getValueAtTime(t));
578-
this.control.cancelScheduledValues(t);
579576
this.control.exponentialRampToValueAtTime(valToSet, t);
580577
}
581578
else
582579
{
583580
this.control.linearRampToValueAtTime(this.dLevel, t);
584581
valToSet = this.control.getValueAtTime(t);
585-
this.control.cancelScheduledValues(t);
586582
this.control.linearRampToValueAtTime(valToSet, t);
587583
}
588584
};
@@ -668,7 +664,6 @@ define(function (require) {
668664

669665
// get and set value (with linear or exponential ramp) to anchor automation
670666
var valToSet = this.control.getValueAtTime(t);
671-
this.control.cancelScheduledValues(t); // not sure if this is necessary
672667
if (this.isExponential === true)
673668
{
674669
this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t);
@@ -685,14 +680,12 @@ define(function (require) {
685680
{
686681
this.control.exponentialRampToValueAtTime(this.checkExpInput(this.rLevel), t);
687682
valToSet = this.checkExpInput(this.control.getValueAtTime(t));
688-
this.control.cancelScheduledValues(t);
689683
this.control.exponentialRampToValueAtTime(valToSet, t);
690684
}
691685
else
692686
{
693687
this.control.linearRampToValueAtTime(this.rLevel, t);
694688
valToSet = this.control.getValueAtTime(t);
695-
this.control.cancelScheduledValues(t);
696689
this.control.linearRampToValueAtTime(valToSet, t);
697690
}
698691

@@ -768,7 +761,7 @@ define(function (require) {
768761

769762
//get current value
770763
var currentVal = this.checkExpInput(this.control.getValueAtTime(t));
771-
this.control.cancelScheduledValues(t);
764+
// this.control.cancelScheduledValues(t);
772765

773766
//if it's going up
774767
if (destination1 > currentVal) {

0 commit comments

Comments
 (0)