fundsp icon indicating copy to clipboard operation
fundsp copied to clipboard

adsr_live starts in "release" phase

Open Joeboy opened this issue 4 months ago • 0 comments

Hi! I'm just starting to delve into fundsp, it's indeed fun!

I'm in the early stages of building a synth app, and I just found that if I do this:

    let sin_osc = sine_hz(440.0);
    let adsr = dc(0.0) >> adsr_live(0.2, 0.8, 1.0, 1.0);
    let mut node = sin_osc * adsr;`

I get a beep at the start, because it's starting the "release" phase at t=0.0. I'd expect it to be silent, until an "attack" is triggered.

Thanks!

Joeboy avatar Aug 14 '25 13:08 Joeboy