Skip to content

Commit

Permalink
gswaSynth: fix, _scheduleVariations, check dur > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mr21 committed Nov 11, 2018
1 parent e0749cd commit 45f41ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gswaSynth/gswaSynth.js
Expand Up @@ -122,7 +122,7 @@ class gswaSynth {
gswaSynth.midiKeyToHz[ va.midi[ 1 ] ]
] );

if ( when > this.ctx.currentTime ) {
if ( when > this.ctx.currentTime && dur > 0 ) {
freq.setValueCurveAtTime( freqArr, when, dur );
gain.setValueCurveAtTime( new Float32Array( va.gain ), when, dur );
pan.setValueCurveAtTime( new Float32Array( va.pan ), when, dur );
Expand Down

0 comments on commit 45f41ce

Please sign in to comment.