Skip to content

Commit

Permalink
Improved precision of Panometer
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Dec 11, 2024
1 parent 70089fb commit 9431d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/meters/Panometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace lsp
const float sl = sqrtf(fabsf(va) * fNorm);
const float sr = sqrtf(fabsf(vb) * fNorm);
const float den = sl + sr;
dst[i] = (den > 1e-5f) ? sr / den : fDefault;
dst[i] = (den > 1e-18f) ? sr / den : fDefault;
}
}
else
Expand All @@ -201,7 +201,7 @@ namespace lsp
const float sr = fabsf(vb) * fNorm;

const float den = sl + sr;
dst[i] = (den > 1e-10f) ? sr / den : fDefault;
dst[i] = (den > 1e-36f) ? sr / den : fDefault;
}
}
fValueA = va;
Expand Down

0 comments on commit 9431d9d

Please sign in to comment.