Bertalan Fodor escreveu: > Closer to a perfect solution: because Stem lengths varies, we should > count the distance from the opposing direction: from the notehead. So > for a more consistent look we should use the following (also tuned the x > a bit): > > sp = { \override Voice.Stem #'stencil = > #(lambda (grob) > (ly:stencil-combine-at-edge > (ly:stem::print grob) 1 (* -1 (ly:grob-property grob > 'direction)) > (ly:text-interface::print grob) -2.3 0)) > \override Voice.Stem #'text = \markup { > \hspace #-1.025 \fontsize #-4 \musicglyph #"noteheads.s2cross" > } > } > > René, I hope, you send us a part of your score to see how beautiful the > sprechgesang is :-)
this is a bit odd, because stem does not usually have 'text. It's better to use (define (grob-text grob text) (let* ((layout (ly:grob-layout grob)) (defs (ly:output-def-lookup layout 'text-font-defaults)) (props (ly:grob-alist-chain grob defs))) (ly:text-interface::interpret-markup layout props text))) I've made a publicly available grob-interpret-markup function for the next release. -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen LilyPond Software Design -- Code for Music Notation http://www.lilypond-design.com _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user