lilypond-user
[Top][All Lists]
Advanced

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

Re: Tuplet bracket length


From: bruys .
Subject: Re: Tuplet bracket length
Date: Sat, 16 Apr 2011 18:13:16 +1000

Dear Janek,
Thanks for the reply. I've more questions , see below.
Regards,
Bruce

2011/4/16 Janek Warchoł <address@hidden>
2011/4/16 bruys . <address@hidden>:
> Greetings,
>
> I would like the alter the length of the tuplet bracket so it extends from
> the left-hand edge of the first notehead, to the right-hand edge of the last
> notehead.

Search mailing list for
First page completed; tweaking questions
and see if that thread will help you.
 
I've read this thread. It seems to be mainly concerned with making the brackets extend to the full duration of the notes, like it is shown in the snippets, but that is not what I want to do here. I've added a couple of '\overrides' ('shorten-pair' was mentioned in the thread) which achieve the desired outcome (see below), but the solution seems terribly fragile. A different manual '\override' will need to be put in place for each different tuplet.

It is not clear what units 'shorten-pair' uses (I just used trial and error); or why putting a value of 0.0 in the first position actually shortens the bracket on the left-hand end.

Lilypond seems to be doing what I want for the upper bracket - how to make it automatically do it for the other?
 
> In the attached example, there is also a problem with the nested triplets.
> The two numerals '3' collide.Could this be a bug that has since been
> corrected?

It is a known bug and unfortunately it still exists in 2.13.59.

Ah, thanks.


\version "2.12.3"

\header {
  title = "Tuplets"
}
notes = {
  %% To make tuplet bracket extend to the end of the
  % duration of the final note
  % \set tupletFullLength = ##t
  % \times 2/3 { aes'4 beses'4 aes'4 }
  % \times 4/5 { b'8 d''8 r8 f''8 c''8 }
  % \times 4/7 { e'16[ a'16 g'16 b'16 c''16 d''16] }
  %% nb '3's clash in the following
  \times 2/3 { b'8[
               \times 2/3 { b'16 b' b' }
               b'8]
             }
  %% To force tuplet bracket visibility
  \override TupletBracket #'bracket-visibility = ##t
 
  \times 2/3 { b'8[
               \times 2/3 { b'16 b' b' }
               b'8]
             }
  %% To change positioning of inner tuplet bracket          
  \times 2/3 { b'8[
               \once \override TupletBracket #'direction = #UP
               \times 2/3 { b'16 b' b' }
               b'8]
             }  
  %% Manually change the bracket length
  \times 2/3 { \once \override Voice.TupletBracket #'shorten-pair = #'(-0.2 . -1.5)
             b'8[
               \once \override TupletBracket #'direction = #UP
               \times 2/3 { b'16 b' b' }
               b'8]
             }  
   %% Adjust the vertical position of the tuplet bracket
   \times 2/3 { \once \override Voice.TupletBracket #'shorten-pair = #'(-0.2 . -1.5)
              \once \override Voice.TupletBracket #'positions = #'(-5 . -5)
               b'8[
                \once \override TupletBracket #'direction = #UP
                \times 2/3 { b'16 b' b' }
                b'8]
              }  
            
}
\score {
  \notes
}

Attachment: Tuplets-.png
Description: PNG image


reply via email to

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