예제 #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;
 }
예제 #2
0
 public Pitch(Note note, int octave)
 {
     this.note   = note;
     this.octave = octave;
 }
예제 #3
0
 public Pitch(Note note)
 {
     this.note   = note;
     this.octave = MiddleC.Octave;
 }
예제 #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;
 }