]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/custos-engraver.cc
release: 1.3.145
[lilypond.git] / lily / custos-engraver.cc
index 075e80d79298c85c35d90c4714101753527872b8..55c8c73f36a54af08bb772a1b204e312012ca63f 100644 (file)
@@ -103,9 +103,15 @@ Custos_engraver::create_grobs ()
       for (int i = pitches_.size (); i--;)
        {
          Item *c = create_custos ();
+
+         int p = pitches_[i].steps ();
+         SCM c0 = get_property ("centralCPosition");
+         if (gh_number_p (c0))
+           p += gh_scm2int (c0);
+
          
          c->set_grob_property ("staff-position",
-                              gh_int2scm (pitches_[i].steps ()));
+                               gh_int2scm (p));
          
        }