lilypond-user
[Top][All Lists]
Advanced

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

Re: Independent left- and right-control of bound-padding?


From: Markus Schneider
Subject: Re: Independent left- and right-control of bound-padding?
Date: Wed, 20 Sep 2006 09:08:01 +0200

Hi Trevor,

your request was immune to most approaches I used so far, but I found a
solution.
You can now alter your paddings independently (look for the "i"s).

For regular use, I recommend to turn this into a function.
Beware, this is "deep-hack" mode!

Cheers,
Markus

%%% BEGIN BOUND PADDING SNIPPET 1 %%%

\version "2.9.17"

\new Staff
  \with { \override TextSpanner #'dash-fraction = #'()
          \override TextSpanner #'direction = #down
          % \override TextSpanner #'bound-padding = #1
        }
  <<
    \time 3/8
    \new Voice {
      c'8 c'8 c'8 }
    \new Voice
      \with { \override TextSpanner #'staff-padding = #3 }
    {
      \override TextSpanner #'edge-text = #(cons
        (markup #:hcenter
          #:combine
            #:transparent "f"
            #:whiteout
              #:line(
                #:with-color (x11-color 'white) "i"
                "a"
                #:with-color (x11-color 'white) "i"))
        (markup #:hcenter #:combine #:transparent "f" " "))
      s8 \startTextSpan
      \override TextSpanner #'edge-text = #(cons
        (markup #:hcenter
          #:combine
            #:transparent "f"
            #:whiteout
              #:line(
                #:with-color (x11-color 'white) "i"
                "b"
                #:with-color (x11-color 'white) "i"))
        (markup #:hcenter
          #:combine
            #:transparent "f"
            #:whiteout
              #:line(
                #:with-color (x11-color 'white) "i"
                "c"
                #:with-color (x11-color 'white) "i")))
      s8 \stopTextSpan \startTextSpan
      s8 \stopTextSpan
    }
  >>

%%% END BOUND PADDING SNIPPET 1 %%%







reply via email to

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