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