public void MixolydianScale_Constructor_Test() { // Arrange // Act var target = new MixolydianScale(Tone.F); // Assert Assert.AreEqual(Tone.F, target.BaseTone); }
public void TestMixolydianScaleNoteIntervals() { var scale = new MixolydianScale(MusicNotes.A); Assert.Equal(IntervalQuality.P1, scale.Notes[0].Interval.IntervalQuality); Assert.Equal(IntervalQuality.M2, scale.Notes[1].Interval.IntervalQuality); Assert.Equal(IntervalQuality.M3, scale.Notes[2].Interval.IntervalQuality); Assert.Equal(IntervalQuality.P4, scale.Notes[3].Interval.IntervalQuality); Assert.Equal(IntervalQuality.P5, scale.Notes[4].Interval.IntervalQuality); Assert.Equal(IntervalQuality.M6, scale.Notes[5].Interval.IntervalQuality); Assert.Equal(IntervalQuality.m7, scale.Notes[6].Interval.IntervalQuality); }
public void MixolydianGFromA0ToA1_GetScaleMembers_Test() { // Arrange var target = new MixolydianScale(Tone.G); // Act var scaleInG = target.GetMembers(new Pitch(0, Tone.A), new Pitch(1, Tone.A)); // Assert Assert.AreEqual(new Pitch(0, Tone.A), scaleInG[0]); Assert.AreEqual(new Pitch(0, Tone.B), scaleInG[1]); Assert.AreEqual(new Pitch(1, Tone.C), scaleInG[2]); Assert.AreEqual(new Pitch(1, Tone.D), scaleInG[3]); Assert.AreEqual(new Pitch(1, Tone.E), scaleInG[4]); Assert.AreEqual(new Pitch(1, Tone.F), scaleInG[5]); Assert.AreEqual(new Pitch(1, Tone.G), scaleInG[6]); Assert.AreEqual(new Pitch(1, Tone.A), scaleInG[7]); }
public void TestBFlatMixolydian() { var scale = new MixolydianScale(MusicNotes.BFlat); Assert.Equal(7, scale.Notes.Length); Assert.Equal(MusicNotes.BFlat, scale.Notes[0].Note); Assert.Equal(MusicNotes.C, scale.Notes[1].Note); Assert.Equal(MusicNotes.D, scale.Notes[2].Note); Assert.Equal(MusicNotes.EFlat, scale.Notes[3].Note); Assert.Equal(MusicNotes.F, scale.Notes[4].Note); Assert.Equal(MusicNotes.G, scale.Notes[5].Note); Assert.Equal(MusicNotes.AFlat, scale.Notes[6].Note); }
public void TestASharpMixolydian() { var scale = new MixolydianScale(MusicNotes.ASharp); Assert.Equal(7, scale.Notes.Length); Assert.Equal(MusicNotes.ASharp, scale.Notes[0].Note); Assert.Equal(MusicNotes.BSharp, scale.Notes[1].Note); Assert.Equal(MusicNotes.CDoubleSharp, scale.Notes[2].Note); Assert.Equal(MusicNotes.DSharp, scale.Notes[3].Note); Assert.Equal(MusicNotes.ESharp, scale.Notes[4].Note); Assert.Equal(MusicNotes.FDoubleSharp, scale.Notes[5].Note); Assert.Equal(MusicNotes.GSharp, scale.Notes[6].Note); }
public void TestAMixolydian() { var scale = new MixolydianScale(MusicNotes.A); Assert.Equal(7, scale.Notes.Length); Assert.Equal(MusicNotes.A, scale.Notes[0].Note); Assert.Equal(MusicNotes.B, scale.Notes[1].Note); Assert.Equal(MusicNotes.CSharp, scale.Notes[2].Note); Assert.Equal(MusicNotes.D, scale.Notes[3].Note); Assert.Equal(MusicNotes.E, scale.Notes[4].Note); Assert.Equal(MusicNotes.FSharp, scale.Notes[5].Note); Assert.Equal(MusicNotes.G, scale.Notes[6].Note); }