Merge pull request #309 from paulfd/windows-tests

Windows tests
This commit is contained in:
Paul Ferrand 2020-07-05 14:20:55 +02:00 committed by GitHub
commit 6e25337560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 5 deletions

View file

@ -41,7 +41,7 @@ namespace config {
constexpr int numVoices { 64 };
constexpr unsigned maxVoices { 256 };
constexpr unsigned smoothingSteps { 512 };
constexpr uint8_t gainSmoothing { 5 };
constexpr uint8_t gainSmoothing { 0 };
constexpr unsigned powerTableSizeExponent { 11 };
constexpr int maxFilePromises { maxVoices };
constexpr int sustainCC { 64 };

View file

@ -15,6 +15,7 @@
#include "SIMDConfig.h"
#include "absl/types/span.h"
#include <algorithm>
#include <array>
#include <random>
#include <limits>
#include <type_traits>

View file

@ -409,8 +409,9 @@ bool sfz::Region::parseOpcode(const Opcode& rawOpcode)
if (opcode.parameters.back() > 127)
return false;
const auto inputVelocity = static_cast<uint8_t>(opcode.parameters.back());
if (value)
velocityPoints.emplace_back(opcode.parameters.back(), *value);
velocityPoints.emplace_back(inputVelocity, *value);
}
break;
case hash("xfin_lokey"):

View file

@ -301,8 +301,10 @@ void sfz::Synth::handleControlOpcodes(const std::vector<Opcode>& members)
ccLabels.emplace_back(member.parameters.back(), std::string(member.value));
break;
case hash("label_key&"):
if (Default::keyRange.containsWithEnd(member.parameters.back()))
keyLabels.emplace_back(member.parameters.back(), std::string(member.value));
if (member.parameters.back() <= Default::keyRange.getEnd()) {
const auto noteNumber = static_cast<uint8_t>(member.parameters.back());
keyLabels.emplace_back(noteNumber, std::string(member.value));
}
break;
case hash("default_path"):
defaultPath = absl::StrReplaceAll(trim(member.value), { { "\\", "/" } });

View file

@ -6,7 +6,8 @@
#include "sfizz/Interpolators.h"
#include "catch2/catch.hpp"
#include <algorithm>
#include <array>
#include <numeric>
using namespace Catch::literals;
TEST_CASE("[Interpolators] Sample at points")