2009/12/17 Reinhold Kainhofer <reinh...@kainhofer.com>: > Is there any way to make lilypond use the same horizontal position for s\p and > c\p ???
If you don't care about spanner alignment (i.e., hairpins/dynamic text spans), then it's possible to realign the dynamics by using NoteColumn (you can retrieve DynamicText grobs, then reposition them); otherwise it's waiting for somebody to tackle issue #620. \override NoteColumn #'before-line-breaking = #(lambda (grob) (let* ((paper-col (ly:grob-parent grob X)) (elts (ly:grob-object paper-col 'elements)) (dynamic-text #f)) (for-each (lambda (x) (let ((elt (ly:grob-array-ref elts x))) (if (and (ly:item? elt) (grob::has-interface elt 'dynamic-interface)) (set! dynamic-text elt)))) (iota (ly:grob-array-length elts))) (if dynamic-text (set! (ly:grob-property dynamic-text 'X-offset) (+ (ly:self-alignment-interface::x-aligned-on-self dynamic-text) (interval-center (ly:grob-robust-relative-extent grob grob X))))))) (NB: this must be inside a \layout block at Voice level, since there are no NoteColumn grobs created within Dynamics.) Regards, Neil _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user