Put a high amplitude range
This commit is contained in:
parent
7933bcec8d
commit
f27c1e4c31
2 changed files with 4 additions and 4 deletions
|
|
@ -122,7 +122,7 @@ namespace Default
|
|||
constexpr Range<float> volumeRange { -144.0, 48.0 };
|
||||
constexpr Range<float> volumeCCRange { -144.0, 48.0 };
|
||||
constexpr float amplitude { 100.0 };
|
||||
constexpr Range<float> amplitudeRange { 0.0, 100.0 };
|
||||
constexpr Range<float> amplitudeRange { 0.0, 1e8 };
|
||||
constexpr float pan { 0.0 };
|
||||
constexpr Range<float> panRange { -100.0, 100.0 };
|
||||
constexpr Range<float> panCCRange { -200.0, 200.0 };
|
||||
|
|
|
|||
|
|
@ -925,7 +925,7 @@ TEST_CASE("[Region] Parsing opcodes")
|
|||
region.parseOpcode({ a.first, "-40" });
|
||||
REQUIRE(*a.second == 0_a);
|
||||
region.parseOpcode({ a.first, "140" });
|
||||
REQUIRE(*a.second == 1.0_a);
|
||||
REQUIRE(*a.second == 1.4_a);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1640,7 +1640,7 @@ TEST_CASE("[Region] Parsing opcodes")
|
|||
region.parseOpcode({ "amplitude", "-40" });
|
||||
REQUIRE(region.amplitude == 0_a);
|
||||
region.parseOpcode({ "amplitude", "140" });
|
||||
REQUIRE(region.amplitude == 1.0_a);
|
||||
REQUIRE(region.amplitude == 1.4_a);
|
||||
}
|
||||
|
||||
SECTION("amplitude_cc")
|
||||
|
|
@ -1667,7 +1667,7 @@ TEST_CASE("[Region] Parsing opcodes")
|
|||
region.parseOpcode({ "amplitude_stepcc120", "24" });
|
||||
REQUIRE(view.at(120).step == 24.0_a);
|
||||
region.parseOpcode({ "amplitude_stepcc120", "15482" });
|
||||
REQUIRE(view.at(120).step == 100.0_a);
|
||||
REQUIRE(view.at(120).step == 15482.0_a);
|
||||
region.parseOpcode({ "amplitude_stepcc120", "-2" });
|
||||
REQUIRE(view.at(120).step == 0.0f);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue