]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/musical-pitch.hh
release: 1.3.108
[lilypond.git] / lily / include / musical-pitch.hh
index 643cf046784f3762435b29a1d01f3189fda8acfe..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,46 +0,0 @@
-/*   
-  musical-pitch.hh -- declare Musical_pitch
-  
-  source file of the GNU LilyPond music typesetter
-  
-  (c) 1998 Han-Wen Nienhuys <hanwen@cs.ruu.nl>
-  
- */
-
-#ifndef MUSICAL_PITCH_HH
-#define MUSICAL_PITCH_HH
-#include "lily-proto.hh"
-
-/** The pitch as it figures in diatonal western music (12 semitones in
-   an octave).
-
-   It is not Music because, it has to duration associated
-*/
-struct Musical_pitch {
-  /// 0 is c, 6 is b
-  int notename_i_;
-  /// 0 is central c
-  int octave_i_;
-
-    /// 0 natural, 1 sharp, etc
-  int accidental_i_;
-  void init () ;
-  Musical_pitch to_relative_octave (Musical_pitch);
-  void transpose (Musical_pitch);
-  static int compare (Musical_pitch const&,Musical_pitch const&);
-  /// return large part of interval from central c
-  int steps() const;
-  /// return pitch from central c (in halfnotes)
-  int semitone_pitch() const; 
-  Musical_pitch ();
-  void up_to (int);
-  void down_to (int);
-  String str () const;
-  void print () const;
-};
-
-#include "compare.hh"
-INSTANTIATE_COMPARE(Musical_pitch, Musical_pitch::compare);
-
-#endif /* MUSICAL_PITCH_HH */
-