public static List <Note> createNotes(Note startingNote, Note endingNote)
        {
            List <Note> listOfNotes = NoteGenerator.createListOfNotes();

            List <Note> output = new List <Note>();

            for (int i = startingNote.noteIndex(); i <= endingNote.noteIndex(); i++)
            {
                output.Add(listOfNotes[i]);
            }

            return(output);
        }
Пример #2
0
        public static int returnNoteListElement(Note searchedNote)
        {
            List <Note> listOfNotes = NoteGenerator.createListOfNotes();



            for (int i = 0; i < listOfNotes.Count; i++)
            {
                if (listOfNotes[i].NoteName == searchedNote.NoteName && listOfNotes[i].Octave == searchedNote.Octave)
                {
                    return(i);
                }
            }


            return(0);
        }