angelcaf
12-15-2012, 11:39 PM
(12-15-2012 09:50 PM)Dave Wrote: [ -> ]If you connect the GenericReal to the FFT-SpectrumOutputPin the inputbuffer simply represents the spectrumdata (volume per frequency in real/double)
I ended up using GenericReal but to get the pitch information you might want to connect it to the FFT-FrequencyOutputPin.
Then in the GenericReal callback I have used the argument "Arg" of type ProcessRealNotify and obtained the mean frequency of the last computed FFT window using Args.InBuffer.Mean().
Finally I have stored those values (the previous 60) in a queue and done my computations to check for the changes in the pitch level.
I hope this might be helpful for some other readers as well and I thank you Dave so much for your quick posting.
Great support!
Angelo