Useful Representations of Log Audio Frequency Spectrum

AI Thread Summary
Generating a logarithmic frequency scale for audio requires balancing resolution across the spectrum, particularly between 20 Hz and 20 kHz. The current method produces excessive resolution in lower frequencies while compressing higher frequencies too much, leading to an impractical distribution of values. Adobe Audition's spectral analyzer appears to use a modified logarithmic scale that expands mid-range frequencies more effectively than a standard logarithmic function. This suggests that a simple logarithmic approach may not adequately represent audio data, as it can lead to unwanted fine resolution in lower frequencies. Exploring alternative scaling methods, such as spline curves, may provide a more effective solution for visualizing audio frequency data.
Deepsatchel
Messages
6
Reaction score
0
Hi everyone,

So I'm trying to basically generate a list of numbers between 20 and 20,000 (Hz) in log space that will give good resolution to parts of the audio spectrum that matter! After all that is the point of using log scale for frequency in the first place.

The list generator I have at this point gives very fine resolution between 20 and 100 Hz, and when it gets closer to 20kHz, it's counting by the thousands. A good audio log scale should expand the lows and compress the highs, but not to this degree! What I'm doing is unaltered "log," I believe. Here's exactly what my code looks like:

top = 20000
bottom = 20
bands = 12

loop i from 0 to bands
nextBand = 10^((i/bands)*log10(top-bottom+1))-1+bottom;
save the new frequency value to the list...
end loop

The result:

20, 21, 24, 30, 46, 80, 160, 341, 755, 1699, 3854, 8773, 20000.

In practice I will use many more bands. When I use 400 bands (a reasonable use case), I get 96 of them in the 20's! That is way too many. So if straight logarithmic scale is not what's normally used, then what is? I noticed pictures of Adobe Audition's spectral analyzer on Google Images had scales that seemed approximately logarithmic but expanded more in the middle than regular log.

Anyone know about this?
Thanks, Elwood
 
Engineering news on Phys.org
Example: http://acousticaddicts.com/0001/AllFourSoftD.jpg

Notice how the distance from 100 to 1k is much smaller than the distance from 1k to 10k... What did they do to the scale?
 
I know I keep harping on and on, but it seems more likely that in fact the Adobe Audition scale is completely unrelated to an actual log function. I've never met a log function that does not hug the y-axis (thus give very fine resolution - small frequency steps) from 0 out to, say, 1. This is what gives the unwanted fine resolution in the lower frequencies. Therefore a mathematical log is not a foolproof choice to present audio data. Instead, probably, Audition splines a curve over a couple points.

It does resemple log space, but not down close to zero.

Any thoughts?
 
Thread 'I need a concave mirror with a focal length length of 150 feet?'
I need to cut down a 3 year old dead tree from top down so tree causes no damage with small pieces falling. I need a mirror with a focal length of 150 ft. 12" diameter to 36" diameter will work good but I can't think of any easy way to build it. Nothing like this for sale on Ebay. I have a 30" Fresnel lens that I use to burn stumps it works great. Tree service wants $2000.
Hi all, i have some questions about the tesla turbine: is a tesla turbine more efficient than a steam engine or a stirling engine ? about the discs of the tesla turbine warping because of the high speed rotations; does running the engine on a lower speed solve that or will the discs warp anyway after time ? what is the difference in efficiency between the tesla turbine running at high speed and running it at a lower speed ( as fast as possible but low enough to not warp de discs) and: i...
Thread 'Where is my curb stop?'
My water meter is submerged under water for about 95% of the year. Today I took a photograph of the inside of my water meter box because today is one of the rare days that my water meter is not submerged in water. Here is the photograph that I took of my water meter with the cover on: Here is a photograph I took of my water meter with the cover off: I edited the photograph to draw a red circle around a knob on my water meter. Is that knob that I drew a red circle around my meter...
Back
Top