Skip to content

Commit

Permalink
fix negative amp envelopes
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedolino committed Dec 10, 2023
1 parent d83e4ce commit b27c26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Synth/Envelope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ float Envelope::envout_dB()
out = envout(false);

watch(currentpoint + t, out);
return EnvelopeParams::env_dB2rap(out);
return std::max(EnvelopeParams::env_dB2rap(out),0.0f);

}

Expand Down

0 comments on commit b27c26f

Please sign in to comment.