コード例 #1
0
ファイル: TrackTableTests.cs プロジェクト: kurena-777/NFugue
        public void Test_get_pattern_at()
        {
            TrackTable t = new TrackTable(5, 1.0d)
                           .Add(0, "X-.X-", new Pattern("Cmajh Emajh Gmajh Emajh"))
                           .Add(1, ".X..X", new Pattern("Gq Cq Eq Gq"))
                           .SetTrackSettings(0, "I[Flute]")
                           .SetTrackSettings(1, "I[Piano]");

            t.GetPatternAt(1).ToString().Should().Be("V0  V1 Gq Cq Eq Gq V2 R/1.0 V3 R/1.0 V4 R/1.0 V5 R/1.0 V6 R/1.0 V7 R/1.0 V8 R/1.0 V9 R/1.0 V10 R/1.0 V11 R/1.0 V12 R/1.0 V13 R/1.0 V14 R/1.0 V15 R/1.0");
        }