lilypond-user
[Top][All Lists]
Advanced

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

Re: fermata and text (markup) on/above one note


From: Mats Bengtsson
Subject: Re: fermata and text (markup) on/above one note
Date: Thu, 14 Feb 2008 23:26:53 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8

Trevor Bača wrote:

OK, I was confusing dynamics and text scripts. For text scripts this baseline alignment is very cool. But for dynamics what I'm actually looking for is *center* alignment in the vertical direction (rather than *baseline* aligment). In other words, in Kieren's example above, my preference is to see the p and f center aligned *as though the p were the beginning of a crescendo and the f were the end*.

Is there such a trick for *center* alignment of dynamic marks??

Actually, as long as the dynamics belong to the same
DynamicLineSpanner, i.e. a sequence of absolute dynamics,
hairpins and/or cresc/decresc with not gaps inbetween them,
then this is exactly what you get by default. If you want it
also for dynamics that are separated by some notes so that
they don't belong to the same DynamicLineSpanner, then
you can use exactly the same trick. I just increased the default
value of the staff-padding and kept the default center alignment
of each DynamicText in relation to its DynamicLineSpanner:

\version "2.10.33"

\paper { indent = 0 line-width = 2\in }

music = \relative c''
{
   c2\p^\markup { "gorgeous" } c\f^\markup { "fantastic" }
   c4\p c \f \> c c \! \p
}

\score
{
   {
       \music \break

       \override DynamicLineSpanner #'staff-padding = #2.0
       \override DynamicLineSpanner #'Y-extent = #'(-1 . 1)
       \override TextScript #'Y-extent = #'(-1 . 1)
       \music
   }
}


   /Mats




reply via email to

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