1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

WDSP: impulse responses refactoring (5)

This commit is contained in:
f4exb
2024-08-10 12:21:04 +02:00
parent 12f4d0a0fd
commit ef0255f2bb
14 changed files with 88 additions and 82 deletions
+15 -15
View File
@@ -68,16 +68,16 @@ EMPHP::EMPHP(
FCurve::fc_impulse (
impulse,
nc,
f_low,
f_high,
-20.0 * log10(f_high / f_low),
(float) f_low,
(float) f_high,
(float) (-20.0 * log10(f_high / f_low)),
0.0,
ctype,
rate,
1.0 / (2.0 * size),
(float) rate,
(float) (1.0 / (2.0 * size)),
0, 0
);
p = new FIRCORE(size, in, out, nc, mp, impulse.data());
p = new FIRCORE(size, in, out, mp, impulse);
}
EMPHP::~EMPHP()
@@ -121,7 +121,7 @@ void EMPHP::setSamplerate(int _rate)
1.0 / (2.0 * size),
0, 0
);
p->setImpulse(impulse.data(), 1);
p->setImpulse(impulse, 1);
}
void EMPHP::setSize(int _size)
@@ -142,7 +142,7 @@ void EMPHP::setSize(int _size)
0,
0
);
p->setImpulse(impulse.data(), 1);
p->setImpulse(impulse, 1);
}
/********************************************************************************************************
@@ -174,17 +174,17 @@ void EMPHP::setNC(int _nc)
FCurve::fc_impulse (
impulse,
nc,
f_low,
f_high,
-20.0 * log10(f_high / f_low),
(float) f_low,
(float) f_high,
(float) (-20.0 * log10(f_high / f_low)),
0.0,
ctype,
rate,
1.0 / (2.0 * size),
(float) rate,
(float) (1.0 / (2.0 * size)),
0,
0
);
p->setNc(nc, impulse.data());
p->setNc(impulse);
}
}
@@ -208,7 +208,7 @@ void EMPHP::setFreqs(double low, double high)
0,
0
);
p->setImpulse(impulse.data(), 1);
p->setImpulse(impulse, 1);
}
}