I am a beginner in audio programming and was wondering how would you get the amount of bass in just one single audio sample. I was thinking it would be measured in db maybe but i don't know if there a unit that is actually for measuring bass. I have no code to show for the measuring of the bass since I have no idea where to look or to start out by doing by I've already got everything up to the point of having all the samples of my audio file stored as a float array using the juce library, now its just a matter of going through each sample measuring the bass of each sample
Any help please?
I am assuming by one audio sample you mean an array of floats, and not just one element of that array.
If you "Google" the word Bass you land on the very first result telling:
Bass (also called bottom end) describes tones of low (also called "deep") frequency, pitch and range from 16 to 256 Hz.
Yes, Bass is just the audio in that range.
Now, with that I think you would be able to figure out how to find frequencies using audio samples and if not, then this is the best I can do...
Now, you can find the amount of Bass, frequencies in the said range, clearly.. :)