From d49ff219851fab0ae4d2efefc5ec2713ac20127e Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 12 Oct 2017 19:35:57 +0200 Subject: [PATCH] SSB modulator: fixed saturation when going DSB --- plugins/channeltx/modssb/ssbmod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channeltx/modssb/ssbmod.cpp b/plugins/channeltx/modssb/ssbmod.cpp index 7ab668f09..e70483cca 100644 --- a/plugins/channeltx/modssb/ssbmod.cpp +++ b/plugins/channeltx/modssb/ssbmod.cpp @@ -240,7 +240,7 @@ void SSBMod::pullAF(Complex& sample) case SSBModInputTone: if (m_running.m_dsb) { - Real t = m_toneNco.next(); + Real t = m_toneNco.next()/1.25; sample.real(t); sample.imag(t); } @@ -378,7 +378,7 @@ void SSBMod::pullAF(Complex& sample) { if (m_running.m_dsb) { - Real t = m_toneNco.next() * fadeFactor; + Real t = (m_toneNco.next() * fadeFactor)/1.25; sample.real(t); sample.imag(t); }