Skip to content

Commit

Permalink
centralize gain knob
Browse files Browse the repository at this point in the history
  • Loading branch information
erazortt committed Feb 20, 2024
1 parent 6fa5a63 commit 666c72f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DoViBaker/DoViLutGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ double matchHlg2SdrD(double x) {
// d^2p(t)/dt^2=p_2(t)=p0*h00_2(t)+m0*h10_2(t)+p1*h01_2(t)+m1*h11_2(t)
// with h00_2(t)=12*t-6, h10_2(t)=6*t-4, h01_2(t)=-12*t+6, h11_2(t)=6*t-2
double hlg2sdr(double x, double gain, double compression) {
double kS = gain * 0.21 + 0.5;
double kS = std::sqrt(gain) * 0.21 + 0.5;
if (x > kS) {
const double p0 = kS * matchHlg2Sdr(kS);
double m0 = kS * matchHlg2SdrD(kS) + 1 * matchHlg2Sdr(kS);
Expand Down

0 comments on commit 666c72f

Please sign in to comment.