mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-12 03:07:11 +01:00
Fixed halfed volume with HPF on
This commit is contained in:
parent
3420808f3a
commit
a9f882e5b1
@ -15,7 +15,7 @@ namespace dsp::taps {
|
|||||||
if (oddTapCount && !(count % 2)) { count++; }
|
if (oddTapCount && !(count % 2)) { count++; }
|
||||||
return windowedSinc<T>(count, (bandStop - bandStart) / 2.0, sampleRate, [=](double n, double N) {
|
return windowedSinc<T>(count, (bandStop - bandStart) / 2.0, sampleRate, [=](double n, double N) {
|
||||||
if constexpr (std::is_same_v<T, float>) {
|
if constexpr (std::is_same_v<T, float>) {
|
||||||
return cosf(offsetOmega * (float)n) * window::nuttall(n, N);
|
return 2.0f * cosf(offsetOmega * (float)n) * window::nuttall(n, N);
|
||||||
}
|
}
|
||||||
if constexpr (std::is_same_v<T, complex_t>) {
|
if constexpr (std::is_same_v<T, complex_t>) {
|
||||||
// The offset is negative to flip the taps. Complex bandpass are asymetric
|
// The offset is negative to flip the taps. Complex bandpass are asymetric
|
||||||
|
Loading…
Reference in New Issue
Block a user