Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
LilyPond wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Generate special note head shapes
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
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 snippet gives an example for a parallelogram-shaped note head. 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>) The commands in <var>command-list</var> resemble PostScript drawing commands but with arguments after the command name. <lilypond version="2.24"> parallelogram = #(ly:make-stencil '(path 0.1 (rmoveto 0 0.25 lineto 1.2 0.75 lineto 1.2 -0.25 lineto 0 -0.75 lineto 0 0.25) round round #t) (cons -0.05 1.25) (cons -.75 .75)) myNoteHeads = \override NoteHead.stencil = \parallelogram normalNoteHeads = \revert NoteHead.stencil \relative c'' { \myNoteHeads g4 d' \normalNoteHeads <f, \tweak stencil \parallelogram b e>4 d } </lilypond> [[Category:Editorial annotations]] [[Category:Scheme]] [[Category:Tweaks and overrides]] [[Category:Included in the official documentation]] [[Category:Snippet]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Issue
(
edit
)
Search
Search
Editing
Generate special note head shapes
Add topic