예제 #1
0
        public void As_sequence_with_shorter_notes()
        {
            Intervals intervals = new Intervals("1 3 5").SetRoot("C");

            intervals.AsSequence = "$!i $0q $1h $2w";
            intervals.GetPattern().ToString().Should().Be("C5i E5i G5i C5q E5h G5w");
        }
예제 #2
0
        public void As_sequence_with_longer_notes()
        {
            Intervals intervals = new Intervals("1 3 5").SetRoot("C");

            intervals.AsSequence = "$0q. $1q $2h";
            intervals.GetPattern().ToString().Should().Be("C5q. E5q G5h");
        }
예제 #3
0
        public void Test_pattern_with_root()
        {
            var intervals = new Intervals("1 3 5");

            intervals.SetRoot("C");

            intervals.GetPattern().ToString().Should().Be("C5 E5 G5");
        }
예제 #4
0
        public void Test_as1()
        {
            var intervals = new Intervals("1 3 5").SetRoot("C").As("$!i $0q $1h $2w");

            Assert.Equal(intervals.GetPattern().ToString(), "C5i E5i G5i C5q E5h G5w", true);
        }