lilypond-user
[Top][All Lists]
Advanced

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

Re: Solution for: 2.11.38 LSR Adding accidentals to a trillspanner


From: Risto Vääräniemi
Subject: Re: Solution for: 2.11.38 LSR Adding accidentals to a trillspanner
Date: Mon, 4 Feb 2008 10:12:19 +0200

Dear Paul,

On 04/02/2008, Paul Scott wrote:
> Can someone tell me how to fix this?

Sorry, I can't. I have a workaround, though. :-) I had to find a way
to make a pitched trill and came up with this. However, the solution
is not ideal. If you change the size of the trill mark, you have to
find new values for the stencil-offset.

The mail thread:
http://lists.gnu.org/archive/html/lilypond-user/2007-10/msg00124.html

-Risto

%%%%%%%%
\version "2.11.37"

trstyle =
{
    \override TextSpanner   #'style = #'trill
    \override TextSpanner   #'edge-height = #'(0 . 1)
}

trflatstartI =
{
    \trstyle
    \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER
    \override TextSpanner #'bound-details #'left #'stencil-offset =
#'(-0.3 . 0.15)
    \override TextSpanner #'bound-details #'left #'text =
        \markup{\musicglyph #"scripts.trill"
        \raise #1.0 \smaller \flat}
}

trflatstartII =
{
    \trstyle
    \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER
    \override TextSpanner #'bound-details #'left #'stencil-offset =
#'(-0.6 . 0.85)
    \override TextSpanner #'bound-details #'left #'text =
        \markup{ \column{\tiny\smaller\smaller\smaller{\flat}
            {\musicglyph #"scripts.trill"}}}
}

\relative c'
{
    f2.. \startTrillSpan f8 \stopTrillSpan |
    \trflatstartI f2..^\startTextSpan f8 \stopTextSpan |
    \trflatstartII f2..^\startTextSpan f8 \stopTextSpan |
}
%%%%%%




reply via email to

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