1 \input texinfo @c -*- coding: utf-8; mode: texinfo; -*-
2 @setfilename lilypond-changes.info
3 @settitle LilyPond Changes
8 @macro inputfileref{DIR,NAME}
9 @uref{../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
11 @macro usermanref{NAME}
12 @inforef{\NAME\,,../user/lilypond/lilypond}@c
17 @macro inputfileref{DIR,NAME}
20 @macro usermanref{NAME}
21 See user manual, \NAME\
25 @macro textanchor{NAME}
32 @documentencoding utf-8
39 @top New features in 2.20 since 2.18
41 @allowcodebreaks false
49 * add new items at the top
51 * only show verbatim input for syntax/input changes
53 * try to be as brief possible in those cases
55 * don't try to provide real-world examples, they often get too big,
56 which scares away people.
58 * Write complete sentences.
60 * only show user-visible changes.
65 It is now possible to override the @code{text} property of
68 @lilypond[verbatim,fragment,quote]
70 \new ChordNames \chordmode {
72 \once \override ChordName.text = #"foo"
79 Improved horizontal alignment when using @code{TextScript},
80 with @code{DynamicText} or @code{LyricText}.
83 A new command @code{\magnifyStaff} has been added which scales staff
84 sizes, staff lines, bar lines, beamlets and horizontal spacing generally
85 at the @code{Staff} context level. Staff lines are prevented from being
86 scaled smaller than the default since the thickness of stems, slurs, and
87 the like are all based on the staff line thickness.
90 @code{InstrumentName} now supports @code{text-interface}.
93 There is now support for controlling the @q{expression level} of
94 MIDI channels using the @code{Staff.midiExpression} context property.
95 This can be used to alter the perceived volume of even sustained notes
96 (albeit in a very @q{low-level} way) and accepts a number value between
97 @code{0.0} and @code{1.0}.
102 midiExpression = #0.6
103 midiInstrument = #"clarinet"
108 \set Staff.midiExpression = #0.7 s4\f\<
109 \set Staff.midiExpression = #0.8 s4
110 \set Staff.midiExpression = #0.9 s4
111 \set Staff.midiExpression = #1.0 s4
113 \set Staff.midiExpression = #0.9 s4\>
114 \set Staff.midiExpression = #0.8 s4
115 \set Staff.midiExpression = #0.7 s4
116 \set Staff.midiExpression = #0.6 s4\!
124 Support for making it easier to use alternative @q{music} fonts other
125 than the default Emmentaler in LilyPond has been added. See
126 @uref{http://fonts.openlilylib.org/} for more information.
129 Grobs and their parents can now be aligned separately allowing
130 more flexibility for grob positions. For example the @q{left} edge of a
131 grob can now be aligned on the @q{center} of its parent.
134 Improvements to the @code{\partial} command have been made to
135 avoid problems when using multiple, parallel contexts.
137 @item @code{\chordmode} can now use @code{< >} and @code{<< >>}
141 The @code{NullVoice} context is now @q{below} @code{Score}.
144 A new command @code{\tagGroup} has now been added. This compliments
145 the existing @code{\keepWithTag} and @code{\removeWithTag} commands.
149 \tagGroup #'(violinI violinII viola cello)
152 declares a list of @q{tags} that belong to a single @q{tag group}.
155 \keepwithTag#'violinI
158 Is now only concerned with @q{tags} from @q{violinI}’s tag group.
160 Any element of the included music tagged with one or more tags from the
161 group, but @emph{not} with @var{violinI}, will be removed.
164 The @code{\addlyrics} function now works with arbitrary contexts
165 incuding @code{Staff}.
168 The @code{thin-kern} property of the @code{BarLine} grob has been
169 renamed to @code{segno-kern}.
172 @code{KeyCancellation} grobs now ignore cue clefs (like
173 @code{KeySignature} grobs do).
176 Add support for @code{\once@tie{}\unset}
179 It is now possible to individually color both the dots and parentheses
180 in fret diagrams when using the @code{\fret-diagram-verbose} markup
183 @lilypond[verbatim,quote,relative=1]
186 \override #'(fret-diagram-details . (
187 (finger-code . in-dot))) {
188 \fret-diagram-verbose #'((mute 6)
189 (place-fret 5 3 1 red)
190 (place-fret 4 5 2 inverted)
191 (place-fret 3 5 3 green)
192 (place-fret 2 5 4 blue inverted)
193 (place-fret 1 3 1 violet)
198 \override #'(fret-diagram-details . (
199 (finger-code . below-string))) {
200 \fret-diagram-verbose #'((mute 6)
201 (place-fret 5 3 1 red parenthesized)
202 (place-fret 4 5 2 yellow
205 (place-fret 3 5 3 green)
206 (place-fret 2 5 4 blue )
215 Two new properties have been added for use in
216 @code{fret-diagram-details} when using the @code{\fret-diagram-verbose}
217 markup command; @code{fret-label-horizontal-offset} which affects the
218 @code{fret-label-indication} and @code{paren-padding} which controls the
219 space between the dot and the parentheses surrounding it.
221 @lilypond[verbatim,quote,relative=1]
224 \fret-diagram-verbose #'((mute 6)
228 (place-fret 1 6 4 parenthesized)
233 \override #'(fret-diagram-details . (
234 (fret-label-horizontal-offset . 2)
235 (paren-padding . 0.25))) {
236 \fret-diagram-verbose #'((mute 6)
240 (place-fret 1 6 4 parenthesized)
249 A new markup command @code{\justify-line} has been added. Similar to
250 the @code{\fill-line} markup command except that instead of setting
251 @emph{words} in columns, the @code{\justify-line} command balances the
252 whitespace between them ensuring that when there are three or more
253 words in a markup, the whitespace is always consistent.
255 @lilypond[quote,verbatim,papersize=a6]
256 \markup \fill-line {oooooo oooooo oooooo oooooo}
257 \markup \fill-line {ooooooooo oooooooo oo ooo}
260 @lilypond[quote,verbatim,papersize=a6]
261 \markup \justify-line {oooooo oooooo oooooo oooooo}
262 \markup \justify-line {ooooooooo oooooooo oo ooo}
266 A new command @code{\magnifyMusic} has been added, which allows
267 the notation size to be changed without changing the staff size,
268 while automatically scaling stems, beams, and horizontal spacing.
270 @lilypond[verbatim,quote]
272 \new Voice \relative {
274 <e' e'>4 <f f'>8. <g g'>16 <f f'>8 <e e'>4 r8
276 \new Voice \relative {
279 \override Score.SpacingSpanner.spacing-increment = #(* 1.2 0.63)
280 r32 c'' a c a c a c r c a c a c a c
281 r c a c a c a c a c a c a c a c
288 A new flexible template suitable for a range of choral music, is now
289 provided. This may be used to create simple choral music, with or
290 without piano accompaniment, in two or four staves. Unlike other
291 templates, this template is @q{built-in}, which means it does not
292 need to be copied and edited: instead it is simply @code{\include}'d
293 in the input file. For details, see @rlearning{Built-in templates}.
296 The positioning of tuplet numbers for kneed beams has been significantly
297 improved. Previously, tuplet numbers were placed according to the
298 position of the tuplet bracket, even if it was not printed. This could
299 lead to stranded tuplet numbers. Now they are now positioned
300 closer to the kneed-beam when an appropriate beam segment exists for its
301 placement and when the the bracket is not drawn.
303 Collision detection is also added, offsetting horizontally if too close
304 to an adjoining note column but preserving the number's vertical
305 distance from the kneed beam. If the number itself is too large to
306 fit in the available space the original, bracket-based, positioning
307 system is used instead; and in the event of a collision (e.g. with an
308 accidental) the tuplet number is moved vertically away instead.
310 @lilypond[verbatim,fragment,quote,relative=1]
312 \override Beam.auto-knee-gap = 3
321 The original kneed-beam tuplet behavior is still available through an
322 @code{\override} via a new, @code{knee-to-beam} property.
324 @lilypond[verbatim,fragment,quote,relative=1]
326 \override Beam.auto-knee-gap = 3
327 \override TupletNumber.knee-to-beam = ##f
336 @code{\lyricsto} and @code{\addLyrics} have been @q{harmonized}. Both
337 now accept the same kind of delimited argument list that @code{\lyrics}
338 and @code{\chords} accept. Backward compatibility has been added so
339 music identifiers (i.e. @code{\mus}) are permitted as arguments. A
340 @code{convert-ly} rule has been added that removes redundant uses of
341 @code{\lyricmode} and rearranges combinations with context starters such
342 that @code{\lyricsto} in general is applied last (i.e. like
343 @code{\lyricmode} would be).
346 Scheme functions and identifiers can now be used as output definitions.
349 Scheme expressions can now be used as chord constituents.
352 Improved visual spacing of small and regular @q{MI} Funk and Walker
353 noteheads so they are now the same width as other shaped notes in
354 their respective sets. @code{SOL} noteheads are also now visually
355 improved when used with both the normal Aiken and Sacred Harp heads, as
356 well as with the thin variants.
359 @code{LeftEdge} now has a definable @code{Y-extent} (i.e.vertical). See
360 @rinternals{LeftEdge}.
363 Added a new @code{make-path-stencil} function that supports all
364 @code{path} commands both relative and absolute:
366 @code{lineto}, @code{rlineto}, @code{curveto}, @code{rcurveto},
367 @code{moveto}, @code{rmoveto}, @code{closepath}. The function also
368 supports @q{single-letter} syntax used in standard SVG path commands:
370 @code{L}, @code{l}, @code{C}, @code{c}, @code{M}, @code{m}, @code{Z} and
371 @code{z}. The new command is also backward-compatible with the original
372 @code{make-connected-path-stencil} function. Also see
373 @file{scm/stencil.scm}.
376 Context properties named in the @samp{alternativeRestores} property are
377 restored to their value at the start of the @emph{first} alternative in
378 all subsequent alternatives.
380 Currently the default set restores @q{current meter};
382 @lilypond[verbatim,fragment,quote,relative=2]
384 \repeat volta 2 { c2 e4 | }
393 @q{measure position};
395 @lilypond[verbatim,fragment,quote,relative=2]
397 \repeat volta 2 { c2 e4 | }
400 \set Timing.measurePosition = #(ly:make-moment -1/2)
408 and @q{chord changes};
410 @lilypond[verbatim,fragment,quote]
413 \set chordChanges = ##t
414 \chordmode { c1:m d:m c:m d:m }
417 \repeat volta 2 { \chordmode { c1:m } }
419 { \chordmode { d:m } }
420 { \chordmode { c:m } }
428 Improved MIDI output for breathe marks. After tied notes, breaths take
429 time @emph{only} from the last note of the tie; e.g.
430 @code{@{ c4~ c8 \breathe @}} performs as @code{@{ c4~ c16 r @}} instead
431 of @code{@{ c4 r8 @}}. This is more consistent with articulations and
432 how humans interpret breaths after ties. It now also makes it easier to
433 align simultaneous breathe marks over multiple parts, all with different
437 A new note head style for Tabulature has been added;
438 @code{TabNoteHead.style = #'slash}.
441 Four new Clef glyphs have been added @emph{Double G}, @emph{Tenor G},
442 @emph{Varpercussion} and @emph{varC} and their related tessitura.
443 @lilypond[verbatim,quote,fragment]
444 \override Staff.Clef.full-size-change = ##t
447 \clef "tenorG" c c c c
449 \clef "altovarC" c c c c
450 \clef "tenorvarC" c c c c
451 \clef "baritonevarC" c c c c
452 \clef "varpercussion" c c c c
455 \override Staff.Clef.full-size-change = ##f
458 \clef "tenorG" c c c c
460 \clef "altovarC" c c c c
461 \clef "tenorvarC" c c c c
462 \clef "baritonevarC" c c c
463 \clef "varpercussion" c c c c
467 Isolated durations in music sequences now stand for unpitched
468 notes. This may be useful for specifying rhythms to music or
469 scheme functions. When encountered in the final score, the
470 pitches are provided by the preceding note or chord. Here are two
471 examples where this makes for readable input:
473 @lilypond[verbatim,quote]
474 \new DrumStaff \with { \override StaffSymbol.line-count = 1 }
477 tambourine 8 \tuplet 3/2 { 16 16 16 }
478 8 \tuplet 3/2 { 16 16 16 } 8 8 |
482 @lilypond[verbatim,quote]
483 \new Staff { r16 c'16 ~ 8 ~ 4 ~ 2 | }
487 Beaming exceptions can now be constructed using the
488 @code{\beamExceptions} scheme function. One can now write
490 @lilypond[verbatim,quote,relative=1]
492 \set Timing.beamExceptions =
493 \beamExceptions { 32[ 32] 32[ 32] 32[ 32] }
495 \repeat unfold 6 { c32 } |
499 with multiple exceptions separated with @code{|} bar checks
500 (writing the exception pattern without pitches is convenient but
501 not mandatory). Previously, setting the beam exceptions would
502 have required writing
505 \set Timing.beamExceptions =
507 (end . ;entry for end of beams
508 ( ;start of alist of end points
509 ((1 . 32) . (2 2 2)) ;rule for 1/32 beams -- end each 1/16
514 The most common articulations are now reflected in MIDI output.
515 Accent and marcato make notes louder; staccato, staccatissimo and
516 portato make them shorter. Breath marks shorten the previous
519 This behavior is customizable through the @code{midiLength} and
520 @code{midiExtraVelocity} properties on @code{ArticulationEvent}.
521 See @file{script-init.ly} for examples.
524 The PostScript functionality of stroke adjustment is no longer
525 applied automatically but left to the discretion of the PostScript
526 device (by default, Ghostscript uses it for resolutions up to
527 150dpi when generating raster images). When it is enabled, a more
528 complex drawing algorithm designed to benefit from stroke
529 adjustment is employed mostly for stems and bar lines.
531 Stroke adjustment can be forced by specifying the command line
532 option @samp{-dstrokeadjust} to LilyPond. When generating
533 @code{PDF} files, this will usually result in markedly better
534 looking @code{PDF} previews but significantly larger file size.
535 Print quality at high resolutions will be unaffected.
540 For older news, go to
541 @uref{http://lilypond.org/doc/v2.18/Documentation/changes/},
542 @uref{http://lilypond.org/doc/v2.16/Documentation/changes/},
543 or @uref{../,go back} to the Documentation index.