Generate special note head shapes: Difference between revisions

mNo edit summary
Line 1: Line 1:
When a note head with a special shape cannot easily be generated with graphic markup, a drawing specification for <code>ly:make-stencil</code> can be used to generate the shape. This example gives an example for a parallelogram-shaped note head.
When a note head with a special shape cannot easily be generated with graphic markup, a drawing specification for <code>ly:make-stencil</code> can be used to generate the shape. This example gives an example for a parallelogram-shaped note head.


Unfortunately, the available commands in a drawing specification are [https://gitlab.com/lilypond/lilypond/-/issues/6874 currently not documented]; in any case, the used <code>path</code> sub-command has the following signature, quite similar to the <code>make-path-stencil</code> Scheme function.
Unfortunately, the available commands in a drawing specification are currently not documented (this is tracked in {{Issue|6874}}); in any case, the used <code>path</code> sub-command has the following signature, quite similar to the <code>make-path-stencil</code> Scheme function.


  (path <var>thickness</var> <var>command-list</var> <var>line-cap-style</var> <var>line-join-style</var> <var>fill</var>)
  (path <var>thickness</var> <var>command-list</var> <var>line-cap-style</var> <var>line-join-style</var> <var>fill</var>)