Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
) If the default values (ADSR mode on, Sustain level zero) are first loaded, and then a patch setting ADSR mode, depending on which order the parameters are set, this can result in a division-by-zero in calculate_sustain_asymptote(). Fix this by recalculating sustain_asymptote before every usage. (The envelope code should really be rewritten to avoid recalculating coef at every phase transition; coefs should be set when the parameters are set, separately for each envelope stage).
- Loading branch information