Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkialakuijala committed Jun 14, 2024
1 parent a700eeb commit a6af47d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/zimt/fourier_bank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ float GetRotatorGains(int i) {

float SimpleDb(float energy) {
static const float full_scale_sine_db = 78.3;
return 10 * log10(channels[{out_ix}][k] + 1e-9) + full_scale_sine_db;
return 10 * log10(energy + 1e-9) + full_scale_sine_db;
}

void Rotators::FilterAndDownsample(hwy::Span<const float> signal,
Expand Down
Binary file modified go/goohrli/goohrli.a
Binary file not shown.

0 comments on commit a6af47d

Please sign in to comment.