bug-lilypond
[Top][All Lists]
Advanced

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

Re: tuplet-nest


From: Mats Bengtsson
Subject: Re: tuplet-nest
Date: Mon, 15 Nov 2004 18:58:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

If you want to move objects vertically, it's often much better to
set the padding property than to start fiddling with extra-offset,
since then LilyPond will (at least in some occassions) realize that
you have moved the object and adjust some other objects accordingly.

   /Mats

address@hidden wrote:
Hello,

I am trying to find a way to change the position of superior tuplet brackets via:

    \override TupletBracket  #'extra-offset = #'(0 . 1.5)

This works quite well, as you can see in the first bar. However, I have a problem, when the first element of a tuplet is again a tuplet, as in bar 2.
What I am doing there is this:

     \override TupletBracket  #'extra-offset = #'(0 . 3)
      \times 4/5 {
    c'8
    \override TupletBracket  #'extra-offset = #'(0 . 1.5)
    \times 2/3 {

% !!! this is line is problematic !!!
      \override TupletBracket  #'extra-offset = #'(0 . 0)

      \times 2/3 {
        c'16
        c'16
        c'16}
      \override TupletBracket  #'extra-offset = #'(0 . 0)
      \times 4/5 {
        c'32
        c'32
        c'32
        c'32
        c'32}
      c'8}
    c'8 c'8}

I have marked the problematic line. It seems to alter the property of the 3:2 tuplet before, even though it appears inside the \times { block.
Is this possibly a bug??

In the first bar

            % bar 1
      \time 2/4

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

      \override TupletBracket  #'extra-offset = #'(0 . 3)
      \times 4/5 {
    c'8
    \override TupletBracket  #'extra-offset = #'(0 . 1.5)
    \times 2/3 {

    % !!! here this is only a note !!!
      c'8


      \override TupletBracket  #'extra-offset = #'(0 . 0)
      \times 4/5 {
        c'32
        c'32
        c'32
        c'32
        c'32}
      c'8}
    c'8 c'8}

this does not seem to be a problem, since there is a note before the next \override statement.

Thanks for any comments, if this is a bug, so that the second bar should work fine in the future.

Please tell me as well, if I should have described the problem in a different manner or if I was not very clear.

Thanks,

    Peter.


PS:

My complete file:


\version "2.4.2"
\score {
  <<
    \new Staff {
      \set tupletNumberFormatFunction = #fraction-tuplet-formatter

                % bar 1
      \time 2/4

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

      \override TupletBracket  #'extra-offset = #'(0 . 3)
      \times 4/5 {
    c'8
    \override TupletBracket  #'extra-offset = #'(0 . 1.5)
    \times 2/3 {
      c'8
      \override TupletBracket  #'extra-offset = #'(0 . 0)
      \times 4/5 {
        c'32
        c'32
        c'32
        c'32
        c'32}
      c'8}
    c'8 c'8}


                % bar 2

      \override TupletBracket  #'extra-offset = #'(0 . 3)
      \times 4/5 {
    c'8
    \override TupletBracket  #'extra-offset = #'(0 . 1.5)
    \times 2/3 {
      \override TupletBracket  #'extra-offset = #'(0 . 0)
      \times 2/3 {
        c'16
        c'16
        c'16}
      \override TupletBracket  #'extra-offset = #'(0 . 0)
      \times 4/5 {
        c'32
        c'32
        c'32
        c'32
        c'32}
      c'8}
    c'8 c'8}
    }
  >>
}




_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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