static public bool HasTheNote(List<Note> list, Note c ) { foreach(var n in list) { if(n._octave == c._octave && n._step == c._step) return true; } return false; }
static public int WhereIsTheNote(List<Note> list, Note c) { for (var ii = 0; ii < list.Count; ++ii) { if (list[ii]._octave == c._octave && list[ii]._step == c._step) return ii; } return -1; }
private static bool HasTheNote(Note[] instant, Note note) { foreach (var n in instant) { if (n._octave == note._octave && n._step == note._step) return true; } return false; }