wrap and exports detect pitch