Skip to content

Commit a74dd7e

Browse files
authored
fixed PolySynth play() bug by providing default params (#600)
1 parent 82e99e8 commit a74dd7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polysynth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class PolySynth {
149149
* }
150150
* </code></div>
151151
*/
152-
play(note, velocity, secondsFromNow, susTime = 1) {
152+
play(note, velocity = 0.1, secondsFromNow = 0, susTime = 1) {
153153
this.noteAttack(note, velocity, secondsFromNow);
154154
this.noteRelease(note, secondsFromNow + susTime);
155155
}

0 commit comments

Comments
 (0)