Simple pitch detection