]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/musical-request.hh
release: 0.1.65
[lilypond.git] / lily / include / musical-request.hh
index 850ba3463fbd3091c5998c34b2cd47e20f45b696..2b3bf0fc58fe7a04e7ba34f5857578e4f1c75408 100644 (file)
@@ -13,7 +13,7 @@
 #include "lily-proto.hh"
 #include "request.hh"
 #include "duration.hh"
-
+#include "musical-pitch.hh"
 
 /**
   A request which is coupled to a #Request_chord#
@@ -112,24 +112,14 @@ public:
   REQUESTMETHODS(Lyric_req, lreq_l);
 };
 
+
+
 /// request which has some kind of pitch
 struct Melodic_req :virtual Musical_req
 {
-  /// 0 is c, 6 is b
-  int notename_i_;
-  /// 0 is central c
-  int octave_i_;
-
-    /// 0 natural, 1 sharp, etc
-  int accidental_i_;
-
-  /// return height from central c (in halflines)
-  int height() const;
-
+  Musical_pitch pitch_;
   /// transpose. #delta# is relative to central c.
-  virtual void transpose (Melodic_req const *delta);
-  /// return pitch from central c (in halfnotes)
-  int pitch() const; 
+  virtual void transpose (Musical_pitch delta);
   Melodic_req();
   bool do_equal_b (Request*) const;
   static int compare (Melodic_req const&,Melodic_req const&);