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

Envelope times are affected by oversampling parameter #15

Closed polluxsynth closed 3 weeks ago

polluxsynth commented 3 weeks ago

The envelope times are affected by the oversampling parameter, i.e. turning oversampling of seemingly doubles the envelope times (so far only verified for the shortest envelope times). Oversampling should not affect the envelope times at all.

polluxsynth commented 3 weeks ago

Turns out this was only a problem on the dev branch, during the refactoring of the envelope code, when the coefficient calculation was moved out of the realtime path, necessitating a recalculation of the coefficients whenever the sample rate is changed. The necessary recalculation has now been incorporated on the dev branch. Closing the ticket.