Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too much gain on lower end Frequency #348

Open
Blauenfeldt opened this issue Dec 13, 2021 · 0 comments
Open

Too much gain on lower end Frequency #348

Blauenfeldt opened this issue Dec 13, 2021 · 0 comments
Labels

Comments

@Blauenfeldt
Copy link

Blauenfeldt commented Dec 13, 2021

Whenever i play a song, and there is some low end frequencies, 0-200 Hz, all of the visualization action gets cramped down the that area, and none of the other frequencies, ~200-8000 Hz, will be lit up.

Is there a way to turn down the gain at those frequencies?

Raspberry Pi 3 b
Settings:
N_Pixels = 88
Min Freq = 20
Max Freq = 8000
N FFT BINS = 14
Min Volume Threshold = 1e-4

Edit: I partially found a fix. At line 220 in visualization.py, I sat mel_gain.update(np.max(gaussian_filter1d(mel, sigma=1.0))) to mel_gain.update(np.max(gaussian_filter1d(mel, sigma=25.0))). Now I see more LEDs being lit, instead of the 10%, but with the cost of oversaturated colors in the middle of the strip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants