diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index 12c92bd6..94aba5bb 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -927,6 +927,11 @@ void Voice::Impl::fillWithData(AudioSpan buffer) noexcept return; fill(*jumps, pitchRatio_ * speedRatio_); + + // Take the first sample if the voice just started + if (age_ == 0) + jumps->front() = 0.0f; + pitchEnvelope(*jumps); jumps->front() += floatPositionOffset_;