bug-lilypond
[Top][All Lists]
Advanced

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

Re: accidentals on merged notes


From: Malte Meyn
Subject: Re: accidentals on merged notes
Date: Sat, 12 Aug 2017 20:56:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1



Am 12.08.2017 um 17:05 schrieb Hauke Rehr:
Still, the output doesn’t match at least /my/ expectations:
notes should either not be merged at all, or there should be
stacked accidentals indicating which one applies to which Voice.

How should this be a default behaviour? IMO none of those two options looks good and unambiguous. But here are three possible solutions to your problem (I like the third most):

\version "2.19.63"

\relative {
  <<
    {
      c''4
      \tweak NoteColumn.X-offset 2.5
      \tweak Accidental.X-offset 1.6
      g
      \tweak NoteColumn.X-offset 1.5
      \tweak Accidental.extra-offset #'(1.65 . 0)
      g!
      ais
    } \\ {
      gis
      gis
      \tweak NoteHead.extra-offset #'(-1 . 0)
      \tweak Stem.extra-offset #'(-1 . 0)
      gis
      gis
    }
  >>
}

\relative {
  <<
    {
      c''4
      \tweak Accidental.stencil #ly:text-interface::print
      \tweak Accidental.text
\markup \fontsize #-5 \override #'(baseline-skip . 2) \vcenter \center-column {
        \musicglyph #"accidentals.natural"
        \musicglyph #"accidentals.sharp"
      }
      g
      g
      ais
    } \\ {
      gis
      gis
      \tweak Accidental.stencil #ly:text-interface::print
      \tweak Accidental.text
\markup \fontsize #-5 \override #'(baseline-skip . 2) \vcenter \center-column {
        \musicglyph #"accidentals.natural"
        \musicglyph #"accidentals.sharp"
      }
      gis
      gis
    }
  >>
}

\new StaffGroup \new Staff = "orig" \relative {
  <<
    {
      c''4 c c c
      \new Staff \with {
        alignAboveContext = "orig"
      } \relative {
        \omit Staff.TimeSignature
        \omit Staff.Clef
        c'' g! g a
      }
      c c c c
    } \\ {
      gis gis gis gis
      gis gis gis gis
      gis gis gis gis
    }
  >>
}



reply via email to

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