add pitch detector