Menu

#471 explicitKeySignatureVisibility shouldn't be necessary here

Accepted
nobody
None
Enhancement
2015-09-16
2007-09-14
Anonymous
No

Originally created by: *anonymous

Originally created by: gpermus@gmail.com
Originally owned by: percival.music.ca@gmail.com

The setting of Staff.explicitKeySignatureVisibility shouldn't be necessary in the following example:

:::TeX
\version "2.11.32"
\score {
  \new StaffGroup \relative c'' {
    \new Staff
    \key f \major
    c1 c^"Unwanted extra space" \break
    <<
      { c1 c }
      \new Staff {
        \key f \major
        c1 c
      }
    >>
    c1 c^"Fixed here" \break
    <<
      { c1 c }
      \new Staff {
        \once\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
        \key f \major
        c1 c
      }
    >>
  }
}

Related

Issues: #4263

Discussion

  • Google Importer

    Google Importer - 2009-11-12

    Originally posted by: reinhold...@gmail.com

    In 2.12 and 2.13.7, I can't see any different with and without the \once\set...
    What's the issue exactly?

    Owner: percival.music.ca

     
  • Google Importer

    Google Importer - 2009-11-12

    Originally posted by: percival.music.ca@gmail.com

    Great example of the badness of having no attached png!  :(

    I _think_ the problem is the very right-hand side of the staff.  In current git, the first line has extra staff lines on the right side; the second line doesn't.  png attached.

     

    Last edit: Simon Albrecht 2015-09-16
  • Google Importer

    Google Importer - 2011-07-22

    Originally posted by: reinhold...@gmail.com

    The problem is the second staff, which starts right after the line break. This means that the key signature setting for the lower staff happens before the third measure, i.e. at a line break. Thus lilypond creates a key signature at the end of the line and at the beginning of the new line. The staff in the first system will be killed, however, but the key signature grob already had its effect on horizontal spacing.

     
  • Simon Albrecht

    Simon Albrecht - 2015-09-16
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,32 +3,32 @@
     *Originally created by:* [gpermus@gmail.com](http://code.google.com/u/gpermus@gmail.com/)
     *Originally owned by:* [percival.music.ca@gmail.com](http://code.google.com/u/percival.music.ca@gmail.com/)
    
    -%\{
    -The setting of Staff.explicitKeySignatureVisibility shouldn't be
    -necessary in the following example:
    -%\}
    +The setting of Staff.explicitKeySignatureVisibility shouldn't be necessary in the following example:
    
    -
    +~~~~
    +:::TeX
     \version "2.11.32"
    -\score \{
    - \new StaffGroup \relative c''\{
    -&nbsp;&nbsp; \new Staff
    -&nbsp;&nbsp; \key f \major
    -&nbsp;&nbsp; c1 c^"Unwanted extra space" \break
    -&nbsp;&nbsp; &lt;&lt; \{ c1 c \}
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \new Staff \{
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \key f \major
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c1 c
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \}
    -&nbsp;&nbsp; &gt;&gt;
    -&nbsp;&nbsp; c1 c^"Fixed here" \break
    -&nbsp;&nbsp; &lt;&lt; \{ c1 c \}
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \new Staff \{
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \once \set Staff.explicitKeySignatureVisibility =
    -\#end-of-line-invisible
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \key f \major
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c1 c
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \}
    -&nbsp;&nbsp; &gt;&gt;
    - \}
    -\}
    +\score {
    +  \new StaffGroup \relative c'' {
    +    \new Staff
    +    \key f \major
    +    c1 c^"Unwanted extra space" \break
    +    <<
    +      { c1 c }
    +      \new Staff {
    +        \key f \major
    +        c1 c
    +      }
    +    >>
    +    c1 c^"Fixed here" \break
    +    <<
    +      { c1 c }
    +      \new Staff {
    +        \once\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
    +        \key f \major
    +        c1 c
    +      }
    +    >>
    +  }
    +}
    +~~~~
    
    • Needs: -->
    • Patch: -->
     
  • Simon Albrecht

    Simon Albrecht - 2015-09-16