[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: horizontal bracket over a single note
From: |
Matthew |
Subject: |
Re: horizontal bracket over a single note |
Date: |
Fri, 4 Apr 2008 23:07:51 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Michael Watts <zwy648rct <at> gmail.com> writes:
>
> Try putting the textspanners into a separate voice with spacer notes.
> IIRC a textspanner needs to start on a 'real' note, so your
> textspanner voice would need transparent noteheads and stems.
>
You can put TextSpanners on spacer note. However, then spacer notes space out
the notes that I actually want to bracket. Additionally, it would really be
annoying to do this for real; bars full of semiquavers, demisemiquavers and the
like....
\version "2.10.33"
textspan = {
\override TextSpanner #'shorten-pair = #'(-1.3 . -0.8)
\override TextSpanner #'staff-padding = #1.0
\override TextSpanner #'padding = #0.5
\override TextSpanner #'minimum-length = #1.0
\override TextSpanner #'dash-fraction = #0.95
\override TextSpanner #'edge-height = #'(1.2 . 1.2)
}
su = \startTextSpan
eu = \stopTextSpan
rhythm = \relative c'' { c4 c c c } %want bracket over second note
brackets = \relative c' { f8 f16\su f\eu } %spacer notes do work
% these are here so i can see them
\score {
\new Staff <<
\new Voice = "rhythm" { \voiceOne << \textspan \rhythm >> }
\new Voice = "bracket" { \voiceTwo << \textspan \brackets >> }
>>
}