From 4a998cf6e70422e4159a1fff9786851e282aa95c Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 23 Sep 2020 23:54:31 +0200 Subject: [PATCH] Forgot to update source depths after changing default to 0 --- src/sfizz/Synth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index c928f48d..7f6b6d10 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -154,10 +154,10 @@ void sfz::Synth::buildRegion(const std::vector& regionOpcodes) constexpr unsigned defaultSmoothness = 10; lastRegion->getOrCreateConnection( ModKey::createCC(7, 4, defaultSmoothness, 100, 0), - ModKey::createNXYZ(ModId::Amplitude, lastRegion->id)); + ModKey::createNXYZ(ModId::Amplitude, lastRegion->id)).sourceDepth = 1.0f; lastRegion->getOrCreateConnection( ModKey::createCC(10, 1, defaultSmoothness, 100, 0), - ModKey::createNXYZ(ModId::Pan, lastRegion->id)); + ModKey::createNXYZ(ModId::Pan, lastRegion->id)).sourceDepth = 1.0f; // auto parseOpcodes = [&](const std::vector& opcodes) {