Displaying all grob properties and their actual values: Difference between revisions

No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Sometimes you may want to know all properties and their values for a certain grob. The here provided function is a possibility. ''Afaict, following comment is not true (any more?), will delete soon --Harm:'' Known limitation: it doesn't work for NoteHead. The output is like:
Sometimes you may want to know all properties and their values for a certain grob. The here provided function is a possibility. ''Afaict, following comment is not true (any more?), will delete soon --Harm:'' Known limitation: it doesn't work for NoteHead. The output (written to stdout) is something like the following.


<code> </code>
#<Grob ChordName >:
 
Grob ChordName:
GROB-INTERFACE
 
GROB-INTERFACE
        X-extent:
 
        (0.0 . 5.087352755905512)
...(shortened)
        ...
 
CHORD-NAME-INTERFACE
...
 
begin-of-line-visible:
CHORD-NAME-INTERFACE
 
()
        begin-of-line-visible:
 
        ()
FONT-INTERFACE
 
FONT-INTERFACE
font:
 
        font:
()
        ((typewriter . LilyPond Monospace) (sans . LilyPond Sans Serif) ...)
 
        font-encoding:
font-encoding:
        ()
 
        ...
()
 
...
font-family:
 
sans
 
font-name:
 
()
 
font-series:
 
()
 
font-shape:
 
()
 
font-size:
 
1.5
 
ITEM-INTERFACE
 
break-visibility:
 
()
 
extra-spacing-height:
 
(0.2 . -0.2)
 
extra-spacing-width:
 
(-0.5 . 0.5)
 
non-musical:
 
()
 
RHYTHMIC-GROB-INTERFACE
 
TEXT-INTERFACE
 
baseline-skip:
 
()
 
replacement-alist:
 
()
 
text:
 
... (shortened)
 
word-space:
 
0.0
 
text-direction:
 
()


for this coding: <code> \new ChordNames \chordmode { \grobPropertiesInfo #'ChordName c1:m7 } </code>
for the example below.


<lilypond version="2.24">
<lilypond version="2.24">
Line 127: Line 66:


[[Category:Scheme]]
[[Category:Scheme]]
[[Category:Tweaks and overrides]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]