]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/changes.tely
Issue 5164: Doc: Add usage of OpenType font feature
[lilypond.git] / Documentation / changes.tely
1 \input texinfo @c -*- coding: utf-8; mode: texinfo; -*-
2 @setfilename lilypond-changes.info
3 @settitle LilyPond Changes
4
5 @include macros.itexi
6
7 @ifhtml
8 @macro inputfileref{DIR,NAME}
9 @uref{../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
10 @end macro
11 @macro usermanref{NAME}
12 @inforef{\NAME\,,../user/lilypond/lilypond}@c
13 @end macro
14 @end ifhtml
15
16 @ifnothtml
17 @macro inputfileref{DIR,NAME}
18 @file{\DIR\/\NAME\}@c
19 @end macro
20 @macro usermanref{NAME}
21 See user manual, \NAME\
22 @end macro
23 @end ifnothtml
24
25 @macro textanchor{NAME}
26 @html
27 <a name="\NAME\"></a>
28 @end html
29 @end macro
30
31
32 @documentencoding UTF-8
33 @documentlanguage en
34 @afourpaper
35
36 @finalout
37
38 @node Top
39 @top New features in 2.20 since 2.18
40
41 @allowcodebreaks false
42
43 @itemize
44
45 @ignore
46
47 HINTS
48
49 * add new items at the top
50
51 * only show verbatim input for syntax/input changes
52
53 * try to be as brief possible in those cases
54
55 * don't try to provide real-world examples, they often get too big,
56 which scares away people.
57
58 * Write complete sentences.
59
60 * only show user-visible changes.
61
62 @end ignore
63
64 @item
65 It is now possible to move systems with reference to their current
66 position using the @code{extra-offset} subproperty of
67 @code{NonMusicalPaperColumn.line-break-system-details}.  Both vertical
68 and horizontal changes are possible.  This feature is especially useful
69 for making slight adjustments to the default vertical position of
70 individual systems. See @ruser{Explicit staff and system positioning} for
71 more information.
72
73 @item
74 It is now possible to add text to analysis brackets through the
75 @code{HorizontalBracketText} object.
76 @lilypond[quote,verbatim]
77 \layout {
78   \context {
79     \Voice
80     \consists "Horizontal_bracket_engraver"
81   }
82 }
83
84 {
85   \once \override HorizontalBracketText.text = "a"
86   c''\startGroup d''\stopGroup
87   e''-\tweak HorizontalBracketText.text "a'" \startGroup d''\stopGroup
88 }
89 @end lilypond
90
91 @item
92 The ends of hairpins may now be fine-tuned using the @code{shorten-pair}
93 grob property, which previously only affected text-spanners like
94 @code{TupletBracket} and @code{OttavaBracket}.  Positive values offset
95 to the right, negative to the left.
96 @lilypond[quote,verbatim]
97 { \once \override Hairpin.shorten-pair = #'(2 . 2)
98   c'1~\<
99   c'2~ c'\!
100   \once \override Hairpin.shorten-pair = #'(-2 . -2)
101   c'1~\<
102   c'2~ c'\! }
103 @end lilypond
104
105 @item
106 In fret-diagrams the distance between frets and the distance between strings is
107 now independently adjustable.  Available are @code{fret-distance} and
108 @code{string-distance} as subproperties of @code{fret-diagram-details}.
109 @lilypond[verbatim,quote]
110 fretMrkp = \markup { \fret-diagram-terse #"x;x;o;2;3;2;" }
111
112 \markuplist
113 \override #'(padding . 2)
114 \table #'(0 -1) {
115   "default"
116
117   \fretMrkp
118
119   "fret-distance"
120
121   \override #'(fret-diagram-details . ((fret-distance . 2)))
122   \fretMrkp
123
124   "string-distance"
125
126   \override #'(fret-diagram-details . ((string-distance . 2)))
127   \fretMrkp
128 }
129 @end lilypond
130
131 @item
132 Accidental rules can now be defined across @code{ChoirStaff} contexts.
133 Two new rules @code{choral} and @code{choral-cautionary} are available
134 that combine the characteristics of @code{modern-voice} and @code{piano}
135 or their equivalents with cautionary accidentals.
136
137 @item
138 The music function @code{\unfoldRepeats} can now take an
139 optional argument-list specifying which type(s) of repeated music
140 should be unfolded.  Possible entries are @code{percent}, @code{tremolo},
141 @code{volta}.
142 If the optional argument-list is unspecified, @code{repeated-music} will be
143 used, unfolding all.
144
145 @item
146 A new @code{output-attributes} grob property is now used for svg output
147 instead of the @code{id} grob property.  It allows multiple attributes
148 to be defined as an association list.  For example, @code{#'((id . 123)
149 (class . foo) (data-whatever . @qq{bar}))} will produce the following
150 group tag in an SVG file: @code{<g id=@qq{123} class=@qq{foo}
151 data-whatever=@qq{bar}> @dots{} </g>}.
152
153 @item
154 Slurs and phrasing slurs may now be started from individual notes
155 in a chord.  Several simultanous slurs per @code{Voice} need to be
156 distinguished by @code{spanner-id} setting.
157
158 @item
159 The music and grob property @code{spanner-id} for distinguishing
160 simultaneous slurs and phrasing slurs has been changed from a
161 string to a @q{key}, a non-negative integer or symbol.
162
163 @item
164 There is a new command @code{\=} for specifying the
165 @code{spanner-id} for simultaneous slurs and phrasing slurs.
166 @lilypond[verbatim,quote]
167 \fixed c' {
168   <c~ f\=1( g\=2( >2 <c e\=1) a\=2) >
169 }
170 @end lilypond
171
172 @item
173 Blocks introduced with @code{\header} can be stored in variables
174 and used as arguments to music and scheme functions and as the
175 body of @code{#@{@dots{}#@}} constructs.  They are represented as
176 a Guile module.
177
178 While @code{\book}, @code{\bookpart}, @code{\score}, @code{\with},
179 @code{\layout}, @code{\midi}, @code{\paper} blocks can be passed
180 around in similar manner, they are represented by different data
181 types.
182
183 @item
184 Dot-separated symbol lists like @code{FretBoard.stencil} were
185 already supported as of version@tie{}2.18.  They may now also
186 contain unsigned integers, and may alternatively be separated by
187 commata.  This allows usage such as
188 @lilypond[quote,verbatim]
189 { \time 2,2,1 5/8  g'8 8 8 8 8 }
190 @end lilypond
191 and
192 @example
193 \tagGroup violin,oboe,bassoon
194 @end example
195
196 @item
197 Such lists may also be used in expressions for assignments, sets,
198 and overrides.  This allows usage such as
199 @lilypond[quote,verbatim]
200 { \unset Timing.beamExceptions
201   \set Timing.beatStructure = 1,2,1
202   g'8 8 8 8 8 8 8 8 }
203 @end lilypond
204
205 @item
206 Association list elements could previously be assigned values
207 individually (for example, paper variables like
208 @code{system-system-spacing.basic-distance}).  They may now be
209 also referenced in this manner, as with
210 @example
211 \paper @{
212   \void \displayScheme \system-system-spacing.basic-distance
213 @}
214 @end example
215
216 In combination with the previously mentioned changes, this allows
217 setting and referencing pseudovariables like @code{violin.1}.
218
219 @item
220 LilyPond source files may now be embedded inside the generated PDF files.
221 This experimental feature is disabled by default and may be regarded as unsafe,
222 as PDF documents with hidden content tend to present a security risk.
223 Please note that not all PDF viewers have the ability to handle embedded
224 documents (if not, the PDF output will appear normally and source files
225 will remain invisible).  This feature only works with the PDF backend.
226
227 @item
228 French note names are now defined specifically instead of
229 being aliased to Italian note names: in addition to the
230 generic Italian-derived syntax, the @var{d} pitch may be
231 entered as @code{ré}.  Double sharps may also be
232 entered using the @code{-x} suffix.
233
234 @item
235 Additional bass strings (for lute tablature) are supported.
236 @lilypond[quote,verbatim]
237 m = { f'4 d' a f d a, g, fis, e, d, c,  \bar "|." }
238
239 \score {
240   \new TabStaff \m
241   \layout {
242     \context {
243       \Score
244       tablatureFormat = #fret-letter-tablature-format
245     }
246     \context {
247       \TabStaff
248       stringTunings = \stringTuning <a, d f a d' f'>
249       additionalBassStrings = \stringTuning <c, d, e, fis, g,>
250       fretLabels = #'("a" "b" "r" "d" "e" "f" "g" "h" "i" "k")
251     }
252   }
253 }
254 @end lilypond
255
256 @item
257 The markup-list-command @code{\table} is now available.
258 Each column may be aligned differently.
259 @lilypond[quote,verbatim]
260 \markuplist {
261     \override #'(padding . 2)
262     \table
263       #'(0 1 0 -1)
264       {
265         \underline { center-aligned right-aligned center-aligned left-aligned }
266         one "1" thousandth "0.001"
267         eleven "11" hundredth "0.01"
268         twenty "20" tenth "0.1"
269         thousand "1000" one "1.0"
270       }
271 }
272 @end lilypond
273
274 @item
275 A new markup-command, @code{\with-dimensions-from}, makes
276 @code{\with-dimensions} easier to use by taking the new
277 dimensions from a markup object, given as first argument.
278 @lilypond[quote,verbatim]
279 \markup {
280   \pattern #5 #Y #0 "x"
281   \pattern #5 #Y #0 \with-dimensions-from "x" "f"
282   \pattern #5 #Y #0 \with-dimensions-from "x" "g"
283   \override #'(baseline-skip . 2)
284   \column {
285     \pattern #5 #X #0 "n"
286     \pattern #5 #X #0 \with-dimensions-from "n" "m"
287     \pattern #5 #X #0 \with-dimensions-from "n" "!"
288   }
289 }
290 @end lilypond
291
292 @item
293 There are two new page breaking functions.  @code{ly:one-page-breaking}
294 automatically adjusts the height of the page to fit the music, so that
295 everything fits on one page.  @code{ly:one-line-auto-height-breaking}
296 is like @code{ly:one-line-breaking}, placing the music on a single
297 line and adjusting the page width accordingly, however it also
298 automatically adjusts the page height to fit the music.
299
300 @item
301 Markup-command @code{\draw-squiggle-line} is now available.
302 Customizing is possible with overrides of @code{thickness}, @code{angularity},
303 @code{height} and @code{orientation}
304 @lilypond[quote,verbatim]
305 \markup
306   \overlay {
307     \draw-squiggle-line #0.5 #'(3 . 3) ##t
308
309     \translate #'(3 . 3)
310     \override #'(thickness . 4)
311     \draw-squiggle-line #0.5 #'(3 . -3) ##t
312
313     \translate #'(6 . 0)
314     \override #'(angularity . -5)
315     \draw-squiggle-line #0.5 #'(-3 . -3) ##t
316
317     \translate #'(3 . -3)
318     \override #'(angularity . 2)
319     \override #'(height . 0.3)
320     \override #'(orientation . -1)
321     \draw-squiggle-line #0.2 #'(-3 . 3) ##t
322   }
323 @end lilypond
324
325 @item
326 A new command, @code{\RemoveAllEmptyStaves}, has been made available, which
327 acts exactly like @code{\RemoveEmptyStaves}, except for also removing empty
328 staves on the first system in a score.
329
330 @item
331 Markup-commands @code{\undertie} and @code{\overtie} are now available, as well
332 as the generic markup-command @code{\tie}.
333 @lilypond[quote,verbatim]
334 \markup {
335   \undertie "undertied"
336   \overtie "overtied"
337 }
338
339 m = {
340   c''1 \prall -\tweak text \markup \tie "131" -1
341 }
342
343 { \voiceOne \m \voiceTwo \m }
344 @end lilypond
345
346 @item
347 @code{TabStaff} is now able to print micro-tones for bendings etc.
348 @lilypond[quote,verbatim]
349 \layout {
350   \context {
351     \Score
352     supportNonIntegerFret = ##t
353   }
354 }
355
356 mus = \relative { c'4 cih d dih }
357
358 <<
359   \new Staff << \clef "G_8" \mus >>
360   \new TabStaff \mus
361 >>
362 @end lilypond
363
364 @item
365 Two new styles of whiteout are now available.  The @code{outline} style
366 approximates the contours of a glyph's outline, and its shape is
367 produced from multiple displaced copies of the glyph.  The
368 @code{rounded-box} style produces a rounded rectangle shape.  For all
369 three styles, including the default @code{box} style, the whiteout
370 shape's @code{thickness}, as a multiple of staff-line thickness, can be
371 customized.
372
373 @lilypond[verbatim,quote]
374 \markup {
375   \combine
376     \filled-box #'(-1 . 15) #'(-3 . 4) #1
377     \override #'(thickness . 3)
378     \whiteout whiteout-box
379 }
380 \markup {
381   \combine
382     \filled-box #'(-1 . 24) #'(-3 . 4) #1
383     \override #'(style . rounded-box)
384     \override #'(thickness . 3)
385     \whiteout whiteout-rounded-box
386 }
387 \markup {
388   \combine
389     \filled-box #'(-1 . 18) #'(-3 . 4) #1
390     \override #'(style . outline)
391     \override #'(thickness . 3)
392     \whiteout whiteout-outline
393 }
394 \relative {
395   \override Staff.Clef.whiteout-style = #'outline
396   \override Staff.Clef.whiteout = 3
397   g'1
398 }
399 @end lilypond
400
401 @item
402 All of @code{\override}, @code{\revert}, @code{\set}, and
403 @code{\unset} now work with the @code{\once} prefix for making
404 one-time settings.
405 @lilypond[quote,verbatim]
406 \relative {
407   c'4 d
408   \override NoteHead.color = #red
409   e4 f |
410   \once \override NoteHead.color = #green
411   g4 a
412   \once \revert NoteHead.color
413   b c |
414   \revert NoteHead.color
415   f2 c |
416 }
417 @end lilypond
418
419 @item
420 When outputting MIDI, LilyPond will now store the @code{title}
421 defined in a score's @code{\header} block (or, if there is no
422 such definition on the @code{\score} level, the first such
423 definition found in a @code{\header} block of the score's
424 enclosing @code{\bookpart}, @code{\book}, or top-level scope)
425 as the name of the MIDI sequence in the MIDI file.  Optionally,
426 the name of the MIDI sequence can be overridden using the new
427 @code{midititle} @code{\header} field independently of
428 @code{title} (for example, in case @code{title} contains markup
429 code which does not render as plain text in a satisfactory way
430 automatically).
431
432 @item
433 Music (and scheme and void) functions and markup commands that
434 just supply the final parameters to a chain of overrides, music
435 function and markup command calls can now be defined in the form
436 of just writing the expression cut short with @code{\etc}.
437
438 @lilypond[verbatim,quote]
439 \markup bold-red = \markup \bold \with-color #red \etc
440 highlight = \tweak font-size 3 \tweak color #red \etc
441
442 \markup \bold-red "text"
443 \markuplist \column-lines \bold-red { One Two }
444
445 { c' \highlight d' e'2-\highlight -! }
446 @end lilypond
447
448 @item
449 LilyPond functions defined with @code{define-music-function},
450 @code{define-event-function}, @code{define-scheme-function} and
451 @code{define-void-function} can now be directly called from Scheme
452 as if they were genuine Scheme procedures.  Argument checking and
453 matching will still be performed in the same manner as when
454 calling the function through LilyPond input.  This includes the
455 insertion of defaults for optional arguments not matching their
456 predicates.  Instead of using @code{\default} in the actual
457 argument list for explicitly skipping a sequence of optional
458 arguments, @code{*unspecified*} can be employed.
459
460 @item
461 Current input location and parser are now stored in GUILE fluids
462 and can be referenced via the function calls @code{(*location*)}
463 and @code{(*parser*)}.  Consequently, a lot of functions
464 previously taking an explicit @code{parser} argument no longer do
465 so.
466
467 Functions defined with @code{define-music-function},
468 @code{define-event-function}, @code{define-scheme-function} and
469 @code{define-void-function} no longer use @code{parser} and
470 @code{location} arguments.
471
472 With those particular definitions, LilyPond will try to recognize
473 legacy use of @code{parser} and @code{location} arguments,
474 providing backwards-compatible semantics for some time.
475
476 @item
477 In the "english" notename language, the long notenames for pitches
478 with accidentals now contain a hyphen for better readability.  You
479 now have to write
480 @example
481 \key a-flat \major
482 @end example
483 instead of the previous
484 @example
485 \key aflat \major
486 @end example
487
488 Double accidentals do not get another hyphen, so the Dutch
489 @code{cisis} has the long English notename @code{c-sharpsharp}.
490
491 @item
492 The visual style of tremolo slashes (shape, style and slope)
493 is now more finely controlled.
494 @lilypond[quote,relative=2]
495   a8:32 b: c: d:
496   \override StemTremolo.shape = #'beam-like
497   a: b: c: d:
498   \override StemTremolo.style = #'constant
499   a: b: c: d:
500   g,2
501 @end lilypond
502
503
504 @item
505 Multi-measure rests have length according to their total duration,
506 under the control of @code{MultiMeasureRest.space-increment}.
507 @lilypond[quote]
508 { \compressFullBarRests
509   \override Staff.MultiMeasureRest.space-increment = 3.0
510   R1*2 R1*12 R1*64 }
511 @end lilypond
512
513 @item
514 Page numbers may now be printed in roman numerals, by setting the
515 @code{page-number-type} paper variable.
516
517 @item
518 It is now possible to use @code{\time} and @code{\partial}
519 together to change the time signature in mid measure.
520
521 @lilypond[verbatim,quote,relative=1]
522 \override Score.BarNumber.break-visibility = #end-of-line-invisible
523 \partial 4 \time 3/4 f4 | 2 4 | 2 \bar "||"
524 \time 9/8 \partial 4. f8 8 8 | 2. 8 8 8 |
525 @end lilypond
526
527 @item
528 It is now possible to override the @code{text} property of
529 chord names.
530
531 @lilypond[verbatim,fragment,quote]
532 <<
533 \new ChordNames \chordmode {
534   a' b c:7
535   \once \override ChordName.text = #"foo"
536   d
537 }
538 >>
539 @end lilypond
540
541 @item
542 Improved horizontal alignment when using @code{TextScript},
543 with @code{DynamicText} or @code{LyricText}.
544
545 @item
546 A new command @code{\magnifyStaff} has been added which scales staff
547 sizes, staff lines, bar lines, beamlets and horizontal spacing generally
548 at the @code{Staff} context level.  Staff lines are prevented from being
549 scaled smaller than the default since the thickness of stems, slurs, and
550 the like are all based on the staff line thickness.
551
552 @item
553 @code{InstrumentName} now supports @code{text-interface}.
554
555 @item
556 There is now support for controlling the @q{expression level} of
557 MIDI channels using the @code{Staff.midiExpression} context property.
558 This can be used to alter the perceived volume of even sustained notes
559 (albeit in a very @q{low-level} way) and accepts a number value between
560 @code{0.0} and @code{1.0}.
561
562 @example
563 \score @{
564   \new Staff \with @{
565     midiExpression = #0.6
566     midiInstrument = #"clarinet"
567   @}
568   <<
569     @{ a'1~ a'1 @}
570     @{
571       \set Staff.midiExpression = #0.7 s4\f\<
572       \set Staff.midiExpression = #0.8 s4
573       \set Staff.midiExpression = #0.9 s4
574       \set Staff.midiExpression = #1.0 s4
575
576       \set Staff.midiExpression = #0.9 s4\>
577       \set Staff.midiExpression = #0.8 s4
578       \set Staff.midiExpression = #0.7 s4
579       \set Staff.midiExpression = #0.6 s4\!
580     @}
581   >>
582   \midi @{ @}
583 @}
584 @end example
585
586 @item
587 Support for making it easier to use alternative @q{music} fonts other
588 than the default Emmentaler in LilyPond has been added.  See
589 @uref{http://fonts.openlilylib.org/} for more information.
590
591 @item
592 Grobs and their parents can now be aligned separately allowing
593 more flexibility for grob positions.  For example the @q{left} edge of a
594 grob can now be aligned on the @q{center} of its parent.
595
596 @item
597 Improvements to the @code{\partial} command have been made to
598 avoid problems when using multiple, parallel contexts.
599
600 @item @code{\chordmode} can now use @code{< >} and @code{<< >>}
601 constructs.
602
603 @item
604 A new command @code{\tagGroup} has now been added.  This complements
605 the existing @code{\keepWithTag} and @code{\removeWithTag} commands.
606 For Example:
607
608 @example
609 \tagGroup #'(violinI violinII viola cello)
610 @end example
611
612 declares a list of @q{tags} that belong to a single @q{tag group}.
613
614 @example
615 \keepWithTag #'violinI
616 @end example
617
618 Is now only concerned with @q{tags} from @q{violinI}’s tag group.
619
620 Any element of the included music tagged with one or more tags from the
621 group, but @emph{not} with @var{violinI}, will be removed.
622
623 @item
624 The @code{\addlyrics} function now works with arbitrary contexts
625 incuding @code{Staff}.
626
627 @item
628 String numbers can now also be used to print roman numerals
629 (e.g. for unfretted string instruments).
630 @lilypond[verbatim,quote,relative=2]
631 c2\2
632 \romanStringNumbers
633 c\2
634 \arabicStringNumbers
635 c1\3
636 @end lilypond
637
638 @item
639 The @code{thin-kern} property of the @code{BarLine} grob has been
640 renamed to @code{segno-kern}.
641
642 @item
643 @code{KeyCancellation} grobs now ignore cue clefs (like
644 @code{KeySignature} grobs do).
645
646 @item
647 Add support for @code{\once@tie{}\unset}
648
649 @item
650 It is now possible to individually color both the dots and parentheses
651 in fret diagrams when using the @code{\fret-diagram-verbose} markup
652 command.
653
654 @lilypond[verbatim,quote,relative=1]
655 \new Voice {
656   c1^\markup {
657     \override #'(fret-diagram-details . (
658                  (finger-code . in-dot))) {
659       \fret-diagram-verbose #'((mute 6)
660                                (place-fret 5 3 1 red)
661                                (place-fret 4 5 2 inverted)
662                                (place-fret 3 5 3 green)
663                                (place-fret 2 5 4 blue inverted)
664                                (place-fret 1 3 1 violet)
665                                (barre 5 1 3 ))
666     }
667   }
668   c1^\markup {
669     \override #'(fret-diagram-details . (
670                  (finger-code . below-string))) {
671       \fret-diagram-verbose #'((mute 6)
672                              (place-fret 5 3 1 red parenthesized)
673                              (place-fret 4 5 2 yellow
674                                                default-paren-color
675                                                parenthesized)
676                              (place-fret 3 5 3 green)
677                              (place-fret 2 5 4 blue )
678                              (place-fret 1 3 1)
679                              (barre 5 1 3))
680     }
681   }
682 }
683 @end lilypond
684
685 @item
686 Two new properties have been added for use in
687 @code{fret-diagram-details} when using the @code{\fret-diagram-verbose}
688 markup command; @code{fret-label-horizontal-offset} which affects the
689 @code{fret-label-indication} and @code{paren-padding} which controls the
690 space between the dot and the parentheses surrounding it.
691
692 @lilypond[verbatim,quote,relative=1]
693 \new Voice {
694   c1^\markup {
695     \fret-diagram-verbose #'((mute 6)
696                              (place-fret 5 3 1)
697                              (place-fret 4 5 2)
698                              (place-fret 3 5 3)
699                              (place-fret 1 6 4 parenthesized)
700                              (place-fret 2 3 1)
701                              (barre 5 2 3))
702   }
703   c1^\markup {
704     \override #'(fret-diagram-details . (
705                  (fret-label-horizontal-offset . 2)
706                  (paren-padding . 0.25))) {
707       \fret-diagram-verbose #'((mute 6)
708                                (place-fret 5 3 1)
709                                (place-fret 4 5 2)
710                                (place-fret 3 5 3)
711                                (place-fret 1 6 4 parenthesized)
712                                (place-fret 2 3 1)
713                                (barre 5 2 3))
714     }
715   }
716 }
717 @end lilypond
718
719 @item
720 A new markup command @code{\justify-line} has been added.  Similar to
721 the @code{\fill-line} markup command except that instead of setting
722 @emph{words} in columns, the @code{\justify-line} command balances the
723 whitespace between them ensuring that when there are three or more
724 words in a markup, the whitespace is always consistent.
725
726 @lilypond[quote,verbatim,papersize=a6]
727 \markup \fill-line {oooooo oooooo oooooo oooooo}
728 \markup \fill-line {ooooooooo oooooooo oo ooo}
729 @end lilypond
730
731 @lilypond[quote,verbatim,papersize=a6]
732 \markup \justify-line {oooooo oooooo oooooo oooooo}
733 \markup \justify-line {ooooooooo oooooooo oo ooo}
734 @end lilypond
735
736 @item
737 A new command @code{\magnifyMusic} has been added, which allows
738 the notation size to be changed without changing the staff size,
739 while automatically scaling stems, beams, and horizontal spacing.
740
741 @lilypond[verbatim,quote]
742 \new Staff <<
743   \new Voice \relative {
744     \voiceOne
745     <e' e'>4 <f f'>8. <g g'>16 <f f'>8 <e e'>4 r8
746   }
747   \new Voice \relative {
748     \voiceTwo
749     \magnifyMusic 0.63 {
750       \override Score.SpacingSpanner.spacing-increment = #(* 1.2 0.63)
751       r32 c'' a c a c a c r c a c a c a c
752       r c a c a c a c a c a c a c a c
753     }
754   }
755 >>
756 @end lilypond
757
758 @item
759 A new flexible template suitable for a range of choral music, is now
760 provided.  This may be used to create simple choral music, with or
761 without piano accompaniment, in two or four staves. Unlike other
762 templates, this template is @q{built-in}, which means it does not
763 need to be copied and edited: instead it is simply @code{\include}'d
764 in the input file.  For details, see @rlearning{Built-in templates}.
765
766 @item
767 The positioning of tuplet numbers for kneed beams has been significantly
768 improved.  Previously, tuplet numbers were placed according to the
769 position of the tuplet bracket, even if it was not printed.  This could
770 lead to stranded tuplet numbers.  Now they are now positioned
771 closer to the kneed-beam when an appropriate beam segment exists for its
772 placement and when the bracket is not drawn.
773
774 Collision detection is also added, offsetting horizontally if too close
775 to an adjoining note column but preserving the number's vertical
776 distance from the kneed beam.  If the number itself is too large to
777 fit in the available space the original, bracket-based, positioning
778 system is used instead; and in the event of a collision (e.g. with an
779 accidental) the tuplet number is moved vertically away instead.
780
781 @lilypond[verbatim,fragment,quote,relative=1]
782 \time 3/4
783 \override Beam.auto-knee-gap = 3
784 \tuplet 3/2 4 {
785   g8 c'' e,
786   c'8 g,, e''
787   g,,8 e''' c,,
788 }
789 @end lilypond
790
791 @noindent
792 The original kneed-beam tuplet behavior is still available through an
793 @code{\override} via a new, @code{knee-to-beam} property.
794
795 @lilypond[verbatim,fragment,quote,relative=1]
796 \time 3/4
797 \override Beam.auto-knee-gap = 3
798 \override TupletNumber.knee-to-beam = ##f
799 \tuplet 3/2 4 {
800   g8 c'' e,
801   c'8 g,, e''
802   g,,8 e''' c,,
803 }
804 @end lilypond
805
806 @item
807 @code{\lyricsto} and @code{\addLyrics} have been @q{harmonized}.  Both
808 now accept the same kind of delimited argument list that @code{\lyrics}
809 and @code{\chords} accept.  Backward compatibility has been added so
810 music identifiers (i.e. @code{\mus}) are permitted as arguments.  A
811 @code{convert-ly} rule has been added that removes redundant uses of
812 @code{\lyricmode} and rearranges combinations with context starters such
813 that @code{\lyricsto} in general is applied last (i.e. like
814 @code{\lyricmode} would be).
815
816 @item
817 Scheme functions and identifiers can now be used as output definitions.
818
819 @item
820 Scheme expressions can now be used as chord constituents.
821
822 @item
823 Improved visual spacing of small and regular @q{MI} Funk and Walker
824 noteheads so they are now the same width as other shaped notes in
825 their respective sets.  @code{SOL} noteheads are also now visually
826 improved when used with both the normal Aiken and Sacred Harp heads, as
827 well as with the thin variants.
828
829 @item
830 @code{LeftEdge} now has a definable @code{Y-extent} (i.e.vertical).  See
831 @rinternals{LeftEdge}.
832
833 @item
834 Added a new @code{make-path-stencil} function that supports all
835 @code{path} commands both relative and absolute:
836
837 @code{lineto}, @code{rlineto}, @code{curveto}, @code{rcurveto},
838 @code{moveto}, @code{rmoveto}, @code{closepath}.  The function also
839 supports @q{single-letter} syntax used in standard SVG path commands:
840
841 @code{L}, @code{l}, @code{C}, @code{c}, @code{M}, @code{m}, @code{Z} and
842 @code{z}.  The new command is also backward-compatible with the original
843 @code{make-connected-path-stencil} function.  Also see
844 @file{scm/stencil.scm}.
845
846 @item
847 Context properties named in the @samp{alternativeRestores} property are
848 restored to their value at the start of the @emph{first} alternative in
849 all subsequent alternatives.
850
851 Currently the default set restores @q{current meter};
852
853 @lilypond[verbatim,fragment,quote,relative=2]
854 \time 3/4
855 \repeat volta 2 { c2 e4 | }
856 \alternative {
857   { \time 4/4 f2 d | }
858   { f2 d4 | }
859 }
860 g2. |
861 @end lilypond
862
863 @noindent
864 @q{measure position};
865
866 @lilypond[verbatim,fragment,quote,relative=2]
867 \time 3/4
868 \repeat volta 2 { c2 e4 | }
869 \alternative {
870   { \time 4/4
871     \set Timing.measurePosition = #(ly:make-moment -1/2)
872     f2 | }
873   { f2 d4 | }
874 }
875 g2. |
876 @end lilypond
877
878 @noindent
879 and @q{chord changes};
880
881 @lilypond[verbatim,fragment,quote]
882 <<
883   \new ChordNames {
884     \set chordChanges = ##t
885     \chordmode { c1:m d:m c:m d:m }
886   }
887   \new Staff {
888     \repeat volta 2 { \chordmode { c1:m } }
889     \alternative {
890       { \chordmode { d:m } }
891       { \chordmode { c:m } }
892     }
893   \chordmode { d:m }
894 }
895 >>
896 @end lilypond
897
898 @item
899 Improved MIDI output for breathe marks.  After tied notes, breaths take
900 time @emph{only} from the last note of the tie; e.g.
901 @code{@{ c4~ c8 \breathe @}} performs as @code{@{ c4~ c16 r @}} instead
902 of @code{@{ c4 r8 @}}.  This is more consistent with articulations and
903 how humans interpret breaths after ties.  It now also makes it easier to
904 align simultaneous breathe marks over multiple parts, all with different
905 note lengths.
906
907 @item
908 A new note head style for Tabulature has been added;
909 @code{TabNoteHead.style = #'slash}.
910
911 @item
912 Four new Clef glyphs have been added @emph{Double G}, @emph{Tenor G},
913 @emph{Varpercussion} and @emph{varC} and their related tessitura.
914 @lilypond[verbatim,quote,fragment]
915   \override Staff.Clef.full-size-change = ##t
916
917   \clef "GG" c c c c
918   \clef "tenorG" c c c c
919   \clef "varC" c c c c
920   \clef "altovarC" c c c c
921   \clef "tenorvarC" c c c c
922   \clef "baritonevarC" c c c c
923   \clef "varpercussion" c c c c
924
925   \break
926   \override Staff.Clef.full-size-change = ##f
927
928   \clef "GG" c c c c
929   \clef "tenorG" c c c c
930   \clef "varC" c c c c
931   \clef "altovarC" c c c c
932   \clef "tenorvarC" c c c c
933   \clef "baritonevarC" c c c c
934   \clef "varpercussion" c c c c
935 @end lilypond
936
937 @item
938 Isolated durations in music sequences now stand for unpitched
939 notes.  This may be useful for specifying rhythms to music or
940 scheme functions.  When encountered in the final score, the
941 pitches are provided by the preceding note or chord.  Here are two
942 examples where this makes for readable input:
943
944 @lilypond[verbatim,quote]
945 \new DrumStaff \with { \override StaffSymbol.line-count = 1 }
946 \drummode {
947   \time 3/4
948   tambourine 8 \tuplet 3/2 { 16 16 16 }
949              8 \tuplet 3/2 { 16 16 16 } 8 8 |
950 }
951 @end lilypond
952
953 @lilypond[verbatim,quote]
954 \new Staff { r16 c'16 ~ 8 ~ 4 ~ 2 | }
955 @end lilypond
956
957 @item
958 @code{\displayLilyMusic} and its underlying Scheme functions no
959 longer omit redundant note durations.  This makes it easier to
960 reliably recognize and format standalone durations in expressions
961 like
962 @example
963 @{ c4 d4 8 @}
964 @end example
965
966 @item
967 Beaming exceptions can now be constructed using the
968 @code{\beamExceptions} scheme function.  One can now write
969
970 @lilypond[verbatim,quote,relative=1]
971 \time #'(2 1) 3/16
972 \set Timing.beamExceptions =
973   \beamExceptions { 32[ 32] 32[ 32] 32[ 32] }
974 c16 c c |
975 \repeat unfold 6 { c32 } |
976 @end lilypond
977
978 @noindent
979 with multiple exceptions separated with @code{|} bar checks
980 (writing the exception pattern without pitches is convenient but
981 not mandatory).  Previously, setting the beam exceptions would
982 have required writing
983
984 @example
985 \set Timing.beamExceptions =
986 #'(                         ;start of alist
987    (end .                   ;entry for end of beams
988     (                       ;start of alist of end points
989      ((1 . 32) . (2 2 2))   ;rule for 1/32 beams -- end each 1/16
990     )))
991 @end example
992
993 @item
994 The most common articulations are now reflected in MIDI output.
995 Accent and marcato make notes louder; staccato, staccatissimo and
996 portato make them shorter. Breath marks shorten the previous
997 note.
998
999 This behavior is customizable through the @code{midiLength} and
1000 @code{midiExtraVelocity} properties on @code{ArticulationEvent}.
1001 See @file{script-init.ly} for examples.
1002
1003 @item
1004 The PostScript functionality of stroke adjustment is no longer
1005 applied automatically but left to the discretion of the PostScript
1006 device (by default, Ghostscript uses it for resolutions up to
1007 150dpi when generating raster images).  When it is enabled, a more
1008 complex drawing algorithm designed to benefit from stroke
1009 adjustment is employed mostly for stems and bar lines.
1010
1011 Stroke adjustment can be forced by specifying the command line
1012 option @samp{-dstrokeadjust} to LilyPond.  When generating
1013 @code{PDF} files, this will usually result in markedly better
1014 looking @code{PDF} previews but significantly larger file size.
1015 Print quality at high resolutions will be unaffected.
1016
1017 @item
1018 Default text fonts have been changed from
1019 @code{Century Schoolbook L}, @code{sans-serif}, and @code{monospace}.
1020
1021 For @code{svg} backend:
1022 @multitable @columnfractions .15 .30
1023 @headitem Family @tab Default font
1024 @item @emph{roman} @tab @code{serif}
1025 @item @emph{sans} @tab @code{sans-serif}
1026 @item @emph{typewriter} @tab @code{monospace}
1027 @end multitable
1028
1029 @code{serif}, @code{sans-serif}, and @code{monospace} are
1030 @code{generic-family} in SVG and CSS specifications.
1031
1032 For other backends:
1033 @multitable @columnfractions .15 .30 .55
1034 @headitem Family @tab Default font (alias) @tab Alias definition lists
1035 @item @emph{roman}
1036 @tab @code{LilyPond Serif}
1037 @tab
1038 TeX Gyre Schola,
1039 C059, Century SchoolBook URW, Century Schoolbook L,
1040 DejaVu Serif,
1041 ..., serif
1042 @item @emph{sans}
1043 @tab @code{LilyPond Sans Serif}
1044 @tab
1045 TeX Gyre Heros,
1046 Nimbus Sans, Nimbus Sans L, DejaVu Sans,
1047 ..., sans-serif
1048 @item @emph{typewriter}
1049 @tab @code{LilyPond Monospace}
1050 @tab
1051 TeX Gyre Cursor,
1052 Nimbus Mono PS, Nimbus Mono, Nimbus Mono L,
1053 DejaVu Sans Mono,
1054 ..., monospace
1055 @end multitable
1056
1057 @code{LilyPond Serif}, @code{LilyPond Sans Serif},
1058 and @code{LilyPond Monospace} are font aliases defined
1059 in the LilyPond dedicated FontConfig configuration file
1060 @code{00-lilypond-fonts.conf}.
1061 Where a character dosen't exist in the first font listed,
1062 the next font listed will be used instead for that character.
1063 For details of alias definitions, please see
1064 to @code{00-lilypond-fonts.conf} under the installed directory.
1065
1066 @item
1067 When using OpenType fonts, font features can be used.
1068 Note: Not all OpenType fonts have all functions.
1069
1070 @lilypond[quote,verbatim]
1071 % True small caps
1072 \markup { Normal Style: Hello HELLO }
1073 \markup { \caps { Small Caps: Hello } }
1074 \markup { \override #'(font-features . ("smcp"))
1075           { True Small Caps: Hello } }
1076
1077 % Number styles
1078 \markup { Normal Number Style: 0123456789 }
1079 \markup { \override #'(font-features . ("onum"))
1080           { Old Number Style: 0123456789 } }
1081
1082 % Stylistic Alternates
1083 \markup { \override #'(font-features . ("salt 0"))
1084           { Stylistic Alternates 0: εφπρθ } }
1085 \markup { \override #'(font-features . ("salt 1"))
1086           { Stylistic Alternates 1: εφπρθ } }
1087
1088 % Multiple features
1089 \markup { \override #'(font-features . ("onum" "smcp" "salt 1"))
1090           { Multiple features: Hello 0123456789 εφπρθ } }
1091 @end lilypond
1092
1093 @end itemize
1094
1095 @ifhtml
1096 For older news, go to
1097 @uref{http://lilypond.org/doc/v2.18/Documentation/changes/},
1098 @uref{http://lilypond.org/doc/v2.16/Documentation/changes/},
1099 or @uref{../,go back} to the Documentation index.
1100
1101
1102 @end ifhtml
1103
1104 @bye