1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 07:23:38 -04:00

CW keyer: have the smoother as a class member so it can be controlled by the keyer to determine the ramp length depending on dot length

This commit is contained in:
f4exb
2017-10-21 05:00:23 +02:00
parent 1f60fa48d0
commit 85c8129d9c
2 changed files with 24 additions and 21 deletions
+1
View File
@@ -197,6 +197,7 @@ void CWKeyer::setWPM(int wpm)
QMutexLocker mutexLocker(&m_mutex);
m_dotLength = (int) (0.24f * m_sampleRate * (5.0f / wpm));
m_wpm = wpm;
m_cwSmoother.setNbFadeSamples(m_dotLength/5); // 20% the dot time
}
}