Move pitch detection into separate file.