Skip to content

Commit 4b1d109

Browse files
committed
remove comments
1 parent 209c664 commit 4b1d109

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

src/env.js

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -201,43 +201,6 @@ define(function (require) {
201201

202202
this.triggerAttack(unit, secondsFromNow);
203203
this.triggerRelease(unit, secondsFromNow + this.aTime + this.dTime + this.sTime);
204-
205-
// get and set value (with linear ramp) to anchor automation
206-
// var valToSet = this.control.getValueAtTime(t);
207-
// this.control.linearRampToValueAtTime(valToSet, t);
208-
209-
// // after each ramp completes, cancel scheduled values
210-
// // (so they can be overridden in case env has been re-triggered)
211-
// // then, set current value (with linearRamp to avoid click)
212-
// // then, schedule the next automation...
213-
214-
// // attack
215-
// t += this.aTime;
216-
// this.control.linearRampToValueAtTime(this.aLevel, t);
217-
// valToSet = this.control.getValueAtTime(t);
218-
// this.control.cancelScheduledValues(t);
219-
// this.control.linearRampToValueAtTime(valToSet, t);
220-
221-
// // decay to decay level
222-
// t += this.dTime;
223-
// this.control.linearRampToValueAtTime(this.dLevel, t);
224-
// valToSet = this.control.getValueAtTime(t);
225-
// this.control.cancelScheduledValues(t);
226-
// this.control.linearRampToValueAtTime(valToSet, t);
227-
228-
// // hold sustain level
229-
// t += this.sTime;
230-
// this.control.linearRampToValueAtTime(this.sLevel, t);
231-
// valToSet = this.control.getValueAtTime(t);
232-
// this.control.cancelScheduledValues(t);
233-
// this.control.linearRampToValueAtTime(valToSet, t);
234-
235-
// // release
236-
// t += this.rTime;
237-
// this.control.linearRampToValueAtTime(this.rLevel, t);
238-
// valToSet = this.control.getValueAtTime(t);
239-
// this.control.cancelScheduledValues(t);
240-
// this.control.linearRampToValueAtTime(valToSet, t);
241204
};
242205

243206
/**

0 commit comments

Comments
 (0)