DaisySP
DaisySP copied to clipboard
Update adsr.h
changed line 68 from sus_level <= 0.f to sus_level < 0.f. This prevents the envelope from locking down indefinitely when a note is held down. I believe this is an old bug thats crept back in.
I believe this is an old bug thats crept back in. The problem occurs when a note is held but decays to zero, changing the <= to < solves this.
Would you feel comfortable writing a little unit test for this? I think the ADSR class could really benefit from that.