Matlab code:

Here is a Matlab script, which calculates the inharmonicity coefficient value and the fundamental frequency from a piano tone [1],[2].

pfd.m


References

[1] J. Rauhala and V. Välimäki, “F0 estimation of inharmonic piano tones using partial frequencies deviation method,” accepted for publishing in International Computer Music Conference, Copenhagen, 2007.
[2] J. Rauhala, H.-M. Lehtonen, and V. Välimäki, “Fast automatic inharmonicity estimation algorithm,” J. Acoust. Soc. Am., vol. 121, no. 5, pp. EL184-EL189, 2007.

More information

Homepage of Jukka Rauhala
Piano research at the Acoustics Lab


http://www.acoustics.hut.fi/publications/papers/icmc07-pfd/
Modified: 29.6.2007