From cafbf01f88be7107325e84c97a5279a164fe049f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 22 Feb 2021 06:41:25 +0100 Subject: [PATCH] reduce low value from 0.01 to 0.0001 --- nanofun.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nanofun.js b/nanofun.js index 99c88e7..7437981 100644 --- a/nanofun.js +++ b/nanofun.js @@ -486,7 +486,7 @@ var nanofun = function() { $('#master-gain').on('change', function() { var fraction = parseInt(this.value) / parseInt(127); var now = self.audioCtx.currentTime; - self.masterGainNode.gain.exponentialRampToValueAtTime((fraction * fraction) || 0.01, now + 0.015); + self.masterGainNode.gain.exponentialRampToValueAtTime((fraction * fraction) || 0.0001, now + 0.015); }); $('#delay').on('change', function() { @@ -495,14 +495,14 @@ var nanofun = function() { self.delay.disconnect(); } else { var now = self.audioCtx.currentTime; - self.delay.delayTime.exponentialRampToValueAtTime(value || 0.01, now + 0.015); + self.delay.delayTime.exponentialRampToValueAtTime(value || 0.0001, now + 0.015); self.delay.connect(self.audioCtx.destination); } }); $('#feedback').on('change', function() { var now = self.audioCtx.currentTime; - self.feedback.gain.exponentialRampToValueAtTime(this.value || 0.01, now + 0.015); + self.feedback.gain.exponentialRampToValueAtTime(this.value || 0.0001, now + 0.015); }); $('#filter').on('change', function() { @@ -513,7 +513,7 @@ var nanofun = function() { var fraction = parseInt(this.value) / parseInt(127); var touchIdx = parseInt($(this).parent().data('touch')); var now = self.audioCtx.currentTime; - self.touchGainNodes[touchIdx].gain.exponentialRampToValueAtTime((fraction * fraction) || 0.01, now + 0.015); + self.touchGainNodes[touchIdx].gain.exponentialRampToValueAtTime((fraction * fraction) || 0.0001, now + 0.015); }); self.time_interval_id = setInterval(function() { -- 2.39.2