> 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 } } _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user