lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GrandStaff vertical distance


From: Lukas-Fabian Moser
Subject: Re: GrandStaff vertical distance
Date: Thu, 11 Oct 2018 14:33:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi,

In the meantime, I found another solution for this, but this doesn't appear
to be the easiest way to do it! I used systemStartDelimiterHierarchy instead
which doesn't add any space within a family group. Again, with the LilyPond
exemple, this will give:
[...]
I would be interested if someone find another way to do this... But at
least, this seems to work!
I daresay this might be the best and even the semantically "correct" solution. Note that the brace connecting Violin 1 and Violin 2 does not yield an "instrument" that is used to being held together by a brace (like a piano), but is a mere notational convention. What we really want is, I think, 4-5 staves of strings with equal rights, the first two of which happen to be connected by an additional brace.

But I think your usage of systemStartDelimiterHierarchy is not yet optimal. It can be simplified to
\set StaffGroup.systemStartDelimiterHierarchy = #'((SystemStartBrace a b))

Also, I would not do this via \set, but in a \with block. If you then also put this into a variable, it gets very easy to use:

\version "2.19.80"

firstTwoBraced = \with {
  systemStartDelimiterHierarchy = #'((SystemStartBrace a a))
}

\new StaffGroup \with \firstTwoBraced <<
  \new Staff = "Staff_violinI" \with { instrumentName = #"Violin I" } { a }
  \new Staff = "Staff_violinII" \with { instrumentName = #"Violin II" } { a }
  \new Staff = "Staff_viola" \with { instrumentName = #"Viola" } { a }
  \new Staff = "Staff_cello" \with { instrumentName = #"Cello" } { a }
  \new Staff = "Staff_bass" \with { instrumentName = #"Double Bass" } { a }
>>

With a little bit of scheme, it should even be easy to make this into a function accepting to parameters, indicating that k staves starting with the n'th staff should be braced.

Best
Lukas






reply via email to

[Prev in Thread] Current Thread [Next in Thread]