Beispiel #1
0
        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;
                }
            }
        }
Beispiel #2
0
 public static long MomentInTicks(this IBeatTickMoment pBeatTickMoment)
 {
     return((pBeatTickMoment.Beat * 480) + pBeatTickMoment.Tick);
 }