MTG / essentia

C++ library for audio and music analysis, description and synthesis, including Python bindings
http://essentia.upf.edu
GNU Affero General Public License v3.0
2.86k stars 534 forks source link

Add new pitch extractor PitchHPS (Harmonic Product Spectrum) #1429

Open juliatogr opened 4 months ago

juliatogr commented 4 months ago

New pitch extractor based on Harmonic Product Spectrum algorithm. From a frame spectrum, estimates pitch by downsampling the spectrum numHarmonics times. By multiplying the compressed spectrums, the fundamental frequency peak is enhanced and can be detected as the frequency with the highest peak on the resulting harmonic product spectrum. It filters in frequency depending on the parameters minFrequencyand maxFrequency.

Results of the tests

image