documented pitch detection