Hi,

while manipulating stems, flags and beams I noticed something strange
about flags:

\version "2.15.20"

displayGrob =
        \once \override Stem #'after-line-breaking =
        #(lambda (grob)
          (let* ((beam (ly:grob-object grob 'beam))
                 (flag (ly:grob-object grob 'flag)))
        
          (begin
            (display beam)
            (display flag)
            (newline))))
        
{ \displayGrob c'8 }

{ \displayGrob c'8[ d'] }

The first example displays: ()#<Grob Flag > (as expected, no Beam, but a flag)
The second displays: #<Grob Beam >#<Grob Item >

1. IR 3.2.109 stem-interface states: "flag (graphical (layout) object)
 A pointer to a Flag object."
    I would have expected: () (there is no flag!)
2. AFAIK a Grob "Item" doesn't exist. IR 3.2.49 item-interface states
only that there is a subtype of grobs called Item.


Cheers,
  Harm

_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to