private void UpdateMoment(IBeatTickMoment pBeatTickMoment) { foreach (var note in this.fScoreNotes) { if ((note.Beat == pBeatTickMoment.Beat) && (note.Tick == pBeatTickMoment.Tick)) { note.MomentInMiliseconds = pBeatTickMoment.MomentInMiliseconds; } if (note.Beat > pBeatTickMoment.Beat) { break; } } }
public static long MomentInTicks(this IBeatTickMoment pBeatTickMoment) { return((pBeatTickMoment.Beat * 480) + pBeatTickMoment.Tick); }