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