[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: brackets for coloration
From: |
harm6 |
Subject: |
Re: brackets for coloration |
Date: |
Mon, 8 Aug 2011 09:33:18 -0700 (PDT) |
Laura Conrad wrote:
>
> So it looks similar to an ligature bracket, but doesn't have the line
> between the begin and the end.
>
> I just did a little bit of searching the lilypond documentation, and
> didn't see an obvious example of how to do this. Can someone provide
> one?
>
> Thanks,
> --
> Laura
>
Hi,
do you mean something like this?
\version "2.14.2"
ligBr =
#(define-music-function (parser location music)(ly:music?)
#{
\once\override TextSpanner #'(bound-details left text) = \markup
\scale #'(-1 . 2) { "¬" }
\once\override TextSpanner #'(bound-details right text) = \markup
\scale #'(1 . 2) { "¬" }
\once\override TextSpanner #'bound-details #'left-broken #'text =
##f
\once\override TextSpanner #'bound-details #'right-broken #'text =
##f
\once\override TextSpanner #'bound-details #'left #'padding = #'0
\once\override TextSpanner #'bound-details #'right #'padding = #'-1
\once\override TextSpanner #'style = #'none
$music
#})
ligBrBegin = \startTextSpan
ligBrEnd = \stopTextSpan
\relative c'' {
\ligBr e1\ligBrBegin d e\break
f g a\ligBrEnd
}
Cheers,
Harm
--
View this message in context:
http://old.nabble.com/brackets-for-coloration-tp32219338p32219920.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.