Set the EG release default to 0

This commit is contained in:
Jean Pierre Cimalando 2020-03-26 23:36:39 +01:00 committed by Paul Fd
parent 96d362308d
commit a825b3f1d3
3 changed files with 2 additions and 3 deletions

View file

@ -57,7 +57,6 @@ namespace config {
constexpr float voiceStealingThreshold { 0.00001f };
constexpr uint16_t numCCs { 512 };
constexpr int chunkSize { 1024 };
constexpr float defaultAmpEGRelease { 0.02f };
constexpr int filtersInPool { maxVoices * 2 };
constexpr int filtersPerVoice { 2 };
constexpr int eqsPerVoice { 3 };

View file

@ -201,7 +201,7 @@ namespace Default
constexpr float decay { 0 };
constexpr float delayEG { 0 };
constexpr float hold { 0 };
constexpr float release { config::defaultAmpEGRelease };
constexpr float release { 0 };
constexpr float vel2release { 0.0f };
constexpr float start { 0.0 };
constexpr float sustain { 100.0 };

View file

@ -837,7 +837,7 @@ TEST_CASE("[Region] Parsing opcodes")
REQUIRE(region.amplitudeEG.decay == 0.0f);
REQUIRE(region.amplitudeEG.delay == 0.0f);
REQUIRE(region.amplitudeEG.hold == 0.0f);
REQUIRE(region.amplitudeEG.release == 0.02f);
REQUIRE(region.amplitudeEG.release == 0.0f);
REQUIRE(region.amplitudeEG.start == 0.0f);
REQUIRE(region.amplitudeEG.sustain == 100.0f);
REQUIRE(region.amplitudeEG.depth == 0);