Skip to content

Commit

Permalink
fix - Fixed misleading equalizer bands
Browse files Browse the repository at this point in the history
---

Actually, the equalizer bands are MPEG bands, so they're not as descriptive as you might think. Band 0 is for bass, band 1 is for mids, and the rest of them are treble.

---

Type: fix
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed May 30, 2024
1 parent 30737a1 commit 8a1c3cf
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions BassBoom.Cli/CliBase/Equalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,9 @@ private static string HandleDraw()
// Get the equalizer value for this band
double val = EqualizerControls.GetEqualizer(i);
string eqType =
// Bass bands: 1-8, Bass-Mid bands: 9-16, Mid-Treble bands: 17-24, Treble bands: 25-32
i < 4 ? "Deep Bass" : // Band 1, 2, 3, 4
i < 8 ? "Bass" :
i < 12 ? "Deep Bass-Mid" :
i < 16 ? "Bass-Mid" :
i < 20 ? "Deep Mid-Treble" :
i < 24 ? "Mid-Treble" :
i < 28 ? "Deep Treble" :
i < 32 ? "Treble" :
i == 0 ? "Bass" :
i == 1 ? "Upper Mid" :
i > 1 ? "Treble" :
"Unknown band type";

// Now, render it
Expand Down

0 comments on commit 8a1c3cf

Please sign in to comment.