prevents crash if no speeds
much better pitch finder based on edges