Re: Disable extra space around StaffGroup?

2018-02-21 Thread Nathan Sprangers
Hi Torsten,

Thank you, that makes so much sense now. I was definitely struggling to
understand how the various spacing settings work together, especially
between VerticalAxisGroup and StaffGrouper.

Thanks,
Nathan

On Wed, Feb 21, 2018 at 5:49 AM, Torsten Hämmerle 
wrote:

> Nathan Sprangers wrote
> > If it helps, my interest is in creating band scores, which usually place
> > an
> > extra bracket or brace around certain families (such as the clarinets,
> > cornets, etc in Holst's First Suite for Military Band
> > http://imslp.org/wiki/First_Suite_for_Military_Band,
> _Op.28_No.1_(Holst,_Gustav)),
> > but there is typically no extra space around these staff groups.
>
>
> Hi Nathan,
>
> Concerning the spacing "around" staff-groups:
> By default, LilyPond tries to keep staff-groups closer together in general.
> When stretching has to be applied this becomes particularly obvious.
>
> As in Holst's example (Military Band, i.e. Wind Band), it is common to have
> uniform vertical spacing just ignoring groups or sub-groups.
>
> This can be achieved fairly easy:
> By setting VerticalAxisGroup.staff-staff-spacing of \Staff (a single
> stand-alone stave, the lowest level in grouping hierarchy) to the values
> found in the staff-grouper (in my example, I've used the default values).
>
> \layout {
>   \context {
> \Staff
> \override VerticalAxisGroup.staff-staff-spacing =
>   #'((bavsic-distance . 9)
> (minimum-distance . 7)
> (padding . 1)
> (stretchability . 5))
>   }
> }
>
> If set, these values will be automatically used even within different
> groups
> in the hierarchy.
> Background: VerticalAxisGroup.staff-staff-spacing is *not* specified by
> default and do by default, the spacing values will be "inherited" depending
> on the level of hierarchy.
>
>
> To demonstrate this, I've chosen a very small global-staff-size and
> deliberately forced stretching. Using Acrobat Reader's measuring feature,
> I've marked the gaps between the staves (see attached PDF).
>
> *Default vertical spacing* - vertical spacing between groups differs
> depending on grouping level.
> test-uniform-vertical-spacing-default.pdf
>  uniform-vertical-spacing-default.pdf>
>
> *Uniform vertical spacing* by explicitly setting
> Staff.VerticalAxisGroup.staff-staff-spacing
> test-uniform-vertical-spacing-proof.pdf
>  uniform-vertical-spacing-proof.pdf>
>
> In the second example, applying the layout changes just on in the \Staff
> context, there is absolutely the same vertical distance between all staves,
> ignoring any grouping.
>
> Cheerio,
> Torsten
>
>
>
>
>
>
> --
> Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Disable extra space around StaffGroup?

2018-02-21 Thread Torsten Hämmerle
Nathan Sprangers wrote
> If it helps, my interest is in creating band scores, which usually place
> an
> extra bracket or brace around certain families (such as the clarinets,
> cornets, etc in Holst's First Suite for Military Band
> http://imslp.org/wiki/First_Suite_for_Military_Band,_Op.28_No.1_(Holst,_Gustav)),
> but there is typically no extra space around these staff groups.


Hi Nathan,

Concerning the spacing "around" staff-groups:
By default, LilyPond tries to keep staff-groups closer together in general.
When stretching has to be applied this becomes particularly obvious.

As in Holst's example (Military Band, i.e. Wind Band), it is common to have
uniform vertical spacing just ignoring groups or sub-groups.

This can be achieved fairly easy:
By setting VerticalAxisGroup.staff-staff-spacing of \Staff (a single
stand-alone stave, the lowest level in grouping hierarchy) to the values
found in the staff-grouper (in my example, I've used the default values).

\layout {
  \context {
\Staff
\override VerticalAxisGroup.staff-staff-spacing =
  #'((bavsic-distance . 9) 
(minimum-distance . 7) 
(padding . 1) 
(stretchability . 5))
  }
}

If set, these values will be automatically used even within different groups
in the hierarchy.
Background: VerticalAxisGroup.staff-staff-spacing is *not* specified by
default and do by default, the spacing values will be "inherited" depending
on the level of hierarchy.


To demonstrate this, I've chosen a very small global-staff-size and
deliberately forced stretching. Using Acrobat Reader's measuring feature,
I've marked the gaps between the staves (see attached PDF).

*Default vertical spacing* - vertical spacing between groups differs
depending on grouping level.
test-uniform-vertical-spacing-default.pdf

  

*Uniform vertical spacing* by explicitly setting
Staff.VerticalAxisGroup.staff-staff-spacing
test-uniform-vertical-spacing-proof.pdf

  

In the second example, applying the layout changes just on in the \Staff
context, there is absolutely the same vertical distance between all staves,
ignoring any grouping.

Cheerio,
Torsten






--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Disable extra space around StaffGroup?

2018-02-20 Thread Kieren MacMillan
Hi again,

Here's another example, with interspersed single Staff contexts.
I can’t find any "extra space" above the groups…?

Best,
Kieren.

%%%  SNIPPET BEGINS
\version "2.18.2"

\paper {
  top-margin = 0
  top-system-spacing =
  #'((basic-distance . 0) (minimum-distance . 0) (padding . 0) 
(stretchability . 0))
}

\layout {
  \context {
\Score
\override VerticalAxisGroup.staff-staff-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0) 
(stretchability . 0))
\override VerticalAxisGroup.default-staff-staff-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0) 
(stretchability . 0))
  }
  \context {
\StaffGroup
\override VerticalAxisGroup.staff-staff-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0) 
(stretchability . 0))
  }
}

\score {
  <<
\new StaffGroup <<
  \new Staff << c''1 >>
  \new Staff << c''1 >>
>>
\new Staff << c''1 >>
\new StaffGroup <<
  \new Staff << c''1 >>
  \new Staff << c''1 >>
>>
\new Staff << c''1 >>
\new Staff << c''1 >>
  >>
}
%%%  SNIPPET ENDS


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Disable extra space around StaffGroup?

2018-02-20 Thread Kieren MacMillan
Hi Nathan,

Can you tell me where the "extra space" is around these StaffGroups?

\version "2.18.2"

\paper {
  top-margin = 0
  top-system-spacing =
  #'((basic-distance . 0) (minimum-distance . 0) (padding . 0) 
(stretchability . 0))
}

\layout {
  \context {
\StaffGroup
\override VerticalAxisGroup.staff-staff-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0) 
(stretchability . 0))
  }
}

\score {
  <<
\new StaffGroup <<
  \new Staff << c''1 >>
  \new Staff << c''1 >>
>>
\new StaffGroup <<
  \new Staff << c''1 >>
  \new Staff << c''1 >>
>>
  >>
}

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Disable extra space around StaffGroup?

2018-02-20 Thread Nathan Sprangers
Hi Ben,

Thanks for the link, that might work for me. Do you happen to know, does
lilypond modify these parameters of the previous staff when it sees '\new
StaffGroup'?

If it helps, my interest is in creating band scores, which usually place an
extra bracket or brace around certain families (such as the clarinets,
cornets, etc in Holst's First Suite for Military Band
),
but there is typically no extra space around these staff groups.

Thanks,
Nathan

On Tue, Feb 20, 2018 at 12:43 PM, Ben  wrote:

> On 2/20/2018 12:24 PM, Nathan Sprangers wrote:
>
> Hi,
>
> The spacing settings I've found so far all relate to the space after a
> staff our staff group, but lilypond creates extra space above a staff group
> as well. Is there an engraver or something that can be turned off to
> disable this? I'd like to be able to keep all the other features of a staff
> group.
>
> Thank you,
> Nathan Sprangers
>
>
>
> Hi Nathan,
>
> Perhaps this thread could be of help?
>
> http://lilypond.1069038.n5.nabble.com/controlling-the-
> spacing-above-a-context-td162071.html
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Disable extra space around StaffGroup?

2018-02-20 Thread Ben

On 2/20/2018 12:24 PM, Nathan Sprangers wrote:

Hi,

The spacing settings I've found so far all relate to the space after a 
staff our staff group, but lilypond creates extra space above a staff 
group as well. Is there an engraver or something that can be turned 
off to disable this? I'd like to be able to keep all the other 
features of a staff group.


Thank you,
Nathan Sprangers




Hi Nathan,

Perhaps this thread could be of help?

http://lilypond.1069038.n5.nabble.com/controlling-the-spacing-above-a-context-td162071.html


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Disable extra space around StaffGroup?

2018-02-20 Thread Nathan Sprangers
Hi,

The spacing settings I've found so far all relate to the space after a
staff our staff group, but lilypond creates extra space above a staff group
as well. Is there an engraver or something that can be turned off to
disable this? I'd like to be able to keep all the other features of a staff
group.

Thank you,
Nathan Sprangers
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user