lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sprechgesang


From: Han-Wen Nienhuys
Subject: Re: sprechgesang
Date: Fri, 26 Jan 2007 14:46:34 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061219)

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 - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]