]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.30
authorfred <fred>
Sun, 24 Mar 2002 19:31:08 +0000 (19:31 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:31:08 +0000 (19:31 +0000)
src/keyitem.cc

index 017570d749fa01be41e17a91920cd6f20a352507..85bf74c620b00e4795a3673181875d3b43df57b3 100644 (file)
@@ -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<int> 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]);