Beispiel #1
0
        public void GetChord_vMinScale2()
        {
            Chord        chord    = new Chord(new Scale(false, Pitch.Fm4), ChordName.v);
            List <Pitch> actual   = chord.GetChord();
            List <Pitch> expected = new List <Pitch> {
                Pitch.Cm5, Pitch.E5, Pitch.Gm5
            };

            Assert.Equal(expected, actual);
        }
Beispiel #2
0
        public void GetChord_vMajScale1()
        {
            Chord        chord    = new Chord(new Scale(true, Pitch.C4), ChordName.v);
            List <Pitch> actual   = chord.GetChord();
            List <Pitch> expected = new List <Pitch> {
                Pitch.G4, Pitch.B4, Pitch.D5
            };

            Assert.Equal(expected, actual);
        }
Beispiel #3
0
        public void GetChord_iMinScale1()
        {
            Chord        chord    = new Chord(new Scale(false, Pitch.A4), ChordName.ilow);
            List <Pitch> actual   = chord.GetChord();
            List <Pitch> expected = new List <Pitch> {
                Pitch.A4, Pitch.C5, Pitch.E5
            };

            Assert.Equal(expected, actual);
        }
Beispiel #4
0
        public void GetChord_iMajScale2()
        {
            Chord        chord    = new Chord(new Scale(true, Pitch.Fm4), ChordName.ilow);
            List <Pitch> actual   = chord.GetChord();
            List <Pitch> expected = new List <Pitch> {
                Pitch.Fm4, Pitch.Am4, Pitch.Cm5
            };

            Assert.Equal(expected, actual);
        }
Beispiel #5
0
 public static IEnumerable <SineWave> GetChord(this SineWave baseNote, TwelveToneTemperament temperament, ChordTypes c, bool above = true)
 {
     return(GetNotes(baseNote, temperament, Chord.GetChord(c), above));
 }