Jump to content

Preventing final mark from removing final tuplet: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The addition of a final <code>mark</code> can result in the loss of a final tuplet marking. This can be overcome by setting <code>TupletBracket.full-length-to-extent</code> to <code>false</code>.
Due to [https://gitlab.com/lilypond/lilypond/-/issues/2362 issue #2362] the addition of a final <code>mark</code> can result in the loss of a final tuplet marking. This can be overcome by setting <code>TupletBracket.full-length-to-extent</code> to <code>#f</code>.
 
<lilypond version="2.24" full>
% due to issue 2362 a long mark such as
%  \textEndMark "Composed Feb 2007 - Feb 2008"
% cannot be used here.
 
\paper { tagline = ##f }


<lilypond version="2.24">
\new Staff {
\new Staff {
  \set tupletFullLength = ##t
  \set tupletFullLength = ##t
  \time 1/8
  \time 1/8
  \tuplet 3/2 8 { c'16 c' c' c' c' c' c' c' c' }
  \tuplet 3/2 8 { c'16 c' c' c' c' c' c' c' c' }
  \tweak direction #DOWN \textEndMark "1234"
  \tweak direction #DOWN \textEndMark "1234"
}
}


Line 20: Line 14:


   \time 1/8
   \time 1/8
  \tuplet 3/2 8 { c'16 c' c' c' c' c' c' c' c' }
  \tuplet 3/2 8 { c'16 c' c' c' c' c' c' c' c' }
  \tweak direction #DOWN \textEndMark "1234"
  \tweak direction #DOWN \textEndMark "1234"
}
}
</lilypond>
</lilypond>


[[Category:Rhythms]]
[[Category:Workaround]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Rhythms]][[Category:Snippet]]
[[Category:Snippet]]

Latest revision as of 08:29, 8 December 2025

Due to issue #2362 the addition of a final mark can result in the loss of a final tuplet marking. This can be overcome by setting TupletBracket.full-length-to-extent to #f.

\version "2.24"

\new Staff {
  \set tupletFullLength = ##t
  \time 1/8
  \tuplet 3/2 8 { c'16 c' c' c' c' c' c' c' c' }
  \tweak direction #DOWN \textEndMark "1234"
}

\new Staff {
  \set tupletFullLength = ##t
  \override TupletBracket.full-length-to-extent = ##f

  \time 1/8
  \tuplet 3/2 8 { c'16 c' c' c' c' c' c' c' c' }
  \tweak direction #DOWN \textEndMark "1234"
}