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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user