示例#1
0
 public static int Interval(PitchClass a, PitchClass b)
 {
     return(Distance.Modular(a.Label, b.Label, 12));
 }
示例#2
0
 public static int Interval(PitchClass a, PitchClass b)
 {
     return Distance.Modular(a.Label, b.Label, 12);
 }
示例#3
0
 /// <summary>
 ///   Constructs a new pitch.
 /// </summary>
 /// <param name="pitchClass">The pitch class for the pitch.</param>
 /// <param name="octave">The octave for the pitch.</param>
 public Pitch(PitchClass pitchClass, int octave)
 {
     this.note   = pitchClass.Enharmonics[0];
     this.octave = octave;
 }