Skip to content

Commit

Permalink
set default osc wave type
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3v committed May 26, 2018
1 parent 07dabe6 commit 8627420
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8627420

Please sign in to comment.