Pitch perception and measurement