Because although I've used it a lot, I set it up initially a year ago and had forgotten that I'd had to add the Span_stem_engraver to the PianoStaff context. Once reminded of that, I can of course see that it can equally be added to the StaffGroup context that I'm using.
Thanks, Paul From: Jean Abou Samra <j...@abou-samra.fr> To: Paul Hodges <p...@cassland.org>, lilypond-user Mailinglist <lilypond-user@gnu.org> Sent: 04/01/2023 16:27 Subject: Re: Allowing a collision Le 04/01/2023 à 17:24, Paul Hodges a écrit : > I have a score which has two staves, for unrelated instruments. To > reproduce the composer's notation, I occasionally need to join the > stems of simultaneous notes on the two staves. > > In a piano staff this is catered for using the \crossStaff command. > However, in my case this is inapplicable; so I am trying either to > lengthen the stems on one staff or to draw a line joining them, using > \markup. > > However, whichever method I try, LilyPond prevents the extended > stem/line from reaching note on the other staff, because it prevents > the collision from happening. > > Is there a way to turn off the collision avoidance for this specific > item in isolation? The real question is: why is \crossStaff inapplicable for you?