gibber-cc / gibberish

Fast, JavaScript DSP library that creates JIT optimized audio callbacks using code generation techniques
387 stars 35 forks source link

ADSR envelope of synths seems to self trigger? #20

Open abramhindle opened 7 years ago

abramhindle commented 7 years ago

Synth's ADSR bounces after released. It doesn't calm down to 0.

syn = Synth({
    useADSR: true,
    triggerRelease: true,
}).connect()
syn.note(440)
 // why is the envelope bouncing?
setTimeout( () => syn.env.release(), 1000)

So after about 2 seconds we shouldn't hear anything, yet we do.

Branch v3.