Hi all,
I'm working on a piano piece with ossia staves. The ossia staves are
reduced in size with \magnifyStaff.
Couple of questions:
1. Is it possible to scale the staff-staff-spacing without manual overrides
like I did below?
2. There are many kneed beams in this piece. The ones in the main staff
behave as expected, however in the ossia I get bad angles all over the
place. I've tried to remedy this with overriding Stem.length-fraction, but
this doesn't seem to properly handle the notes after the staff switch. On
the main staff it affects all notes (i.e. setting it to 0.5 shortens both
the first and last stem of the beam group).
How can I get similar beams in the ossia and main staves?
I've set stretchability to 0, just to make sure the spacing for both
PianoStaffs is the same.
%% snippet starts
\version "2.24.4"
kneedMelody = \relative {
\clef bass
\voiceOne
%% seems to work only with a non-scaled staff
%\override Stem.length-fraction = #0.5
b8 d \change Staff = "upper" \voiceTwo e g
g8 e \change Staff = "lower" \voiceOne d b
}
\new StaffGroup \with {
\omit SystemStartBracket
\override StaffGrouper.staff-staff-spacing = #'((minimum-distance . 12)
(basic-distance . 12)
(stretchability . 0)
(padding . 1))
}
<<
\new PianoStaff = "ossia" \with {
%% setting the spacing to 2/3 to keep similar proportions
%% is it possible to do this automatically?
\override StaffGrouper.staff-staff-spacing = #'((minimum-distance . 8)
(basic-distance . 8)
(stretchability . 0)
(padding . 0.67))
}
<<
\new Staff = "upper" \with {
\magnifyStaff #2/3
}
\new Staff = "lower" \with {
\magnifyStaff #2/3
} \kneedMelody
>>
\new PianoStaff = "main"
<<
\new Staff = "upper"
\new Staff = "lower" \kneedMelody
>>
>>
%%
Cheers,
Steven