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