private TimeSpan GetClosestBeat(TimeSpan timeSpan) { return(Beats.OrderBy(b => Math.Abs(b.Ticks - timeSpan.Ticks)).First()); }