private Note GetNoteFromRelationship(Note rootNote, int nextRel, NoteList noteList) { Note nextNote = rootNote; for (int i = 0; i < nextRel; i++) { nextNote = noteList.Next(nextNote); } return(nextNote); }
public Note GetNoteByIncrement(Note rootNote, int inc) { Note note = new Note(); NoteList list = new NoteList(); note = rootNote; //start at the root note for (int i = 1; i <= inc; i++) //don't need to start at the root note { note = list.Next(note); } return(note); }
public static int FindNoteIncrement(Note root, Note toFind) { int i = 0; //this is how we count beyond an octave //start counting at the root note Note checkNote = new Note(root); NoteList list = new NoteList(); while (checkNote.index != toFind.index) { i++; checkNote = list.Next(checkNote); } return(i); }