コード例 #1
0
ファイル: ScaleTests.cs プロジェクト: solcz/NewWave
        public void MinorPentatonicScaleTest()
        {
            var scale = ScaleLibrary.GetScale(Pitch.C, ScaleType.MinorPentatonic).ToList();

            Assert.AreEqual(5, scale.Count);
            Assert.AreEqual(Pitch.C, scale[0]);
            Assert.AreEqual(Pitch.DSharp, scale[1]);
            Assert.AreEqual(Pitch.F, scale[2]);
            Assert.AreEqual(Pitch.G, scale[3]);
            Assert.AreEqual(Pitch.ASharp, scale[4]);
        }
コード例 #2
0
ファイル: ScaleTests.cs プロジェクト: solcz/NewWave
        public void MinorScaleTest()
        {
            var scale = ScaleLibrary.GetScale(Pitch.C, ScaleType.Minor).ToList();

            Assert.AreEqual(7, scale.Count);
            Assert.AreEqual(Pitch.C, scale[0]);
            Assert.AreEqual(Pitch.D, scale[1]);
            Assert.AreEqual(Pitch.DSharp, scale[2]);
            Assert.AreEqual(Pitch.F, scale[3]);
            Assert.AreEqual(Pitch.G, scale[4]);
            Assert.AreEqual(Pitch.GSharp, scale[5]);
            Assert.AreEqual(Pitch.ASharp, scale[6]);
        }
コード例 #3
0
ファイル: ScaleTests.cs プロジェクト: solcz/NewWave
        public void MajorScaleTest()
        {
            var scale = ScaleLibrary.GetScale(Pitch.D, ScaleType.Major).ToList();

            Assert.AreEqual(7, scale.Count);
            Assert.AreEqual(Pitch.D, scale[0]);
            Assert.AreEqual(Pitch.E, scale[1]);
            Assert.AreEqual(Pitch.FSharp, scale[2]);
            Assert.AreEqual(Pitch.G, scale[3]);
            Assert.AreEqual(Pitch.A, scale[4]);
            Assert.AreEqual(Pitch.B, scale[5]);
            Assert.AreEqual(Pitch.CSharp, scale[6]);
        }