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