public bool ForCheck(string theMain) { if (!ifChord) { int brojac = 0; foreach (int Note in Notes) { if (theMain.Contains(RootNotes.ElementAt((Note) % 12))) { brojac++; } } return((Notes.Count) == brojac); } else { return((RootNotes.ElementAt(Root) + " " + Name) == theMain); } }
public override string ToString() { Notes.Add(Root); // FOR ROOT string fullString = ""; if (ifChord) { fullString += RootNotes.ElementAt(Root % 12) + " "; foreach (int Note in Notes) { if (Note != Root) { fullString += RootNotes.ElementAt(Note % 12) + " "; } } return(fullString); } else { fullString += RootNotes.ElementAt(Root % 12) + " " + Name; return(fullString); } }