Exemple #1
0
        public void SortByTime()
        {
            SingleBeats.Sort(delegate(SingleBeat s1, SingleBeat s2)
            {
                return(s1.Time.CompareTo(s2.Time));
            });

            HeldNotes.Sort(delegate(HeldNote h1, HeldNote h2)
            {
                return(h1.StartTime.CompareTo(h2.StartTime));
            });
        }
Exemple #2
0
        public void SortByApplicability()
        {
            SingleBeats.Sort(delegate(SingleBeat s1, SingleBeat s2)
            {
                return(s1.Applicability.CompareTo(s2.Applicability));
            });

            HeldNotes.Sort(delegate(HeldNote h1, HeldNote h2)
            {
                return(h1.Applicability.CompareTo(h2.Applicability));
            });
        }
Exemple #3
0
        public void SortByApplicabilityAndIsolationValue()
        {
            SingleBeats.Sort(delegate(SingleBeat s1, SingleBeat s2)
            {
                return(s1.IsolationValue.CompareTo(s2.IsolationValue));
            });

            SingleBeats.Reverse();

            HeldNotes.Sort(delegate(HeldNote h1, HeldNote h2)
            {
                return(h1.Applicability.CompareTo(h2.Applicability));
            });

            HeldNotes.Reverse();
        }