polluxsynth / audio-plugins

Audio plugins using the Distrho Plugin Framework
https://butoba.net/homepage/mimid.html
GNU General Public License v2.0
5 stars 0 forks source link

Filter hangs fully open in some circumstances #5

Closed polluxsynth closed 7 months ago

polluxsynth commented 7 months ago

When a patch which previously has been working fine is loaded as a 'last state' snapshot in Zynthian, the filter can suddenly open completely after the filter envelope attack time has passed, regardless of the setting of other envelope parameters, or even the filter envelope amount control. After this has happened, the filter in that voice can't be brought back to normality unless the system is rebooted (or the plugin reloaded).

polluxsynth commented 7 months ago

Since the problem happens even when the filter envelope amount is zero, it must be some form of illegal value that gets past the control and into the filter. The prime suspect is a division in the envelope generator which might result in a division by zero under certain circumstances.