bug-lilypond
[Top][All Lists]
Advanced

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

Re: Unexpected tuplet bracket location


From: Trevor Bača
Subject: Re: Unexpected tuplet bracket location
Date: Mon, 20 Nov 2006 11:30:43 -0600

On 11/14/06, Victor Eijkhout <address@hidden> wrote:
I'd call it a bug that the tuplet bracket jumps up and down even
though the pitch doesn't change.

Btw, sometimes the bracket completely disappears, but I haven't been
able to make a small example with that.

quartertriplet = { \set tupletSpannerDuration = #(ly:make-moment 1 4) }
\relative { \time 3/4 \clef treble \key g \minor
\relative c'' {
\quartertriplet
\times 2/3 { r8 a r a r4} r4 | r8 g r g r4 |
\times 2/3 { r8 a r a r4} r4 | r8 bes r bes r4 |
\times 2/3 { r8 c r c r4} r4 | r8 bes r bes r4 |
\times 2/3 { r8 a r a r a} r8 a | r4. g |
}
}
\version "2.9.27"

Same output with 2.9.something and 2.10.

Hi Victor,

With regards to the disappearing tuplet bracket, is it possible that
the bracket goes away when the enclosed figure beams completely? By
default, Lily will print only a TupletNumber (and not a TupletBracket)
when the enclosed music beams completely.

You can force the TupletBracket to print with

 \once \override TupletBracket #'bracket-visibility = ##t

immediately before any \times statement. If you always want to force
TupletBrackets in all places, include the \override (minus the \once)
in the \with block of your current context (Voice, Staff, Score or
whatever).

As far as the 'jumping' brackets in the example, it looks like Lily
determines the tuplet bracket position (either up or down) based on
the stem direction of the first note in the figure ... with the
additional rule that tuplet figures beginning in a rest cause the
tuplet direction to equal down.

With the example above, probably the easiest thing to do is to force
tuplet bracket direction with

 \override TupletBracket #'direction = #down

or

 \override TupletBracket #'direction = #up

depending on preference. When you want Lily to resume dynamically
positioning the tuplet bracket direction, just write

 \revert TupletBracket #'direction


--
Trevor Bača
address@hidden

reply via email to

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