Generating custom flags: Difference between revisions

Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
The <code>stencil</code> property of the <code>Flag</code> grob can be set to a custom scheme function to generate the glyph for the flag.
The <code>stencil</code> property of the <code>Flag</code> grob can be set to a custom scheme function to generate the glyph for the flag.


<lilypond version="2.24.0">
<lilypond version="2.24">
#(define-public (weight-flag grob)
#(define-public (weight-flag grob)
   (let* ((stem-grob (ly:grob-parent grob X))
   (let* ((stem-grob (ly:grob-parent grob X))