Is it possible to do a frequency analysis to get a value between 0 and 100 which measures the depth of the spectrum in a certain range or something similar to that?
with [fiddle~], that you will find in /pd/extra/
have also a look at some patches in /pd/doc/fft/4.fft.examples/