lilypond-user
[Top][All Lists]
Advanced

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

Re: trills


From: Kieren MacMillan
Subject: Re: trills
Date: Fri, 17 Apr 2009 06:49:17 -0400

Hi Berthold,

when I want to do a pitched trill over just one single note, I always get errors:

Try overriding the stencil for the \trill function:

%%%%%%%%%%
\version "2.12.2"
trillfl =
{
        \once \override Script #'stencil = #ly:text-interface::print
\once \override Script #'text = \markup \override #'(baseline-skip . 1) { \center-column {
                        \fontsize #2 \musicglyph #"accidentals.flat"
                        \musicglyph #"scripts.trill"
                } }
}
trillsh =
{
        \once \override Script #'stencil = #ly:text-interface::print
        \once \override Script #'text = \markup { \concat {
                        \musicglyph #"scripts.trill"
\translate #'(0.4 . 0.8) \fontsize #-4 \musicglyph #"accidentals.sharp"
                } }
}
\relative { c'\trill \trillfl d\trill e\trill \trillsh f\trill g\trill }
%%%%%%%%%%

With the various text markup functions in Lilypond, you can do just about anything! =)

Hope this helps!
Kieren.




reply via email to

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