From 86274205f6896cbe13a2b14122a1d2d09428a711 Mon Sep 17 00:00:00 2001 From: pd3v Date: Sat, 26 May 2018 10:43:30 +0100 Subject: [PATCH] set default osc wave type --- synth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/synth.js b/synth.js index 0a4fda5..8925e3a 100644 --- a/synth.js +++ b/synth.js @@ -14,6 +14,7 @@ class Synth { engine() { this.osc = this.ac.createOscillator(); + this.osc.type = 'sine'; this.oscGain = this.ac.createGain(); this.osc.onended = _ => { this.disconnect();