From 6c0ab543a1659358601ed52a6a02d947fac1341b Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:02:17 +0000 Subject: [PATCH] lilypond-0.1.46 --- lily/clef-item.cc | 14 ++++++++------ lily/include/clef-item.hh | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lily/clef-item.cc b/lily/clef-item.cc index d6c02e542c..927d3f2335 100644 --- a/lily/clef-item.cc +++ b/lily/clef-item.cc @@ -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); diff --git a/lily/include/clef-item.hh b/lily/include/clef-item.hh index 311ea4f1ce..c6e00a992e 100644 --- a/lily/include/clef-item.hh +++ b/lily/include/clef-item.hh @@ -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)? -- 2.39.5