mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 23:14:16 +01:00
Tighten transition band when tuner bandwidth is narrow
This commit is contained in:
committed by
Mike Walters
parent
e215f57b37
commit
bfecbe73b7
@@ -257,7 +257,7 @@ std::vector<float> SpectrogramPlot::getTunerTaps()
|
||||
float cutoff = tuner.deviation() / (float)fftSize;
|
||||
float gain = pow(10.0f, powerMax / -10.0f);
|
||||
auto atten = 60.0f;
|
||||
auto len = estimate_req_filter_len(0.05f, atten);
|
||||
auto len = estimate_req_filter_len(std::min(cutoff, 0.05f), atten);
|
||||
auto taps = std::vector<float>(len);
|
||||
liquid_firdes_kaiser(len, cutoff, atten, 0.0f, taps.data());
|
||||
std::transform(taps.begin(), taps.end(), taps.begin(),
|
||||
|
||||
Reference in New Issue
Block a user