Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 public Pitch(Note note, int octave)
 {
     this.note   = note;
     this.octave = octave;
 }
Ejemplo n.º 3
0
 public Pitch(Note note)
 {
     this.note   = note;
     this.octave = MiddleC.Octave;
 }
Ejemplo n.º 4
0
 /// <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;
 }