[Top][All Lists]

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

Re: Workaround for Issue 5001? (TupletNumber.avoid-slur)

From: Jan-Peter Voigt
Subject: Re: Workaround for Issue 5001? (TupletNumber.avoid-slur)
Date: Mon, 6 Nov 2017 07:23:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hi Harm,

thanks alot, this is really helpful!


Am 05.11.2017 um 16:28 schrieb Thomas Morley:
Hi Jan-Peter,

2017-11-05 15:44 GMT+01:00 Jan-Peter Voigt <address@hidden>:
Hello James,

thanks for pointing this out! The mentioned case also occurs in my current
score, but most times I deal with a slur over three notes:

\version "2.19.49"

\relative c'' {
   \time 4/4
   % the default case
   \tuplet 3/2 {a8^( g a)}
   % the "avoid-slur"-bug
   \once \override TupletNumber.avoid-slur = #'outside

%% The bug seems to be not present for avoid-sur 'ignore
%% Hence you could workaround with less effort at the lines of:
   \once \override TupletNumber.avoid-slur = #'ignore
   %% probably take slur/tuplet-direction into account
   \once \override TupletNumber.Y-offset =
     #(lambda (grob) (+ (ly:tuplet-number::calc-y-offset grob) 1.1))

   \tuplet 3/2 {a8^( g a)}
   % this is, how it should look like, but unfortunately all have to
   % be set with trial and error for different notes
   \shape #'((0 . -2.1)(0 . -2.1)(0 . -2.1)(0 . -2.1)) Slur
   \once \override TupletNumber.Y-offset = #4.5
   \tuplet 3/2 {a8^( g a)}



reply via email to

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