pitch detection looks workable now