Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Longa with a long stem
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!
In LilyPond, the longa does not have a stem in the default style. If, for modernized old notation, you want to force a stem to appear and control its length, you can do so by accessing the engraving properties. <lilypond version="2.24"> %--functions mylonga = #(define-music-function (pitch) (ly:pitch?) #{ \tweak Stem.length 9 %exagéré pour l'exemple \tweak Stem.thickness 0.5 % if style mensural ------------ %\once \override Staff.NoteHead.stem-attachment = #'(0.8 . -0.5) %-------------------------------- \once \override Staff.NoteHead.stencil = #ly:text-interface::print \tweak NoteHead.text \markup { % if style mensural -------- % \scale #'(0.5 . 1) %------ \musicglyph "noteheads.sM1neomensural" } $pitch 2*8 #}) %--usage { % \clef "mensural-c2" \time 4/1 \omit Staff.TimeSignature \mylonga g'^"longa long stem" \mylonga c'' \override Staff.NoteHead.style = #'baroque c'\longa^"normal longa" } </lilypond> [[Category:Specific notation]] [[Category:Workaround]] [[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)