Function for get frequency of .wav?


#1

I have one .wav file ( snare sound ) and i want to get frequency of it .

Are there function to get frequency of .wav file ?


#2

What do you mean by "frequency" in this case? Sample rate of the file? A dominant frequency in the spectrum of the sound? (Snares don't really have pitches that could be reliably detected in most cases, I would predict.)


#3

i mean dominant frequency  :D


#4

I don't think there's anything in Juce to specifically do this. Juce recently did get an FFT class that can transform PCM signals to the spectral domain, but you need to figure out yourself how to interpret that data. (To for example get the strongest spectral components. This necessarily isn't as easy as just searching the FFT bins for the largest numbers...FFT based processing is a big can of worms.)


#5

If you are talking about pitch detection, thats a big topic! 

I've had success using the Aubio (http://aubio.org) library for realtime pitch detection in my app, there are also classes in the dRowAudio module (https://github.com/drowaudio/drowaudio/blob/master/dRowAudio/audio/dRowAudio_PitchDetector.h) designed for offline pitch detection. 

 

 


#6

this is what i want ! big thanks :D !