mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
fix: actually run the 250ms voice fade-out on preset change
triggerQuickRelease only set the fade step, leaving quickFade at 1.0, so the decrement gate (quickFade < 1.0f) never triggered and only the amp envelope's long release played out. Gate on quickFadeStep > 0 instead so the 250ms ramp runs and the voice is freed at the end.
This commit is contained in:
parent
6f63b403e3
commit
f2f53d25d3
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ public:
|
|||
}
|
||||
|
||||
// Per-voice quick fade (triggered on preset change)
|
||||
if (quickFade < 1.0f)
|
||||
if (quickFadeStep > 0.0f)
|
||||
quickFade = std::max(0.0f, quickFade - quickFadeStep);
|
||||
|
||||
// LFO outputs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue