public static int Interval(PitchClass a, PitchClass b) { return(Distance.Modular(a.Label, b.Label, 12)); }
public static int Interval(PitchClass a, PitchClass b) { return Distance.Modular(a.Label, b.Label, 12); }
/// <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; }