lilypond-user
[Top][All Lists]
Advanced

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

Re: How to avoid dynamic clashes?


From: Phil Holmes
Subject: Re: How to avoid dynamic clashes?
Date: Fri, 20 Dec 2019 16:26:46 -0000

If you read about dynamics in the NR, it says: "Vertical positioning of dynamics is handled by Section “DynamicLineSpanner” in InternalsReference."   Looking in the IR we see reference to Y-offset.  So this does as you wish, I think:
 
\score {
   <<
     \new Staff   {
       \clef "bass"
       c16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16
     }
     \new Dynamics {
       \once \override DynamicTextSpanner.style = #'none
       \once \override DynamicLineSpanner.Y-offset = #2
       s16\cresc s16\dim s4\!
     }
   >>
 }

--
Phil Holmes
 
 
----- Original Message -----
From: Peter Toye
Sent: Friday, December 20, 2019 4:10 PM
Subject: How to avoid dynamic clashes?

I'm trying to set a score where dynamic words are too close together for beautiful typesetting. I've tried using offsets to move one of them vertically, but they don't seem to work. What's the best way of setting this to produce a good-looking result?

\version "2.19.83"

\score {
  <<
    \new Staff   {
      \clef "bass"
      c16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16
    }
    \new Dynamics {
      \once \override DynamicTextSpanner.style = #'none
      \once \override DynamicText.extra-offset = #'( 0 . -3)
      s16\cresc s16\dim s4\!
    }
  >>
}

 
Regards,

Peter
mailto:address@hidden
www.ptoye.com

reply via email to

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