]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.46
authorfred <fred>
Sun, 24 Mar 2002 20:02:17 +0000 (20:02 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:02:17 +0000 (20:02 +0000)
lily/clef-item.cc
lily/include/clef-item.hh

index d6c02e542cfda9d0c369eb821dd8017fc9a9eb5b..927d3f2335f15dc7f3c8e3cb024db6aa22a94183 100644 (file)
@@ -37,14 +37,16 @@ Clef_item::Clef_item()
 void
 Clef_item::read (String t)
 {
-  type_= t;
-  if (type_ == "violin")
+  symbol_= t;
+  if (t == "violin")
     y_position_i_ = -2;
-  if (type_ == "alto")
+  if (t == "alto")
     y_position_i_ = 0;
-  if (type_ == "tenor")
+  if (t == "tenor") {
+    symbol_="alto";
     y_position_i_ = 2;
-  if (type_ == "bass")
+  }
+  if (t == "bass")
     y_position_i_ = 2;
 }
 void
@@ -56,7 +58,7 @@ Clef_item::read (Clef_engraver const &k)
 Molecule*
 Clef_item::brew_molecule_p() const
 {
-  String t = type_;
+  String t = symbol_;
   if  (change_b_)
     t += "_change";
   Atom s = paper()->lookup_l ()->clef (t);
index 311ea4f1ceed10cb21873923c59323f061d0f01f..c6e00a992e04427c578b8c8d61f7daebaf6933c5 100644 (file)
@@ -17,7 +17,7 @@ protected:
     Molecule* brew_molecule_p() const;
 public:
     
-    String type_;
+    String symbol_;
     int y_position_i_;
 
     /// is this a change clef (smaller size)?