[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Independent left- and right-control of bound-padding?
From: |
Trevor Bača |
Subject: |
Re: Independent left- and right-control of bound-padding? |
Date: |
Wed, 20 Sep 2006 08:15:58 -0500 |
On 9/20/06, Markus Schneider <address@hidden> wrote:
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!
OK; Wow. The whiteout is so clever because I spent a lot of time
playing with the different padding attributes of the markup without
luck because the solid horizontal lines trample padding values. But
the solid horizontal lines *are* subject to whiteout, which is really
cool.
Thanks *again*.
(I've modified your example slightly and attached the rendered output
as a breadcrumb for myself when I come back to this part of the
archives later ...)
%%% BEGIN BOUND PADDING (WHITEOUT) SNIPPET 2 %%%
\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"
#:whiteout
#:line(
#:with-color (x11-color 'white) "i"
"b"
#:with-color (x11-color 'white) "i")))
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 (WHITEOUT) SNIPPET 2 %%%
--
Trevor Bača
address@hidden
whiteout.png
Description: PNG image