Implement functionality to find closest match for pitch