/// <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; }
public Pitch(Note note, int octave) { this.note = note; this.octave = octave; }
public Pitch(Note note) { this.note = note; this.octave = MiddleC.Octave; }
/// <summary> /// Constructs a new pitch. /// </summary> /// <param name="name">The letter-name for the pitch.</param> /// <param name="accidental">The accidental for the pitch.</param> /// <param name="octave">The octave for the pitch.</param> public Pitch(NoteName name, Accidental accidental, int octave) { this.note = new Note(name, accidental); this.octave = octave; }