1 \input texinfo @c -*- coding: utf-8; mode: texinfo; -*-
6 @macro inputfileref{DIR,NAME}
7 @uref{../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
9 @macro usermanref{NAME}
10 @inforef{\NAME\,,../user/lilypond/lilypond}@c
15 @macro inputfileref{DIR,NAME}
18 @macro usermanref{NAME}
19 See user manual, \NAME\
24 @macro textanchor{NAME}
31 @documentencoding utf-8
38 @unnumbered New features in 2.7 since 2.6
41 This document is also available in @uref{NEWS.pdf,PDF}. It's part of
42 the @uref{../,LilyPond Documentation}
54 * only show verbatim input for syntax/input changes
56 * try to be as brief possible in those cases
58 * don't try to provide real-world examples, they often get too big,
59 which scares away people.
61 * Write complete sentences.
63 * only show user-visible changes.
67 @item LilyPond PostScript output is now also compatible with GSView, a
68 PostScript viewer for the Windows platform.
70 @item The property @code{Score.skipTypesetting} is also respected
71 by the MIDI output now.
73 This feature was contributed by Johannes Schindelin.
75 @item A score may now be specified to take a fixed number of
76 systems, by setting the @code{system-count} variable in the
79 This feature was contributed by Joe Neeman.
81 @item Ties may now be attached to the left side of a note with
82 @code{\repeatTie}, for use with volta repeats.
84 @lilypond[relative=2,fragment,ragged-right]
88 This feature was sponsored by Steve Doonan.
90 @item Newly created contexts may also be named with the following
94 \new Voice = "alto" ...
97 @item Thicknesses of tie and slurs may be tuned separately for the
98 endings and the middle part.
100 @item Items directly connected with a music input element may be
101 parenthesized, for example,
103 @lilypond[verbatim,ragged-right,fragment,relative=2]
105 <d \parenthesize f a>
108 This feature was sponsored by Ramana Kumar.
111 variables in the @code{\paper} and @code{\layout} block are now
112 separated with dashes, i.e.
122 The same holds for analogous options in lilypond-book.
125 Music for multiple parts can be interleaved, similar to MUP input.
126 This is done with the @code{\parallelMusic} function,
128 @lilypond[verbatim,ragged-right]
129 \parallelMusic #'(voiceA voiceB) {
130 r8 g'16[ c''] e''[ g' c'' e''] r8 g'16[ c''] e''[ g' c'' e''] |
132 r8 a'16[ d''] f''[ a' d'' f''] r8 a'16[ d''] f''[ a' d'' f''] |
143 This feature was contributed by Nicolas Sceaux.
145 @item Alignments of staves may be tuned per system.
147 #(set-global-staff-size 13)
149 \relative c'' \new StaffGroup <<
154 #"Score.NonMusicalPaperColumn"
155 #'line-break-system-details
156 #'((alignment-offsets . (0 -5 -20)))
159 #"Score.NonMusicalPaperColumn"
160 #'line-break-system-details
161 #'((alignment-offsets . (0 -15 -20)))
167 This feature was sponsored by Trevor Bača.
169 @item Individual systems may be positioned manually,
173 tagline = "lily was here"
176 #(set-default-paper-size "a7" 'landscape)
178 head-separation = 0.0
179 foot-separation = 0.0
186 #"Score.NonMusicalPaperColumn"
187 #'line-break-system-details
195 annotate-headers = ##t
200 This feature was sponsored by Trevor Bača and Nicolas Sceaux.
202 @item A linebreaking configuration can now be saved as a @file{.ly}
203 file automatically. This allows vertical alignments to be stretched to
204 fit pages in a second formatting run. See
205 @inputfileref{input/regression,page-layout-twopass.ly} for an
208 This feature was sponsored by Trevor Bača and Nicolas Sceaux.
210 @item The tie formatting for chords has been further polished. More
211 cases are handled gracefully, and all scoring parameters may now be
212 changed through the @code{details} property of the @code{Tie} grob.
214 This refinement was sponsored by Steve Doonan.
216 @item Positions of staff lines may now be set individually, for
219 @lilypond[ragged-right]
220 \new Staff \relative c' {
221 \override Staff.StaffSymbol #'line-positions = #'(-7 -2 0 7)
226 This feature was sponsored by Andrea Valle.
229 @item A MusicXML importer is included now.
231 It was sponsored by among others, Mark van den Borre,
232 and Muziekacademie Lede.
235 Stem direction on the center staff line are now interpolated between
236 neighbors. This results in less stem direction changes, leading to a
237 more even appearance. For example,
239 @lilypond[ragged-right]
247 This feature was sponsored by Mike Rolish and Basil Crow.
250 Slurs now avoid @code{TupletNumber}s, and tuplet numbers may enter the
253 @lilypond[ragged-right]
256 \override TupletBracket #'bracket-visibility = ##f
257 \override TupletBracket #'staff-padding = ##f
258 \override Slur #'details #'region-size = #6
262 c( \stemDown g' \stemNeutral c,)
267 This feature was sponsored by Trent Johnston.
270 @item Tuplet brackets and numbers are implemented as separate grobs,
271 @code{TupletBracket} and @code{TupletNumber}.
273 This rewrite was sponsored by Trent Johnston.
275 @item String arguments for music functions may be specified without
276 @code{#} marks. Now, \clef and \bar are also music functions.
278 @item Ties in chords are also formatted using a scoring based
279 formatting. This reduces the number of collisions for ties in chords,
281 @lilypond[ragged-right,fragment,relative=2]
282 <b d f g> ~ <b d f g>
285 Here, the tie for the D is flipped, in spite the default rule for
288 This rewrite was sponsored by Steve Doonan.
290 @item With the @code{\tweak} music function, layout objects that are directly
291 connected to input may be tuned easily,
293 @lilypond[relative=2,fragment,verbatim,ragged-right]
295 \tweak #'font-size #3 c
296 \tweak #'color #red d
297 \tweak #'style #'cross g
298 \tweak #'duration-log #1 a
302 This feature was sponsored by Sean Reed and Bertalan Fodor.
304 @item Generic music functions may now also be used on articulations
305 and chord elements, eg.
309 e-\keepWithTag #'bla -\tag #'bla ^2 >
312 This feature was sponsored by Sean Reed and Bertalan Fodor.
315 @item Spaces between lyrics and distance between syllables with
316 hyphens may now be separately tuned through the
317 @code{LyricSpace} grob.
319 This feature has been sponsored by Bertalan Fodor.
321 @item Texts set in a TrueType font are now kerned. This requires CVS
324 @lilypond[relative=2,fragment,ragged-right]
329 @item Using the @TeX{} no longer requires linking or dynamically
330 opening the kpathsea library, making the backend more easily usable on
333 This fix was sponsored by Black Trash Productions.
335 @item The horizontal location of rehearsal marks can be adjusted by
336 setting the @code{rehearsalMarkAlignSymbol} property,
338 @lilypond[ragged-right]
343 \set Score.rehearsalMarkAlignSymbol = #'key-signature
347 \set Score.rehearsalMarkAlignSymbol = #'clef
355 This feature was sponsored by Trevor Bača.
359 It's now possible to easily create deeply nested system start
362 @lilypond[ragged-right]
365 \set StaffGroup.systemStartDelimiterHierarchy
366 = #'(SystemStartSquare (SystemStartBracket a (SystemStartSquare b)) d)
376 In addition, there is now also support for ``square'' system start
379 This feature was sponsored by Trevor Bača.
382 Tie formatting now uses scoring. This opens the road to formatting
383 which handles complex situations require tradeoffs between different
386 This refactoring has been sponsored by Steve Doonan.
389 Each grob property may also be a ``grob closure.'' This means that it
390 is possible to combine functions. For example, the @code{Y-offset} of
391 a @code{InstrumentName} grob is defined to be
394 ,(ly:make-simple-closure
396 ,(ly:make-simple-closure
397 (,ly:self-alignment-interface::y-aligned-on-self))
398 ,(ly:make-simple-closure
399 (,ly:side-position-interface::y-aligned-on-support-refpoints)))
403 During execution, the @code{Y-offset} of an @code{InstrumentName} is computed
407 (+ (ly:self-alignment-interface::y-aligned-on-self @var{grob})
408 (ly:self-alignment-interface::y-aligned-on-support-refpoints @var{grob}))
413 Calculation of extent and offset of grob is now controlled via the
414 @code{X-extent}, @code{Y-extent}, @code{X-offset} and @code{Y-offset}
415 properties, for example
418 \override TextScript #'Y-offset = #-6
422 hard codes @code{TextScript} grobs to be 6 spaces below their Y-parent
426 Each grob property can be a procedure. If this is the case, it is
427 assumed to be a routine that calculates said property. This is a
428 major internal cleanup, which also provides advanced tweakability for
429 power users. For example,
432 \override Beam #'direction
434 (if (> 4 (ly:grob-array-length (ly:grob-object grob 'stems)))
440 With this code fragment, the direction of a beam is decided to be up
441 or down, depending on the number of stems in the beam.
445 Support for figured bass has been rewritten. Now it supports
446 continuation lines, slashed figures, and its figures, brackets, and
447 alignments may tuned separately.
449 @lilypond[ragged-right,fragment]
451 \relative { c4 c c c }
453 \set useBassFigureExtenders = ##t
454 <6+ 4 3> <6 4 3> <4 3+> <5/ 7/\+>
458 This rewrite was sponsored by Trent Johnston and John Mandereau.
461 Subproperties, like the @code{details} field of @code{Slur} and
462 @code{Tie} may now be tuned with @code{\override}. For example,
465 \override Stem #'details #'beamed-lengths = #'(4 4 3)
469 shortens the stems in beams.
472 The default paper size may now be set from the command line using
476 Beamlets may stick out of the side of beams.
479 @lilypond[fragment,ragged-right,relative=2]
481 \override Beam #'break-overshoot = #'(-0.5 . 0.5)
482 \set stemLeftBeamCount = #2
485 \set stemRightBeamCount = #3
490 This feature was sponsored by Trevor Bača.
495 Vertical alignments of staves can now be tuned easily for individual
498 @lilypond[ragged-right]
499 #(set-global-staff-size 13)
506 #"Score.NonMusicalPaperColumn"
507 #'line-break-system-details
508 #'((fixed-alignment-extra-space . 15))
520 This feature was sponsored by Nicolas Sceaux.
523 Vertical spacing for page layout can now be tuned for each system
524 individually. The dimensions that can be tuned can be visualized.
527 #(set-default-paper-size "a7" 'landscape)
530 \paper { annotate-spacing = ##t }
534 These features were sponsored by Trevor Bača and Nicolas Sceaux.
537 The slope of a stem-tremolo may be set manually
539 @lilypond[fragment,relative=1,ragged-right]
541 \once \override StemTremolo #'slope = #0.45
545 This feature was sponsored by Sven Axelsson.
548 Laissez vibrer ties can be created with @code{\laissezVibrer},
550 @lilypond[fragment,ragged-right,relative=1]
551 <c e g>\laissezVibrer r <d f>\laissezVibrer
554 This feature was sponsored by Henrik Frisk.
557 The order of words in @code{\markup} commands may now be reversed by
558 setting the @code{text-direction} property. This is useful for
559 Right-to-Left languages like Hebrew.
561 This feature was sponsored by Aaron Mehl.
564 Texts over multi measure rests can stretch the corresponding measure,
565 if the appropriate @code{spring-and-rods} callback is set.
567 @lilypond[relative=2,fragment,ragged-right]
568 \override MultiMeasureRestText #'springs-and-rods
569 = #ly:multi-measure-rest::set-text-rods
570 c1 R1 R1^"Very long long long text"
573 This feature was sponsored by Kris Shaffer.
576 @item @textanchor{tie-chords}
577 Formatting of ties in chords has been improved. Ties no longer collide
578 with note heads and stems. In addition, it is possible to manually
579 specify tie formatting
581 @lilypond[relative=2, fragment,ragged-right]
582 <a c d f> ~ <a c d f>
584 \override TieColumn #'tie-configuration =
585 #'((0 . -1) '() (5.5 . 1) (7 . 1))
586 <b d f g> ~ <b d f g>
589 This improvement has been sponsored by Bertalan Fodor, Jay Hamilton,
590 Kieren MacMillan, Steve Doonan, Trevor Bača, and Vicente Solsona
594 Formatting of isolated, single ties has been improved. Now, ties avoid
595 staff lines, flags and dots, without compromising their shape.
597 @lilypond[fragment,ragged-right]
600 c16 c2...~ c16 ~ c2... |
601 c4~c8 c8~c16 c16~c32 c16.~[ c64]~ c64[ c8..] |
605 This improvement has been sponsored by Bertalan Fodor, Jay Hamilton,
606 Kieren MacMillan, Steve Doonan, Trevor Bača, and Vicente Solsona
610 @item @textanchor{repeat-counter}
611 With the @code{countPercentRepeats} property,
612 percent repeats get incremental numbers to indicate the accumulated repeat count.
614 @lilypond[relative=2,fragment,ragged-right]
615 \set countPercentRepeats = ##t
616 \repeat percent 4 { c1 }
618 \repeat percent 4 { c2 c2 }
621 This feature was sponsored by Yoshinobu Ishizaki
624 Text scripts such as fingering instructions and dynamics avoid
625 collisions with slurs
627 @lilypond[fragment,relative=1]
629 b_1( f'_1_2_3 c_3_4_5 a)
631 c-2_\markup { \italic {"cresc."}} ( f_\markup {x} c)
636 Tuplets can be made to reach the next non-tuplet note by setting the
637 @code{tupletFullLength} property,
639 @lilypond[fragment,relative=2]
641 \remove Forbid_line_break_engraver
645 \set Score.proportionalNotationDuration = #(ly:make-moment 1 32)
646 \set tupletFullLength = ##t
647 \times 2/3 { c8[ c c] }
652 This feature was sponsored by Trevor Bača.
655 When @code{strict-note-spacing} is set, notes are spaced without regard
656 for clefs, bar lines, and grace notes. For example,
658 @lilypond[fragment,relative=2]
659 \override Score.SpacingSpanner #'strict-note-spacing = ##t
660 \new Staff { c8[ c \clef alto c \grace { c16[ c] } c8 c c] c32[ c32] }
663 This feature was sponsored by Trevor Bača.
666 Beams support the @code{break-overshoot} property, for example
668 @lilypond[relative=2,fragment]
669 \set allowBeamBreak = ##t
670 \override Beam #'break-overshoot = #'(1.0 . 2.0)
674 This feature was sponsored by Trevor Bača.
677 Proportional notation is supported. Notes can be spaced proportional
678 to their time-difference by assigning a duration to
679 @code{proportionalNotationDuration}. For example,
681 @lilypond[relative=2,fragment,ragged-right]
683 \set Score.proportionalNotationDuration = #(ly:make-moment 1 16)
684 \new Staff { c8[ c c c c c] c4 c2 r2 }
685 \new Staff { c2 \times 2/3 { c8 c c } c4 c1 }
689 This feature was sponsored by Trevor Bača.
692 Symbol sizes (e.g. accidentals) are disregarded for spacing if
693 @code{uniform-stretching} of the @code{SpacingSpanner} grob is set,
696 @lilypond[relative=2,fragment]
698 \override Score.SpacingSpanner #'uniform-stretching = ##t
699 \new Staff { c16[ c c c c c c c c c16] }
701 \times 6/7 { c16 c c cis c c c }
707 This feature was sponsored by Trevor Bača.
710 Endings of broken tuplet brackets can be tuned. For example, you can
711 add arrows to the brackets,
713 @lilypond[fragment,ragged-right,relative=2]
714 \override TupletBracket
716 (markup #:arrow-head X LEFT #f)
717 (markup #:arrow-head X RIGHT #f))
719 c c c \bar "empty" \break c c
723 This feature was sponsored by Trevor Bača.
726 @item @textanchor{arrow-glyph}
727 Arrow heads were added to the Feta font.
732 filled, to the right: \hspace #2.0 \fontsize #6 \arrow-head #0 #1 ##t
733 open, down: \hspace #2.0 \fontsize #6 \arrow-head #1 #-1 ##f
738 These glyphs have been sponsored by Trevor Bača.
742 Nested tuplets are automatically positioned,
744 @lilypond[fragment,ragged-right,relative=2]
745 \set tupletNumberFormatFunction = #fraction-tuplet-formatter
748 \times 3/5 { a a a a a }
752 This feature was sponsored by Trevor Bača.
755 Music expressions can be displayed, in LilyPond notation, using the
756 new @code{\displayLilyMusic} function. For instance:
758 \displayLilyMusic \transpose c a, { c d e f }
765 This feature was contributed by Nicolas Sceaux.
768 The current bar number may be checked with @code{\barNumberCheck}, eg.
775 will print a warning if it doesn't happen in measure 22.
778 If @code{showLastLength} is set, only the last few measures of a piece
779 are rendered, which speeds up correcting scores. For example, setting
782 showLastLength = R1*5
787 will render only the last five measures (assuming 4/4 time signature)
790 @item @textanchor{simple-melismata}
791 Melismata can be specified simply in the lyrics now, eg.
793 @lilypond[relative=1,verbatim,fragment]
801 This feature was sponsored by Nancho Alvarez
804 Suggested accidentals (for notating musica ficta) may be switched on
805 with @code{suggestAccidentals}
807 @lilypond[verbatim,fragment,relative=2]
808 \set suggestAccidentals = ##t
812 This feature was sponsored by Nancho Alvarez.
815 The setting @code{whichBar} and time-bookkeeping is now split into a
816 @code{Default_bar_line_engraver} and @code{Timing_translator}
819 @item @textanchor{pitched-trill}
820 Explicit pitches may be added to trills,
822 @lilypond[relative,verbatim,fragment]
823 \pitchedTrill c4\startTrillSpan fis f\stopTrillSpan
826 This feature was sponsored by D. Josiah Boothby and Jamie Bullock
829 Markup now supports formatting of text paragraphs, using
830 @code{\wordwrap} and @code{\justify}.
832 This feature was sponsored by Sven Axelsson.
836 For older news, go to
837 @uref{http://lilypond.org/doc/v2.6/Documentation/topdocs/NEWS.html},
838 or @uref{../,go back} to the Documentation index.