/////////////////////////////////////////////////////////////////////////////// // // FEEDBACK DELAY // /////////////////////////////////////////////////////////////////////////////// define(["core/Tone", "effects/FeedbackEffect"], function(Tone){ //@param {number} delayTime Tone.FeedbackDelay = function(delayTime){ Tone.FeedbackEffect.call(this); this.delay = this.context.createDelay(4); this.delay.delayTime.value = this.defaultArg(delayTime, .25); //connect it up this.connectEffect(this.delay); } Tone.extend(Tone.FeedbackDelay, Tone.FeedbackEffect); Tone.FeedbackDelay.prototype.setDelayTime = function(delayTime){ this.rampToValue(this.delay.delayTime, delayTime); } return Tone.FeedbackDelay; });