示例#1
0
        public static void GenSevenths()
        {
            char sharp = '\x266f'; //UFT-16 encoding
            char flat  = '\x266D';

            List <string> noteList = new List <string>();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G");
            noteList.Add("B");
            Chord MajorSeventh = new Chord("C Major Seventh", Note.MapNotes(noteList));

            MajorSeventh.InsertChord(MajorSeventh);
            noteList.Clear();


            noteList.Add("C");
            noteList.Add("E" + sharp);
            noteList.Add("G");
            noteList.Add("B");
            Chord MinorMajSeventh = new Chord("C Minor Major Seventh", Note.MapNotes(noteList));

            MinorMajSeventh.InsertChord(MinorMajSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E" + sharp);
            noteList.Add("G");
            noteList.Add("B" + flat);
            Chord MinorSeventh = new Chord("C Minor Seventh", Note.MapNotes(noteList));

            MinorSeventh.InsertChord(MinorSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E" + flat);
            noteList.Add("G" + flat);
            noteList.Add("A"); //b double flat
            Chord DimSeventh = new Chord("C Diminished Seventh", Note.MapNotes(noteList));

            DimSeventh.InsertChord(DimSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E" + flat);
            noteList.Add("G" + flat);
            noteList.Add("B" + flat);
            Chord HalfDimSeventh = new Chord("C Half-Diminished Seventh", Note.MapNotes(noteList));

            HalfDimSeventh.InsertChord(HalfDimSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G" + sharp);
            noteList.Add("B" + flat);
            Chord AugmentedSeventh = new Chord("C Augmented Seventh", Note.MapNotes(noteList));

            AugmentedSeventh.InsertChord(AugmentedSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G" + sharp);
            noteList.Add("B");
            Chord AugmentedMajSeventh = new Chord("C Augmented Major Seventh", Note.MapNotes(noteList));

            AugmentedMajSeventh.InsertChord(AugmentedMajSeventh);
            noteList.Clear();

            noteList.Add("G");
            noteList.Add("B");
            noteList.Add("D");
            noteList.Add("F");
            Chord DominantSeventh = new Chord("G Dominant Seventh", Note.MapNotes(noteList));

            DominantSeventh.InsertChord(DominantSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G" + sharp);
            noteList.Add("B" + flat);
            Chord AlteredSeventh = new Chord("C Altered Seventh", Note.MapNotes(noteList));

            AlteredSeventh.InsertChord(AlteredSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G");
            noteList.Add("B" + flat);
            Chord AlteredDomSeventh = new Chord("C Altered Dominant Seventh", Note.MapNotes(noteList));

            AlteredDomSeventh.InsertChord(AlteredDomSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G" + flat);
            noteList.Add("B" + flat);
            Chord AlteredDomFltFiveSeventh = new Chord("C Altered Dominant Flat Five Seventh", Note.MapNotes(noteList));

            AlteredDomFltFiveSeventh.InsertChord(AlteredDomFltFiveSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G" + sharp);
            noteList.Add("B" + flat);
            Chord AlteredDomSrpFiveSeventh = new Chord("C Altered Dominant Sharp Five Seventh", Note.MapNotes(noteList));

            AlteredDomSrpFiveSeventh.InsertChord(AlteredDomSrpFiveSeventh);
            noteList.Clear();

            noteList.Add("C");
            noteList.Add("E");
            noteList.Add("G");
            noteList.Add("B" + flat);
            noteList.Add("D" + flat);
            Chord AlteredDomfltNineSeventh = new Chord("C Altered Dominant Flat Nine Seventh", Note.MapNotes(noteList));

            AlteredDomfltNineSeventh.InsertChord(AlteredDomfltNineSeventh);
            noteList.Clear();
        }