bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Something wrong/strange about flags?


From: Thomas Morley
Subject: Something wrong/strange about flags?
Date: Sun, 25 Dec 2011 23:27:32 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]