Robert,

For what it's worth, the following code runs without spacing issues on
2.18.2
Note that I commented out one of the overrides.

-Greg

%%%%%
\version "2.18.2"

PartPOneVoiceOne = {
\clef "treble"
\key c \major
\time 3/4
fis'8) c''8\rest  \override NoteColumn #'force-hshift = #-2.5  fis'!2|
fis'!2.^~|
fis'8 [\override NoteColumn #'force-hshift = #-1 f'!8 ] d'2|
}

PartPOneVoiceTwo = {
\clef "treble"
\key c \major
\time 3/4
<c' es'!  >8 d'8 \rest  < d' f'! >4 _(< c' es'! >4 |
\override NoteColumn #'force-hshift = #-2.5 <b d' >4 c'4 b4_~)|
b2.|
}

PartPTwoVoiceOne = {
\clef "bass"
\key c \major
\time 3/4
\once \override NoteColumn.X-offset = #-4 \stemDown  <e f a>8 e8 \rest < es
fis a >2|
\once \override NoteColumn.X-offset = #-4 \stemUp f4 a4 gis4|
s2.|
}

PartPTwoVoiceTwo = {
\clef "bass"
\key c \major
\time 3/4
<< \stemDown {<e f >8 d8 \rest s4 } \\ { a8 s8 <es fis a >2 } >> |
%\override NoteColumn #'force-hshift = #-5
es2.|
\override NoteColumn #'force-hshift = #-2 \stemDown < es g >2.|
}

\score {
\new PianoStaff \with {
\override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 12))
connectArpeggios = ##t
}
<<
\new Staff = "upper" <<
\new  Voice = "PartPOneVoiceOne"  \PartPOneVoiceOne
\new Voice = "PartPOneVoiceTwo"  \PartPOneVoiceTwo
>>

\new Staff = "lower" <<
\new Voice = "PartPTwoVoiceOne"  \PartPTwoVoiceOne
\new  Voice = "PartPTwoVoiceTwo" \PartPTwoVoiceTwo
>>
>>
}
%%%%%


Hi Valentin,
> Thanks for your interest in my problem
> The piece, as you can see in the screenshot, is a piano score with two
> voices in each staff and occasionally a third voice by << { } \\ { } >> or
> \partcombine.
> I triple-checked my source code, first by hiding successively each voice,
> and see what happens, and then to comment out and successively reopen all
> lines, 55 in each voice,  in my score. Compared with the original
> everything is OK except the passage (only 3 bars) shown in the screenshot.
> Thereafter, in the last 7 bars of the piece everything is again perfect.
>
> Overall there are several instances where I needed "\once \override
> NoteColumn #'force-hshift = #x" , and a few "\once\override
> NoteColumn.X-offset = #x”.
> I use LilyPond 2_19_83-1 with TeXShop as the editor. Usually it works
> perfectly.
> I include the problematic part of the score. It is certainly not a *M*WE
> but it works for me and it shows the problem. It also shows that its origin
> does not ly in the previous bars.
> Thanks again for your interest.
> Best regards,
> Robert
>
>
> On 3 Jun 2020, at 14:14, Valentin Villenave <valen...@villenave.net>
> wrote:
> On 6/3/20, Robert Blackstone <blackstone.rob...@gmail.com> wrote:
> Hi Robert,
> Unless you post some code, it’s gonna be difficult to help you. You
> should first double check your source files in case there’s some
> \override affecting the DotColumn object somewhere?
> Cheers,
> -- V.


I’m vainly struggling with a weird spacing problem

Reply via email to