--- /dev/null
+\version "2.12.0"
+
+\header {
+ texidoc = "The presence of an accidental after a broken tie can be
+overridden."
+}
+\layout {
+ ragged-right = ##t
+}
+
+mus = \relative c' {
+ \override Accidental #'hide-tied-accidental-after-break = ##t
+ f1~
+ f2~f4 % ~ f8
+ fis8 gis8 ~
+ \break
+ gis1
+}
+
+<<
+ \new NoteNames \mus
+ \new Voice { \key g \major \mus }
+>>
if (to_boolean (me->get_property ("forced"))
|| !unsmob_grob (me->get_object ("tie"))
- || rank == start + 1) /* we are at the start of a line */
+ || (rank == start + 1 && /* we are at the start of a line */
+ !to_boolean (me->get_property ("hide-tied-accidental-after-break"))))
{
Stencil *s = unsmob_stencil (get_stencil (me));
if (s)
Grob *me = unsmob_grob (smob);
Grob *tie = unsmob_grob (me->get_object ("tie"));
- if (tie && !tie->original ()
- && !to_boolean (me->get_property ("forced")))
+ if (tie &&
+ (to_boolean (me->get_property ("hide-tied-accidental-after-break"))
+ || (!tie->original () && !to_boolean (me->get_property ("forced")))))
{
me->suicide ();
return SCM_EOL;
"alteration "
"avoid-slur "
"forced "
+ "glyph-name-alist "
+ "hide-tied-accidental-after-break "
"parenthesized "
"restore-first "
- "glyph-name-alist "
"tie "
);
units.")
(height-limit ,ly:dimension? "Maximum slur height: The longer the
slur, the closer it is to this height.")
+ (hide-tied-accidental-after-break ,boolean? "If set, an accidental
+that appears on a tied note after a line break will not be displayed")
(horizontal-shift ,integer? "An integer that identifies ranking
of @code{NoteColumn}s for horizontal shifting. This is used by
@rinternals{note-collision-interface}.")