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