Menu

#4691 Dynamics attached to spacer rests mess up stems with cross-staff kneed beams

Accepted
nobody
None
Defect
2020-03-22
2015-12-11
No

Gilberto Agostinho wrote :

Here is a bizarre little bug I came across today: for some reason, an invisible rest on a different Staff seems to affect the kneed beamed stems on a PianoStaff when using \autochange. See:

:::TeX
\version "2.19.28"

A = { c'''16[ c''' c''' c] }

B = { s4\p }

C = { r4\p }

<<
  \new PianoStaff \autochange \A
  \new Staff \B
>>

<<
  \new PianoStaff \autochange \A
  \new Staff \C
>>

Output attached.

3 Attachments

Discussion

  • Valentin Villenave

    • summary: autochange vs. invisible rest --> Dynamics attached to spacer rests mess up stems with cross-staff kneed beams
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
     4691.png (21.5 kB; image/png)
    +test1.png (13.0 kB; image/png)
    +test2.png (10.2 kB; image/png)
    
     
  • Valentin Villenave

    Actually, you don’t even need \autoChange to reproduce the bug:

    <<
      \new Staff {
        c'''16[ c''' c''' \change Staff = "z" c']
      }
      \new Staff = "z" { s4\p }
    >>
    

    Not only is the beam messed up, the Stem is misaligned as well:

    <<
      \new Staff {
        c'''8[ \change Staff = "z" c']
      }
      \new Staff = "z" { s4\p }
    >>
    

    This produces a whole lot of errors and warnings:

    programming error: Grob direction requested while calculation in progress.
    warning: no viable initial configuration found: may not find good beam slope
    programming error: No viable beam quanting found.  Using unquanted y value.
    warning: weird stem size, check for narrow beams
    warning: Not drawing a box with negative dimension
    

    (Reproduced with 2.21.0)

     

    Last edit: Valentin Villenave 2020-03-22