| [Top][Contents] |
LilyPond — Changes
|
This document lists changes and new features in LilyPond version 2.25.12 since 2.24. |
Note: LilyPond releases can contain syntax changes, which may
require modifications in your existing files written for older
versions so that they work in the new version. To upgrade files,
it is strongly recommended to use the convert-ly
tool distributed with LilyPond, which is described in
Updating files with convert-ly. convert-ly can
perform almost all syntax updates automatically. Frescobaldi users can
run convert-ly directly from Frescobaldi using
“Tools > Update with convert-ly…”. Other editing
environments with LilyPond support may provide a way to run
convert-ly graphically.
| Major changes in LilyPond | ||
| New for musical notation | ||
| New for specialist notation | ||
| Miscellaneous improvements |
| [ << Top ] | [Top][Contents] | [ New for musical notation >> ] |
| [ < Top ] | [ Up : Top ] | [ New for musical notation > ] |
Major changes in LilyPond
- Margins are now wider by default following the general layout of
several publishers (and the recommendations of Elaine Gould).
In order to switch back to the previous settings (e.g., to keep the same layout when upgrading an existing score to version 2.25.12), add the following code:
\paper { top-margin = 5\mm bottom-margin = 10\mm top-system-spacing.basic-distance = 1 top-markup-spacing.basic-distance = 0 left-margin = 10\mm right-margin = 10\mm inner-margin = 10\mm outer-margin = 20\mm binding-offset = 0\mm } - Instead of generating PostScript or SVG output by itself, LilyPond
can now use the Cairo library to produce its output. This is
referred to as the ‘Cairo backend’, and can be turned on using
the
-dbackend=cairocommand-line option. This works for all output formats (PDF, SVG, PNG, PostScript), and brings speed and rendering fidelity improvements in SVG output in particular. However, keep in mind that this backend does not yet implement all features of the default backends. Among the features not currently supported are PDF outlines, the-dembed-source-codeoption for PDF, and theoutput-attributesproperty for SVG. - The distances between clefs and time signatures, together with the
distances between clefs and key signatures, are now calculated
differently. As a consequence, you will get better spacing for
extra-wide clefs (like
\clef "GG") or extra-slim clefs (like\clef "petrucci-c3").In the following image, both old and new positions are shown. The percentage gives the width difference of clef plus time signature and clef plus key signature, respectively.
Note that, as before, the widest clef in a staff group determines the horizontal position of all clefs in a system; this means, for example, that a piano score containing a treble and an alto clef doesn’t change at all.
If you want to restore the previous default values for whatever reason, add
\override Staff.Clef.space-alist.time-signature = #'(minimum-space . 3.5) \override Staff.Clef.space-alist.key-cancellation = #'(minimum-space . 3.5) \override Staff.Clef.space-alist.key-signature = #'(minimum-space . 4.2)to your score.
| [ << Major changes in LilyPond ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Major changes in LilyPond ] | [ Up : Top ] | [ Pitches improvements > ] |
New for musical notation
| Pitches improvements | ||
| Rhythm improvements | ||
| Expressive mark improvements | ||
| Repeat improvements | ||
| Editorial annotation improvements | ||
| Text and font improvements |
| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < New for musical notation ] | [ Up : New for musical notation ] | [ Rhythm improvements > ] |
Pitches improvements
| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Pitches improvements ] | [ Up : New for musical notation ] | [ Expressive mark improvements > ] |
Rhythm improvements
- It is now possible to right-align different types of bar lines.
\new StaffGroup << \new Staff { \textMark "default" b1 } \new Staff { b1 \section } >> \new StaffGroup << \new Staff { \textMark "right-aligned" b1 } \new Staff { b1 \override StaffGroup.BarLine.right-justified = ##t \section } >>
- Bar checks (
|) now implicitly create contexts. The developers deem this unlikely to impact real-world scores. Please report a bug if you find a problem without an obvious workaround. - The new option
span-all-note-headsmay be used to make tuplet brackets span all note heads (not just the stems) as recommended by Gould and Ross. - Automatic beam subdivision has been reworked. Previously, many
imperfections could be found in the results of automatic subdivision of
many complex beaming patterns due to overreliance of the value of
baseMoment. Now, LilyPond can correctly subdivide most beaming patterns and no longer uses the value ofbaseMomentto limit beam subdivision. Simply settingsubdivideBeamsto true now automatically subdivides all intervals by default. 3 new properties have been introduced to tune automatic beam subdivision:minimumBeamSubdivisionInterval,maximumBeamSubdivisionIntervalandrespectIncompleteBeams.minimumBeamSubdivisionIntervallimits subdivision intervals the same way as howbaseMomentpreviously did (reducing frequency of subdivided beams).maximumBeamSubdivisionIntervallimits the number of beamlets removed at subdivisions in general.respectIncompleteBeamslimits the number of beamlets at subdivisions where the remaining length would not complete the metric value of the subdivision. SettingminimumBeamSubdivisionIntervalto the value ofbaseMomentat all times, even whenbaseMomentimplicitly changes, preserves old behavior. - New ‘stacked’ flag glyphs are available. All flag elements of a
flag glyph have the same width but are vertically more compact.
Use
\flagStyleStackedto access them; with\flagStyleDefaultyou can switch back to the standard flag style. - The
TimeSignaturestyle'single-digithas been renamed to'single-number.
| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Rhythm improvements ] | [ Up : New for musical notation ] | [ Repeat improvements > ] |
Expressive mark improvements
- Hairpins in the style of Ferneyhough now support al niente circles.
{ \override Hairpin.circled-tip = ##t \override Hairpin.stencil = #flared-hairpin b1\< b\> b\> b2 b\< b2 b\! }
- Two new variant glyphs for breathing signs are available:
‘laltcomma’ and ‘raltcomma’. These glyphs represent the old
shapes of ‘lcomma’ and ‘rcomma’, respectively, before changing
them to more common shapes.
{ \override BreathingSign.text = \markup { \musicglyph "scripts.raltcomma" } f'2 \breathe f' | }
| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Expressive mark improvements ] | [ Up : New for musical notation ] | [ Editorial annotation improvements > ] |
Repeat improvements
-
\repeat voltaalternative endings no longer create invisible bar lines. This may affect line breaking, horizontal spacing, andVoltaBracketextent where an alternative begins or ends without a bar line. In the case of an undesired change, try adding\bar ""or another command that creates aBarLineat that point. - Using the new
printInitialRepeatBarproperty, it is possible to make a start repeat bar line automatically printed even at the beginning of the piece. - The volta number position relative to the the volta bracket can
now be adjusted with the
volta-number-offsetproperty ofVoltaBracket.
| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Repeat improvements ] | [ Up : New for musical notation ] | [ Text and font improvements > ] |
Editorial annotation improvements
-
NoteNamegrobs are now horizontally centered by default.
| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Editorial annotation improvements ] | [ Up : New for musical notation ] | [ New for specialist notation > ] |
Text and font improvements
- A new
\\bar-linemarkup command to print bar lines in text is now available.\markup { \override #'(word-space . 2) \line { Examples \fontsize #-5 \translate-scaled #'(0 . 2) { \bar-line ":|." \bar-line ".|:" \bar-line ";!S!;" \bar-line "]{|}[" } } }
- The syntax for customizing text and music fonts has been changed.
Instead of
\paper { #(define fonts (set-global-fonts #:music "Name of music font" #:brace "Name of music brace font" #:roman "Name of serif font" #:sans "Name of sans-serif font" #:typewriter "Name of typewriter font")) }or
\paper { #(define fonts (make-pango-font-tree "Name of serif font" "Name of sans-serif font" "Name of typewriter font" factor)) }the new syntax is
\paper { property-defaults.fonts.music = "Name of music font" property-defaults.fonts.serif = "Name of serif font" property-defaults.fonts.sans = "Name of sans-serif font" property-defaults.fonts.typewriter = "Name of typewriter font" }Unlike the previous syntax, the new syntax does not interfere with font sizes, which should be set separately using
set-global-staff-sizeorlayout-set-staff-size.There is no
bracekey in the fonts alist; braces glyphs now always default to the music font. However, it is still possible to override this by using an extra font family, as shown in this example (which requires the LilyJAZZ font):\layout { \context { \Score \override SystemStartBrace.fonts.music = "lilyjazz" } } \new PianoStaff << \new Staff { c' } \new Staff { c' } >> \markup \override #'(fonts . ((music . "lilyjazz"))) \left-brace #20Because
fontsis simply a property, it is possible to override it on a per-grob basis, e.g.,\layout { \override Score.SectionLabel.fonts.roman = "Custom font" }This is preferable over the already existing
font-nameproperty, since the latter makes commands such as\boldineffective, instead requiring to include “Bold” in thefont-namestring. Usingfontsdoes not have such effects. - The
\lookupmarkup command can now only be used for braces; for other glyphs, use the\musicglyphcommand. Instead of\lookup, it is also generally recommended to use\left-brace. - In markup, when a music font is used (such as for dynamic markings), a
glyph absent from the music font was previously rendered in a normal
text font. This is no longer the case; a warning about the missing glyph
is output instead. In order to use a text font, use the
\serif,\sansor\typewritermarkup commands. For example:dolceP = #(make-dynamic-script #{ \markup { \serif \normal-weight dolce p } #}) { c'\dolceP }
- Small caps are now achieved by overriding
font-varianttosmall-capsinstead of overridingfont-shapetocaps. Sincefont-shapeis primarily for achieving italics, this change makes it possible to use small caps and italics at the same time. - The
font-seriesproperty is now more flexible and allows to specify values such assemiboldandlightinstead of onlynormalandbold.The
mediumvalue is now an intermediate value betweennormalandboldrather than an equivalent ofnormal. Accordingly, the\mediummarkup command has been renamed to\normal-weight. - The new
font-stretchproperty allows selecting a condensed or expanded font. - The text of a
VoltaBracketgrob, as set by\override Score.VoltaBracket.text = …or\set Score.repeatCommands = …, is no longer automatically typeset in a music font; use the\volta-numbermarkup command on those parts that need to be. For example, convert\set Score.repeatCommands = #'((volta "2, 5"))
to
\set Score.repeatCommands = #`((volta ,#{ \markup { \concat { \volta-number 2 , } \volta-number 5 } #})) - In markup, fingerings (
\markup \finger) and bass figures (\markup \figured-bass) now get scaled along with normal text when using\fontsize.myText = \markup { The fingering \finger { 5-4 } for a \figured-bass { 7 "6\\" } … } \myText \markup\fontsize #6 \myText
The previous behavior can be restored by setting the global variables
legacy-figured-bass-markup-fontsizeandlegacy-finger-markup-fontsizeto true, respectively:#(set! legacy-figured-bass-markup-fontsize #t) #(set! legacy-finger-markup-fontsize #t) myText = \markup { The fingering \finger { 4-5 } for a \figured-bass { 5+ 6 } … } \myText \markup\fontsize #6 \myText
- For best clarity, the
\romanmarkup command has been renamed to\serif. Likewise, to cancel a setting of thefont-familyproperty tosansortypewriter, it should now be set toserif, notroman. - The
\textmarkup command has been removed. Instead, the\serif,\sansor\typewritermarkup commands should be used. These commands used to set the font style only if a normal text font was used (not a musical font, such as for dynamics), but now they both set the font style and make a normal text font used.
| [ << New for musical notation ] | [Top][Contents] | [ Miscellaneous improvements >> ] |
| [ < Text and font improvements ] | [ Up : Top ] | [ Miscellaneous improvements > ] |
New for specialist notation
- For orthogonality with other ancient clefs, five new mensural
clefs are available:
"mensural-f2","mensural-f3","mensural-f4"(same as"mensural-f"),"mensural-f5","mensural-g1","mensural-g2"(same as"mensural-g"). - The default time signature and accidental style in a
PetrucciStaffcontext is now the same as inMensuralStaff. - White mensural ligatures now support some rare ligatures
(semibreves alone or in the middle),
and allow tweaks to show some non-necessary stems.
\score { \relative { \set Score.timing = ##f \set Score.measureBarType = #'() \override NoteHead.style = #'petrucci \override Staff.TimeSignature.style = #'mensural \clef "petrucci-c4" \[ a1 g f e \] \[ a1 g\longa \] \[ \once \override NoteHead.left-down-stem = ##t a\breve b \once \override NoteHead.right-down-stem = ##t g\longa \] \[ \once \override NoteHead.right-down-stem = ##t b\maxima \once \override NoteHead.right-up-stem = ##t g\longa \] } \layout { \context { \Voice \remove Ligature_bracket_engraver \consists Mensural_ligature_engraver } } }
- The use of the gregorian.ly is deprecated. While still
working for backward compatibility, it should be replaced with a
VaticanaScorecontext together with some manual\layoutchanges (if necessary): code like\include "gregorian.ly" \score { \new VaticanaStaff { ... } }should become
\new VaticanaScore { \new VaticanaStaff { ... } } \layout { indent = 0 ragged-last = ##t }
| [ << New for specialist notation ] | [Top][Contents] | [ >> ] |
| [ < New for specialist notation ] | [ Up : Top ] | [ > ] |
Miscellaneous improvements
- Embedding PNG images is now supported using the new
\imagemarkup command. This supplements the existing\epsfilecommand for EPS images.\imageworks for both PNG and EPS images. For EPS images, the difference between using\imageand\epsfileis that\imageadds a white background by default, while\epsfiledoes not. - The new
\qr-codemarkup command inserts a QR code of the specified size for the specified URL. This can be used to link to, e.g., the website of a composer or publisher, the LilyPond source files for the score, recordings, etc.\markup \qr-code #10 "https://lilypond.org"
- A figure-dash glyph (U+2012) and an en-dash glyph (U+2013) have been added to the Emmentaler fonts.
- A figure space (U+2007), a thin space (U+2009), and a hair space (U+200A) have been added to the Emmentaler fonts.
- The
-dinclude-settingsoption can now be given multiple times to include several stylesheets. - In the LaTeX backend of
lilypond-book, all inline images are now vertically shifted. The amount can be controlled globally with command-line option --inline-vshift and locally with an argument to the snippet optioninline. - Two new command-line options -dfirst and -dlast
have been introduced; they are equivalent to setting
showFirstLengthandshowLastLength, respectively, in a LilyPond input file. For example, sayinglilypond -dlast=R1*5 ...
makes LilyPond render only the last five measures (assuming a 4/4 time signature).
- A visual index of all LilyPond graphical objects (grobs) is now available as a manual. This is based on Joram Berger’s work for LilyPond 2.19.
- The printing of arpeggios has been improved, using new, different
default values for the
Arpeggio.positionsproperty. Adjustments of this property must probably be updated. - LilyPond provides support for in-notes, i.e., footnote-like annotations between music systems. This isn’t new (it was actually available since version 2.15.17, published in 2011) but it had some flaws and wasn’t documented until now.
- The
lilysongscript has been removed. Besides lacking any documentation, it hasn’t been maintained for a long time. Additionally, it has been using an external speech synthesis program calledfestival, which is no longer maintained either. - Two new spacing styles are available for the
space-alistgrob property:shrink-spaceandsemi-shrink-space; these spaces only shrink and don’t stretch. They are also used directly in LilyPond, improving the formatting of tightly spaced staves. - The
lilypondbinary has a new command-line option -dstaff-size to set the global staff size, equivalent to settingset-global-staff-sizein a LilyPond input file. - Instead of the functions
\bookOutputNameand\bookOutputSuffixwe now recommend to use the paper variablesoutput-filenameandoutput-suffix(which are not new but stayed undocumented until now). While the former will work unchanged, the latter is more coherent and easier to understand, especially if combined with predefined paper variables. - The
Stem.details.lengthsproperty now also accepts pairs as list elements, allowing to set the length for up and down stems separately. - The
ly:self-alignment-interface::aligned-on-x-parentfunction (used by many grobs to compute the x-offset) now listens to a newPaperColumnproperty calledX-alignment-extent. Set by default, it provides a fallback width for thePaperColumngrob in case it doesn’t contain note heads. This helps align dynamic scripts that are attached to spacer rests, for example.music = \new Staff << { f'2 g'2 } { s4\f s\f s\f s\f } >> \score { \music } \score { \music \layout { \context { \Score \override PaperColumn.X-alignment-extent = ##f } } }
-
BassFigureContinuationgrobs now supporthorizontal-line-spanner-interface; thepaddingproperty has been replaced with the corresponding sub-properties inbound-details. - The
\align-on-othermarkup command now accepts#fas a value for the alignment, indicating a markup’s reference point. - A new function
\withRelativeDiris now available for markup commands that include files, and where such files should be found relative to the input file. Example:\markup { \image #X #3 \withRelativeDir "test.png" } - The positioning of horizontal (analysis) brackets has been
improved; in particular, the
HorizontalBracketgrob now has anoutside-staff-priorityvalue of 800. As a consequence, however, nested horizontal brackets might be positioned differently than before. You can fix this by adjustingoutside-staff-priorityvalues with\tweak(where the outermost bracket should get the highest priority value). - A new Scheme function
to-staff-spaceis provided to convert absolute dimensions (in various units) to staff-space units. Examples:top-markup-spacing.basic-distance = #(to-staff-space 2 'cm) % default unit is pt \markup \override #`(baseline-skip . ,(to-staff-space 20)) \column { foo bar } - Two new markup functions
\abs-hspaceand\abs-vspaceare available to provide absolute dimensions that stay the same regardless of the current staff size. - The data emitted by the command-line option -dshow-available-fonts is now sent to standard output.
- Function
ly:font-config-display-fontsgot an optional argument to select the output port.
For older news, go to https://lilypond.org/doc/v2.22/Documentation/changes/, or go back to the Documentation index.
![[image of music]](35/lily-38f0af9a.png)
![[image of music]](18/lily-24b1d8b3.png)
![[image of music]](a4/lily-31fdb6f3.png)
![[image of music]](7d/lily-bfd64b5a.png)
![[image of music]](48/lily-18dd9b09.png)
![[image of music]](6e/lily-6854be9e.png)
![[image of music]](ae/lily-13254891.png)
![[image of music]](23/lily-68929dc1.png)
![[image of music]](4d/lily-7ef8f66e.png)
![[image of music]](b7/lily-ef389a3a.png)
![[image of music]](97/lily-1761db17.png)
![[image of music]](bc/lily-68759a9b.png)
![[image of music]](9b/lily-ee6bea59.png)
![[image of music]](9d/lily-7878c139.png)
![[image of music]](0b/lily-56eaf92c.png)