diff --git a/assets/js/synth.js b/assets/js/synth.js index f5dc390..f634bb5 100644 --- a/assets/js/synth.js +++ b/assets/js/synth.js @@ -1,6 +1,5 @@ export class Synth { // SYNTH VOICE CONSTRUCTOR - // Variables? constructor(audio, type, env = { a: 0.2, r: 0.5, @@ -46,7 +45,7 @@ export class Synth { // clear preScheduled events this.gain.gain.cancelScheduledValues(this.audio.currentTime) // attack - this.gain.gain.setTargetAtTime(0.9, this.t + this.env.a, 0.2) + this.gain.gain.setTargetAtTime(0.45, this.t + this.env.a, 0.2) } noteOff() { @@ -57,9 +56,9 @@ export class Synth { mod() { this.modGain.gain.cancelScheduledValues(this.audio.currentTime) // attack - this.modGain.gain.setTargetAtTime(0.9, this.audio.currentTime, 0.5) + this.modGain.gain.setTargetAtTime(0.8, this.audio.currentTime, 0.5) // release - this.modGain.gain.setTargetAtTime(0.0, this.audio.currentTime + 0.4, 0.5) + this.modGain.gain.setTargetAtTime(0.8, this.audio.currentTime + 0.4, 0.5) } }