MATLAB Answers

pitch function equation for documentation

2 views (last 30 days)
T Anderson
T Anderson on 19 Oct 2020
Edited: Cris LaPierre on 26 Oct 2020
I was wondering what the equation used for in the pitch function for matlab. I love using this, but would like to document what equation that I am using. Thanks for the support.


Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 19 Oct 2020
Do the Algorithms and References sections on the documentation page for the pitch function not provide the information you want to know?


T Anderson
T Anderson on 26 Oct 2020
No there are at least 70 equations for determining pitch. In Matlab alone I have found several, I was wondering which method was being used.
Cris LaPierre
Cris LaPierre on 26 Oct 2020
There are 5 supported methods used in MATLAB's pitch function:
Method used to estimate pitch, specified as the comma-separated pair consisting of 'Method' and 'NCF', 'PEF','CEP', 'LHS', or 'SRH'. The different methods of calculating pitch provide trade-offs in terms of noise robustness, accuracy, and computation expense. The algorithms used to calculate pitch are based on the following papers:
  • 'NCF' –– Normalized Correlation Function [1]
  • 'PEF' –– Pitch Estimation Filter [2]. The function does not use the amplitude compression described by the paper.
  • 'CEP' –– Cepstrum Pitch Determination [3]
  • 'LHS' –– Log-Harmonic Summation [4]
  • 'SRH' –– Summation of Residual Harmonics [5]
If you didn't specify a method, 'NCF' was used. The documentation page Steven Lord linked to contains the full citation for each of the methods MATLAB uses. Incidentally, so does this post. Click on them to obtani the specific citation for the method you used.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by