mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
feat(plotview): Recommend a decimation based on the tuner BW
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
SpectrogramPlot::SpectrogramPlot(std::shared_ptr<SampleSource<std::complex<float>>> src) : Plot(src), inputSource(src), tuner(this)
|
||||
{
|
||||
setFFTSize(512);
|
||||
zoomLevel = 0;
|
||||
zoomLevel = 1;
|
||||
powerMax = 0.0f;
|
||||
powerMin = -50.0f;
|
||||
|
||||
@@ -236,6 +236,7 @@ void SpectrogramPlot::tunerMoved()
|
||||
{
|
||||
tunerTransform->setFrequency(getTunerPhaseInc());
|
||||
tunerTransform->setTaps(getTunerTaps());
|
||||
tunerTransform->setRelativeBandwith(tuner.deviation() * 2.0 / getStride());
|
||||
|
||||
// TODO: for invalidating traceplot cache, this shouldn't really go here
|
||||
QPixmapCache::clear();
|
||||
|
||||
Reference in New Issue
Block a user