clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.74k stars 675 forks source link

Switch to logarithmic y-axis on spectrum analyzer #2361

Open Clementine-Issue-Importer opened 10 years ago

Clementine-Issue-Importer commented 10 years ago

From unknown....@gmail.com on November 01, 2011 00:01:18

This is a simple visual trick to make the spectrum analyzers (specifically the Block Analyzer and the Bar Analyzer) more visually appealing. If you notice, as it is currently coded, most of the frequencies that have activity are crunched up in the lower frequencies. This is because of the way the human ear picks up sounds. If you want to be able to see the patterns made by the sounds more clearly, it's better to use a logarithmic scale instead of a linear scale for frequency on the x-axis. This allots more space for the lower frequencies and less for the higher frequencies to better represent the spectrum of human hearing.

It's a small change, but it's something I'd love to see. I'd even be willing to do it myself if I could get a little hand-holding with the commit process and where to find the code for the spectrum analyzer.

Original issue: http://code.google.com/p/clementine-player/issues/detail?id=2361

Clementine-Issue-Importer commented 10 years ago

From arnaud.bienner on November 01, 2011 04:19:17

Hi,

You can get the code from here: http://code.google.com/p/clementine-player/source/checkout The analyzer code is in src/analyzers (obviously ;) Maybe you can start having a look and let us know if you have questions.

Clementine-Issue-Importer commented 10 years ago

From john.maguire on January 11, 2012 09:30:32

Summary: Switch to logarithmic y-axis on spectrum analyzer

sh2ka commented 3 years ago

Hm, don't understand why you changed summary to '...y-axis...'. As I understand you have to use logarithmic x-axis exactly to make more space for low frequencies because your ear distinguish low frequencies more clearly than high frequencies. So to notice changes in high frequencies we have to change it by 100Hz. At the same time to notice changes in low frequencies we have to change it by 1-10Hz. So logarithmic x-axis is common practice when we talk about spectrum. I'm using clementine 1.4.0 rc1 linux mint package (clementine:amd64/focal 1.4.0~rc1+dfsg-1).