lilypond-user
[Top][All Lists]
Advanced

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

Re: Tuplet bracket collides with fingering when slurred


From: Thomas Morley
Subject: Re: Tuplet bracket collides with fingering when slurred
Date: Thu, 6 Dec 2012 23:22:44 +0100

2012/12/4 Olivier Biot <address@hidden>:
> Dear all,
>
> As a follow-up, here's another snippet featuring the same or similar
> behavior. I haven't found the way to solve this problem yet.
>
> % BEGIN snippet 2
> \version "2.16.1"
>
> theMusic = \new Staff {
>   \relative d' {
>     \clef "bass"
>
>     \key g \major
>     \time 2/4
>     \times 4/6 { g,,16 ( b' g' )  g ( b, g, )    c,->-\f ( e'-3 c'-4 )  c (
> e, c, ) }   | % Test 1: sextuplets
>     \times 2/3 { g'16 ( b' g' )  g ( b, g, ) } \times 2/3 { c,->-\f ( e'-3
> c'-4 )  c ( e, c, ) }  | % Test 2: triplets
>   }
> }
>
> \score {
>   \theMusic
>
>
>   \layout {
>     \context {
>       \Staff
>       \override Fingering #'add-stem-support = ##t
>       \override Fingering #'avoid-slur = #'outside
>       \override TupletBracket #'bracket-visibility = ##t
>     }
>   }
> }
> % END snippet 2
>
> Best regards,
>
> Olivier
>
>
>
> On Fri, Nov 23, 2012 at 10:58 PM, Olivier Biot <address@hidden>
> wrote:
>>
>> Dear LilyPond users,
>>
>> How can I avoid the tuplet bracket colliding with fingerings in case the
>> tuplet has a slur?
>>
>> Example of tuplet without and with slur, illustrating the problem:
>>
>>
>> % BEGIN
>> \version "2.16.1"
>>
>> \score {
>>
>>   \new Staff {
>>     \relative c, {
>>       \key g \major
>>       \time 2/4
>>       \clef "bass"
>>       \times 2/3 { c16->-\f e'-3 c'-4  c e, c,  }
>>       \times 2/3 { c16->-\f ( e'-3 c'-4 )  c ( e, c, ) }
>>     }
>>   }
>>
>>   \layout {
>>     \context {
>>       \Staff
>>       \override Fingering #'add-stem-support = ##t
>>       \override Fingering #'avoid-slur = #'outside
>>       \override TupletBracket #'bracket-visibility = ##t
>>       \override TupletBracket #'avoid-slur = ##t
>>       \override TupletNumber #'avoid-slur = ##t
>>     }
>>   }
>> }
>> % END
>>
>> Is this related to the following issue?
>> http://code.google.com/p/lilypond/issues/detail?id=2397
>>
>> Best regards,
>>
>> Olivier
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

Hi Olivier,

fiddling about the values of TupletBracket 'outside-staff-priority
seems to do the job:


\version "2.16.1"

\score {

  \new Staff {
    \relative c, {
      \key g \major
      \time 2/4
      \clef "bass"


    \override TupletBracket #'outside-staff-priority = #0
      \times 2/3 { c16->-\f e'-3 c'-4  c e, c,  }
      \times 2/3 { c16->-\f ( e'-3 c'-4 )  c ( e, c, ) }
    }
  }

  \layout {
    \context {
      \Staff
      \override Fingering #'add-stem-support = ##t
      \override Fingering #'avoid-slur = #'outside
      \override TupletBracket #'bracket-visibility = ##t
    }
  }
}

theMusic = \new Staff {
  \relative d' {
    \clef "bass"
    %% Using a value > 250 will place the DynamicText outside the
    %% TupletBracket, depends on what you want.
    \override TupletBracket #'outside-staff-priority = #250
    \key g \major
    \time 2/4
    % Test 1: sextuplets
    \times 4/6 { g,,16 ( b' g' )  g ( b, g, )    c,->-\f ( e'-3 c'-4 )
 c ( e, c, ) }   |
     % Test 2: triplets
    \times 2/3 { g'16 ( b' g' )  g ( b, g, ) } \times 2/3 { c,->-\f (
e'-3 c'-4 )  c ( e, c, ) }  |
  }
}

\score {
  \theMusic
  \layout {
    \context {
      \Staff
      \override Fingering #'add-stem-support = ##t
      \override Fingering #'avoid-slur = #'outside
      \override TupletBracket #'bracket-visibility = ##t
    }
  }
}


HTH,
  Harm



reply via email to

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