Example #1
0
 public bool hasSameNotes (Beat other) {
     if (notes.Count != other.notes.Count) { return false; }
     for (int i = 0; i < notes.Count; ++i) {
         if (notes[i].tap != other.notes[i].tap) {
             return false;
         }
     }
     return true;
 }
Example #2
0
 public static Beat Parse (string raw) {
     Beat result = new Beat();
     foreach (char c in raw) {
         result.notes.Add(NoteFactory.Instance.GetNote(c));
     }
     return result;
 }