From f43dd8d14ce9f081562fd40b249c9e0e0e1d7908 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 2 Nov 2016 14:22:34 -0400 Subject: [PATCH] =?UTF-8?q?increase=20distortion=20amount=20and=20call=20i?= =?UTF-8?q?t=20=E2=80=9Cfuzz=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 155a888..32d9b09 100644 --- a/src/index.js +++ b/src/index.js @@ -14,7 +14,7 @@ function AudioEngine (sounds) { this.delay = new Tone.FeedbackDelay(0.25, 0.5); this.panner = new Tone.Panner(); this.reverb = new Tone.Freeverb(); - this.distortion = new Tone.Distortion(); + this.distortion = new Tone.Distortion(1); this.pitchEffectValue; // the effects are chained to an effects node for this clone, then to the master output @@ -175,7 +175,7 @@ AudioEngine.prototype.setEffect = function (effect, value) { case 'PITCH': this._setPitchShift(value); break; - case 'DISTORTION' : + case 'FUZZ' : this.distortion.wet.value = value / 100; break; case 'ROBOTIC' : @@ -201,7 +201,7 @@ AudioEngine.prototype.changeEffect = function (effect, value) { case 'PITCH': this._setPitchShift(this.pitchEffectValue + Number(value)); break; - case 'DISTORTION' : + case 'FUZZ' : this.distortion.wet.value += value / 100; this.distortion.wet.value = this._clamp(this.distortion.wet.value, 0, 1); break;