mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ADSR: Fixed a test failure with small sustain lengths
This commit is contained in:
parent
32690e6273
commit
97ee7b7864
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ struct ADSRTests : public UnitTest
|
|||
for (int numTests = 0; numTests < 100; ++numTests)
|
||||
{
|
||||
const auto sustainLevel = random.nextFloat();
|
||||
const auto sustainLength = random.nextFloat();
|
||||
const auto sustainLength = jmax (0.1f, random.nextFloat());
|
||||
|
||||
adsr.setParameters ({ parameters.attack, parameters.decay, sustainLevel, parameters.release });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue