Example #1
0
        private bool IsNewChord(Chord chord)
        {
            Chord emptyChord = ChordDAO.FindAChord(chord);

            //I just picked an element that will be there everytime
            if (emptyChord.ChordName == null)
            {
                return(true);
            }

            return(false);
        }
Example #2
0
        public static Chord FindChord(List <NoteNames> notesEntered)
        {
            Chord unknownChord = new Chord();

            unknownChord.NoteList = notesEntered;
            unknownChord.RootNote = notesEntered[0];

            unknownChord.NoteDifference = FindNoteRelationship(notesEntered);

            if (unknownChord.IsNewChord(unknownChord))
            {
                unknownChord.Message = "Either this is not a formal chord, or we don't have it in our system yet.";
            }
            else
            {
                unknownChord         = ChordDAO.FindAChord(unknownChord);
                unknownChord.Message = "We found your chord!";
            }

            return(unknownChord);
        }