コード例 #1
0
 public void CanConstructModes(int shift, Mode expected)
 {
     Note[]     cMajor    = "C D E F G A B".Split(" ").Select(N).ToArray();
     Note[]     shifted   = cMajor.Skip(shift).Concat(cMajor.Take(shift)).ToArray();
     Interval[] intervals = shifted.Select(n => Interval.Between(shifted[0], n)).ToArray();
     Assert.Equal(expected.Intervals, intervals);
 }
コード例 #2
0
 public void CanComparePitches(Interval interval, Pitch bottom, Pitch top)
 {
     Assert.Equal(interval, Interval.Between(bottom, top));
 }
コード例 #3
0
 public void CanCompareNotes(Interval interval, Note bottom, Note top)
 {
     Assert.Equal(interval, Interval.Between(bottom, top));
 }