On Sun, Jul 7, 2024 at 2:28 PM Dirck Nagy <[email protected]> wrote:
> Hi all
>
> Is there a way to set the default spacing between staves in the \paper
> block?
>
> Or is there a way to do it in a different block?
>
> You know, the way you can set attributes like:
> \paper {
> #(set-paper-size "letter")
>
> system-system-spacing.basic-distance = 20
> markup-markup-spacing.basic-distance = 8
> markup-system-spacing.basic-distance = 36
> last-bottom-spacing.basic-distance = 24
> top-system-spacing.basic-distance = 1
> top-system-spacing.basic-distance = 24
> }
>
> I can't figure out a way to do this globally. I'd like to make templates
> for duos, trios, etc, with a slightly wider default staff - staff spacing.
> (NOT system - system)
>
I think you could use the \layout block with a specific context. You'll
have to use GrandStaff or some other staff container for it to work, though.
%%%
\version "2.24.3"
\layout {
\context {
\GrandStaff
\override StaffGrouper.staff-staff-spacing.padding = 20
}
}
tromboneA= \relative c {
r1 a2 a
}
tromboneB = \relative c {
r1 f2 b
}
tromboneAPart = \new Staff \with {
instrumentName = "I"
} { \clef bass \tromboneA }
tromboneBPart = \new Staff \with {
instrumentName = "II"
} { \clef bass \tromboneB }
\score {
\new GrandStaff <<
\tromboneAPart
\tromboneBPart
>>
}
%%%
--
Knute Snortum