lilypond-user
[Top][All Lists]
Advanced

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

Re: divisi staves and notehead merge (issue 3518 revisited)


From: Werner LEMBERG
Subject: Re: divisi staves and notehead merge (issue 3518 revisited)
Date: Sat, 14 Mar 2015 16:09:52 +0100 (CET)

> I've just found out that adding
> 
>   \override NoteColumn.ignore-collision = ##t
> 
> does exactly the right thing, at least for the given example.  I
> guess that this is just a work-around, since no real merging does
> happen...

...aaaand a much simpler solution is as follows, just for reference.
No need to take care of collisions at all – the `unified' line simply
holds the music of `viol' only.  This works very well with real-world
music too!  Thanks again, David K., for this nice solution.


    Werner


======================================================================

boring = \set Staff.keepAliveInterfaces = #'()
tricky = \unset Staff.keepAliveInterfaces

violsolo=\relative d' {
  \boring \repeat unfold 100 d4
  \tricky <d g'>2
  \boring \repeat unfold 98 d4
  \bar "|."
}

viol=\relative d' {
  \boring \repeat unfold 100 d4
  \tricky d4 d4
  \boring \repeat unfold 98 d4
  \bar "|."
}

\score {
  \new StaffGroup \with { \consists "Keep_alive_together_engraver" }
  <<
    \new Staff \with { instrumentName = "Violin solo"
                       shortInstrumentName = "V solo"
                       \override VerticalAxisGroup.remove-empty = ##t
                       \override VerticalAxisGroup.remove-first = ##t
                       \override VerticalAxisGroup.remove-layer = 1
                     } \violsolo

    \new Staff \with { instrumentName = "Violin gli altri"
                       shortInstrumentName = "V"
                       \override VerticalAxisGroup.remove-empty = ##t
                       \override VerticalAxisGroup.remove-first = ##t
                       \override VerticalAxisGroup.remove-layer = 1
                     } \viol

    \new Staff \with { instrumentName = "Violin"
                       shortInstrumentName = "V"
                       \override VerticalAxisGroup.remove-layer = 2
                     } \viol
  >>

  \layout {
    short-indent = 2\cm
    indent = 3\cm
  }
}

reply via email to

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