Useful Representations of Log Audio Frequency Spectrum

Click For Summary
SUMMARY

The discussion focuses on generating a logarithmic scale for audio frequencies between 20 Hz and 20,000 Hz. The current implementation, which uses a basic logarithmic function, results in excessive resolution in lower frequencies and insufficient resolution in higher frequencies. The user, Elwood, seeks alternatives to the standard logarithmic scale, noting that Adobe Audition's spectral analyzer appears to utilize a modified scale that provides better distribution across the frequency spectrum. The conclusion suggests that a simple logarithmic function may not be suitable for audio representation, and a spline-based approach could yield better results.

PREREQUISITES
  • Understanding of logarithmic functions and their applications in audio processing
  • Familiarity with audio frequency ranges and their significance
  • Basic programming skills to implement frequency scaling algorithms
  • Knowledge of audio analysis tools, specifically Adobe Audition
NEXT STEPS
  • Research "spline interpolation techniques for audio frequency scaling"
  • Explore "Adobe Audition spectral analysis features and settings"
  • Learn about "non-linear frequency scaling methods in audio processing"
  • Investigate "custom logarithmic scaling algorithms for audio applications"
USEFUL FOR

Audio engineers, sound designers, and developers working on audio processing applications who seek to optimize frequency representation for better auditory analysis and visualization.

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?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
3K
Replies
17
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 15 ·
Replies
15
Views
9K
  • · Replies 27 ·
Replies
27
Views
6K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 3 ·
Replies
3
Views
7K