From ffebe9df9a3474d68b7869c52dc284a79888049e Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sun, 19 Jan 2020 07:16:20 +0100 Subject: [PATCH] Mono process for the crossfade envelope The right channel should be blank at this point of the process so you only need to apply the envelope to the left channel --- src/sfizz/Voice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index b537f525..573bc458 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -293,7 +293,7 @@ void sfz::Voice::processMono(AudioSpan buffer) noexcept // Crossfade envelope crossfadeEnvelope.getBlock(span1); - buffer.applyGain(span1); + applyGain(span1, leftBuffer); // Volume envelope volumeEnvelope.getBlock(span1);