Menu

#2965 mid-bar \newSpacingSection leads to collisions

Accepted
nobody
None
Defect
2019-09-28
2012-11-17
Anonymous
No

Originally created by: *anonymous

Originally created by: Elu...@gmail.com

LilyPond forces 20 measures on one line so that the dot of the first note runs into the following note:

\relative c' {
  \override Score.SpacingSpanner #'packed-spacing = ##t
  \repeat unfold 20 { c2. \newSpacingSection e4 }
}

(not sure if this is how \newSpacingSection should be applied, though)

2 Attachments

Discussion

  • Google Importer

    Google Importer - 2012-12-20

    Originally posted by: aleksandr.andreev@gmail.com

    Actually, looks like \newSpacingSection has nothing to do with this.

    Try the following code:

    \relative c' {
      \override Score.SpacingSpanner #'packed-spacing = ##t
      \repeat unfold  14 { c2. e8  e8 }
    }

     
  • Google Importer

    Google Importer - 2012-12-20

    Originally posted by: aleksandr.andreev@gmail.com

    One more example:

    \relative c' {
      \override Score.SpacingSpanner #'packed-spacing = ##t
      \repeat unfold  10 {c4  c4. d4 e8 }
    }

     
  • Simon Albrecht

    Simon Albrecht - 2019-09-28
    • summary: packed-spacing and \newSpacingSection lead to collision of dots and notes --> mid-bar \newSpacingSection leads to collisions
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,9 +4,12 @@
    
     LilyPond forces 20 measures on one line so that the dot of the first note runs into the following note:
    
    -\relative c' \{
    -  \override Score.SpacingSpanner \#'packed-spacing = \#\#t
    -  \repeat unfold  20 \{ c2. \newSpacingSection e4 \}
    -\}
    +~~~~
    +:::TeX
    +\relative c' {
    +  \override Score.SpacingSpanner #'packed-spacing = ##t
    +  \repeat unfold 20 { c2. \newSpacingSection e4 }
    +}
    +~~~~
    
    -\(not sure if this is how \newSpacingSection should be applied, though\)
    +(not sure if this is how \newSpacingSection should be applied, though)
    
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1,2 @@
    +extra.png (8.2 kB; image/png)
    +original.png (1.6 kB; image/png)
    
    • Needs: -->
    • Patch: -->
     
  • Simon Albrecht

    Simon Albrecht - 2019-09-28

    The two examples added by Alexander work perfectly fine with 2.19.83.
    The original example still shows the bug:

    \version "2.19.83"
    \relative c' {
      \override Score.SpacingSpanner.packed-spacing = ##t
      \repeat unfold 20 { c2. \newSpacingSection e4 }
    }
    

    (see original.png)

    But as this example shows, packed-spacing isn’t at the core of the problem, but any mid-bar use of \newSpacingSection will disable some collision control:

    \version "2.19.83"
    \relative {
      \accidentalStyle forget
      <cis' eis gis cis>2  \newSpacingSection  q
      s4. g'8  \newSpacingSection  <c d f>2
    }
    

    (see extra.png)