lilypond-user
[Top][All Lists]
Advanced

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

Re: Weird behaviour with TupletNumber.avoid-slur (beam disappears)


From: Thomas Morley
Subject: Re: Weird behaviour with TupletNumber.avoid-slur (beam disappears)
Date: Wed, 16 Nov 2016 10:14:33 +0100

2016-11-16 8:30 GMT+01:00 Risto Vääräniemi <address@hidden>:
> David's example shows the same issue, I'm having.
>
> @Mark:
> I'm writing choir music with soprano & alto on one staff and tenor & bass on
> another. So, basically I need to force slurs & ties on the "outer side" of
> each staff. I also need to force stems up / down. I just deleted everything
> unnecessary from my example as instructed.
>
> Could this be a bug? --> Should I send this to bug list? I could not find a
> suitable bug in the list with a quick search.
>
> -Risto

Hi Risto,

https://sourceforge.net/p/testlilyissues/issues/596/
https://sourceforge.net/p/testlilyissues/issues/1374/
https://sourceforge.net/p/testlilyissues/issues/4583/

are related.

I wrote a test-code and checked with several versions since 2.12.3
(hence the old syntax)


suicideTN =
\override TupletNumber #'before-line-breaking =
  #(lambda (grob) (ly:grob-suicide! grob))

omitTN = \override TupletNumber #'stencil = #'()

hideTN = \override TupletNumber #'transparent = ##t

avoidSlurOutside = \override TupletNumber #'avoid-slur = #'outside


printTuplets =
#(define-music-function (parser location nmbr mus mus2)
(integer? ly:music? ly:music?)
#{
\relative c'' {
  $mus2
  $mus
  \repeat unfold $nmbr \times 2/3 { g8^( a) g }
}
#})

nr = 4

\markup \rounded-box \fill-line { "default" }

\markup "default"
\printTuplets #nr {}{}

\markup "suicide TupletNumber-grob"
\printTuplets #nr \suicideTN {}

\markup "omit TupletNumber.stencil"
\printTuplets #nr \omitTN {}

\markup "TupletNumber.transparent = ##t"
\printTuplets #nr \hideTN {}

\markup \rounded-box \fill-line { "avoid-slur : outside" }

\markup "default"
\printTuplets #nr {} \avoidSlurOutside

\markup "suicide TupletNumber-grob"
\printTuplets #nr \suicideTN \avoidSlurOutside

\markup "omit TupletNumber.stencil"
\printTuplets #nr \omitTN \avoidSlurOutside

\markup "TupletNumber.transparent = ##t"
\printTuplets #nr \hideTN \avoidSlurOutside


Turns out the position of the slur is inconsistent even back in 2.12.3
But the Beam only vanishs for devel-versions.
In 2.19.29, which is the oldest devel-version lying around on my
machine, the beam disappears already, but not for 2.18.2

So, yes, this is a bug. Please report.

Cheers,
  Harm



reply via email to

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