Hi Peter, Hi Joram,

2014-11-13 10:05 GMT+01:00 Peter Terpstra <peter.terpst...@gmail.com>:

>
> Dear People,
> Found a problem with merging differently headed in the next example:
>
> \version "2.18.2"
> \relative c {
>   \key d \major
>   \clef "treble_8"
>   \mergeDifferentlyHeadedOn
>   \mergeDifferentlyDottedOn
> << { <a''-2>2 ~ a8<d-4>8<cis-3><a-4> }\\
>    { d,,,8 a' <fis'-2><cis'-3> b2 }\\
>    { d,,2 s } >>
> }
>
> Is there a solution to this?
>

Defing voices would help.
Here's what you're looking for :

\version "2.18.2"
% your notation:
\relative c {
  \key d \major
  \clef "treble_8"
  <<
    { <a''-2>2 ~ a8<d-4>8<cis-3><a-4> }\\
    \voiceTwo {
      \tweak NoteHead.stencil ##f d,,,8 a'
      <fis'-2><cis'-3> b2
    }\\
    \voiceThree { d,,2 s }
  >>
}

% here's how I'd do:
{
  \key d \major
  \clef "treble_8"
  <<
    { <a'-2>2 ~ q8 <d''-4>8 <cis''-3> <a'-4> }\\
    \voiceThree {
      \set fingeringOrientations = #'(left)
      \tweak NoteHead.stencil ##f
      d,8 a, <fis-1> <cis'-3> s2
    }\\
    \voiceTwo { d,2 b }
  >>
}

Cheers,
Pierre
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to