Improved peak selection for fundamental frequency estimation using median inter peak distance.