add pitch detection