public void PhrygianScale_Constructor_Test() { // Arrange // Act var target = new PhrygianScale(Tone.E); // Assert Assert.AreEqual(Tone.E, target.BaseTone); }
public void TestPhrygianScaleNoteIntervals() { var scale = new PhrygianScale(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 PhrygianEFromE0ToD1_GetScaleMembers_Test() { // Arrange var target = new PhrygianScale(Tone.E); // Act var scaleInE = target.GetScaleMembers(new Pitch(0, Tone.E), new Pitch(1, Tone.D)); // Assert Assert.AreEqual(new Pitch(0, Tone.E), scaleInE[0]); Assert.AreEqual(new Pitch(0, Tone.F), scaleInE[1]); Assert.AreEqual(new Pitch(0, Tone.G), scaleInE[2]); Assert.AreEqual(new Pitch(0, Tone.A), scaleInE[3]); Assert.AreEqual(new Pitch(0, Tone.B), scaleInE[4]); Assert.AreEqual(new Pitch(1, Tone.C), scaleInE[5]); Assert.AreEqual(new Pitch(1, Tone.D), scaleInE[6]); }
public void TestBFlatPhrygian() { var scale = new PhrygianScale(MusicNotes.BFlat); Assert.Equal(7, scale.Notes.Length); Assert.Equal(MusicNotes.BFlat, scale.Notes[0].Note); Assert.Equal(MusicNotes.CFlat, scale.Notes[1].Note); Assert.Equal(MusicNotes.DFlat, scale.Notes[2].Note); Assert.Equal(MusicNotes.EFlat, scale.Notes[3].Note); Assert.Equal(MusicNotes.F, scale.Notes[4].Note); Assert.Equal(MusicNotes.GFlat, scale.Notes[5].Note); Assert.Equal(MusicNotes.AFlat, scale.Notes[6].Note); }
public void TestASharpPhrygian() { var scale = new PhrygianScale(MusicNotes.ASharp); Assert.Equal(7, scale.Notes.Length); Assert.Equal(MusicNotes.ASharp, scale.Notes[0].Note); Assert.Equal(MusicNotes.B, scale.Notes[1].Note); Assert.Equal(MusicNotes.CSharp, scale.Notes[2].Note); Assert.Equal(MusicNotes.DSharp, scale.Notes[3].Note); Assert.Equal(MusicNotes.ESharp, scale.Notes[4].Note); Assert.Equal(MusicNotes.FSharp, scale.Notes[5].Note); Assert.Equal(MusicNotes.GSharp, scale.Notes[6].Note); }
public void TestAPhrygian() { var scale = new PhrygianScale(MusicNotes.A); Assert.Equal(7, scale.Notes.Length); Assert.Equal(MusicNotes.A, scale.Notes[0].Note); Assert.Equal(MusicNotes.BFlat, scale.Notes[1].Note); Assert.Equal(MusicNotes.C, scale.Notes[2].Note); Assert.Equal(MusicNotes.D, scale.Notes[3].Note); Assert.Equal(MusicNotes.E, scale.Notes[4].Note); Assert.Equal(MusicNotes.F, scale.Notes[5].Note); Assert.Equal(MusicNotes.G, scale.Notes[6].Note); }