From e90bfeb2fc68f5731a4987adce9c90579226a0e1 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:31:08 +0000 Subject: [PATCH] lilypond-0.0.30 --- src/keyitem.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/keyitem.cc b/src/keyitem.cc index 017570d749..85bf74c620 100644 --- a/src/keyitem.cc +++ b/src/keyitem.cc @@ -8,7 +8,9 @@ const int FLAT_TOP_PITCH=2; /* fes,ges,as and bes typeset in lower octave */ const int SHARP_TOP_PITCH=4; /* ais and bis typeset in lower octave */ + NAME_METHOD(Keyitem); + Keyitem::Keyitem(int c) { c_position = c; @@ -28,7 +30,8 @@ Keyitem::read(Array s) void Keyitem::read(const Clef& c) { - c_position=(c.c0_pos+70)%7; + int octaves =(abs(c.c0_position_i_) / 7) +1 ; + c_position=(c.c0_position_i_ + 7*octaves)%7; } @@ -48,7 +51,7 @@ Molecule* Keyitem::brew_molecule_p()const { Molecule*output = new Molecule; - Real inter = paper()->interline()/2; + Real inter = paper()->internote(); for (int i =0; i < pitch.size(); i++) { Symbol s= paper()->lookup_p_->accidental(acc[i]); -- 2.39.5