]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/changes.tely
Merge branch 'master' 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 visual style of tremolo slashes (shape, style and slope)
66 is now more finely controlled.
67 @lilypond[quote,relative=2]
68   a8:32 b: c: d:
69   \override StemTremolo.shape = #'beam-like
70   a: b: c: d:
71   \override StemTremolo.style = #'constant
72   a: b: c: d:
73   g,2
74 @end lilypond
75
76
77 @item
78 Multi-measure rests have length according to their total duration,
79 under the control of @code{MultiMeasureRest.space-increment}.
80 @lilypond[quote]
81 { \compressFullBarRests
82   \override Staff.MultiMeasureRest.space-increment = 3.0
83   R1*2 R1*12 R1*64 }
84 @end lilypond
85
86 @item
87 Page numbers may now be printed in roman numerals, by setting the
88 @code{page-number-type} paper variable.
89
90 @item
91 It is now possible to use @code{\time} and @code{\partial}
92 together to change the time signature in mid measure.
93
94 @lilypond[verbatim,quote,relative=1]
95 \override Score.BarNumber.break-visibility = #end-of-line-invisible
96 \partial 4 \time 3/4 f4 | 2 4 | 2 \bar "||"
97 \time 9/8 \partial 4. f8 8 8 | 2. 8 8 8 |
98 @end lilypond
99
100 @item
101 It is now possible to override the @code{text} property of
102 chord names.
103
104 @lilypond[verbatim,fragment,quote]
105 <<
106 \new ChordNames \chordmode {
107   a' b c:7
108   \once \override ChordName.text = #"foo"
109   d
110 }
111 >>
112 @end lilypond
113
114 @item
115 Improved horizontal alignment when using @code{TextScript},
116 with @code{DynamicText} or @code{LyricText}.
117
118 @item
119 A new command @code{\magnifyStaff} has been added which scales staff
120 sizes, staff lines, bar lines, beamlets and horizontal spacing generally
121 at the @code{Staff} context level.  Staff lines are prevented from being
122 scaled smaller than the default since the thickness of stems, slurs, and
123 the like are all based on the staff line thickness.
124
125 @item
126 @code{InstrumentName} now supports @code{text-interface}.
127
128 @item
129 There is now support for controlling the @q{expression level} of
130 MIDI channels using the @code{Staff.midiExpression} context property.
131 This can be used to alter the perceived volume of even sustained notes
132 (albeit in a very @q{low-level} way) and accepts a number value between
133 @code{0.0} and @code{1.0}.
134
135 @example
136 \score @{
137   \new Staff \with @{
138     midiExpression = #0.6
139     midiInstrument = #"clarinet"
140   @}
141   <<
142     @{ a'1~ a'1 @}
143     @{
144       \set Staff.midiExpression = #0.7 s4\f\<
145       \set Staff.midiExpression = #0.8 s4
146       \set Staff.midiExpression = #0.9 s4
147       \set Staff.midiExpression = #1.0 s4
148
149       \set Staff.midiExpression = #0.9 s4\>
150       \set Staff.midiExpression = #0.8 s4
151       \set Staff.midiExpression = #0.7 s4
152       \set Staff.midiExpression = #0.6 s4\!
153     @}
154   >>
155   \midi @{ @}
156 @}
157 @end example
158
159 @item
160 Support for making it easier to use alternative @q{music} fonts other
161 than the default Emmentaler in LilyPond has been added.  See
162 @uref{http://fonts.openlilylib.org/} for more information.
163
164 @item
165 Grobs and their parents can now be aligned separately allowing
166 more flexibility for grob positions.  For example the @q{left} edge of a
167 grob can now be aligned on the @q{center} of its parent.
168
169 @item
170 Improvements to the @code{\partial} command have been made to
171 avoid problems when using multiple, parallel contexts.
172
173 @item @code{\chordmode} can now use @code{< >} and @code{<< >>}
174 constructs.
175
176 @item
177 The @code{NullVoice} context is now @q{below} @code{Score}.
178
179 @item
180 A new command @code{\tagGroup} has now been added.  This compliments
181 the existing @code{\keepWithTag} and @code{\removeWithTag} commands.
182 For Example:
183
184 @example
185 \tagGroup #'(violinI violinII viola cello)
186 @end example
187
188 declares a list of @q{tags} that belong to a single @q{tag group}.
189
190 @example
191 \keepwithTag#'violinI
192 @end example
193
194 Is now only concerned with @q{tags} from @q{violinI}’s tag group.
195
196 Any element of the included music tagged with one or more tags from the
197 group, but @emph{not} with @var{violinI}, will be removed.
198
199 @item
200 The @code{\addlyrics} function now works with arbitrary contexts
201 incuding @code{Staff}.
202
203 @item
204 String numbers can now also be used to print roman numerals
205 (e.g. for unfretted string instruments).
206 @lilypond[verbatim,quote,relative=2]
207 c2\2
208 \romanStringNumbers
209 c\2
210 \arabicStringNumbers
211 c1\3
212 @end lilypond
213
214 @item
215 The @code{thin-kern} property of the @code{BarLine} grob has been
216 renamed to @code{segno-kern}.
217
218 @item
219 @code{KeyCancellation} grobs now ignore cue clefs (like
220 @code{KeySignature} grobs do).
221
222 @item
223 Add support for @code{\once@tie{}\unset}
224
225 @item
226 It is now possible to individually color both the dots and parentheses
227 in fret diagrams when using the @code{\fret-diagram-verbose} markup
228 command.
229
230 @lilypond[verbatim,quote,relative=1]
231 \new Voice {
232   c1^\markup {
233     \override #'(fret-diagram-details . (
234                  (finger-code . in-dot))) {
235       \fret-diagram-verbose #'((mute 6)
236                                (place-fret 5 3 1 red)
237                                (place-fret 4 5 2 inverted)
238                                (place-fret 3 5 3 green)
239                                (place-fret 2 5 4 blue inverted)
240                                (place-fret 1 3 1 violet)
241                                (barre 5 1 3 ))
242     }
243   }
244   c1^\markup {
245     \override #'(fret-diagram-details . (
246                  (finger-code . below-string))) {
247       \fret-diagram-verbose #'((mute 6)
248                              (place-fret 5 3 1 red parenthesized)
249                              (place-fret 4 5 2 yellow
250                                                default-paren-color
251                                                parenthesized)
252                              (place-fret 3 5 3 green)
253                              (place-fret 2 5 4 blue )
254                              (place-fret 1 3 1)
255                              (barre 5 1 3))
256     }
257   }
258 }
259 @end lilypond
260
261 @item
262 Two new properties have been added for use in
263 @code{fret-diagram-details} when using the @code{\fret-diagram-verbose}
264 markup command; @code{fret-label-horizontal-offset} which affects the
265 @code{fret-label-indication} and @code{paren-padding} which controls the
266 space between the dot and the parentheses surrounding it.
267
268 @lilypond[verbatim,quote,relative=1]
269 \new Voice {
270   c1^\markup {
271     \fret-diagram-verbose #'((mute 6)
272                              (place-fret 5 3 1)
273                              (place-fret 4 5 2)
274                              (place-fret 3 5 3)
275                              (place-fret 1 6 4 parenthesized)
276                              (place-fret 2 3 1)
277                              (barre 5 2 3))
278   }
279   c1^\markup {
280     \override #'(fret-diagram-details . (
281                  (fret-label-horizontal-offset . 2)
282                  (paren-padding . 0.25))) {
283       \fret-diagram-verbose #'((mute 6)
284                                (place-fret 5 3 1)
285                                (place-fret 4 5 2)
286                                (place-fret 3 5 3)
287                                (place-fret 1 6 4 parenthesized)
288                                (place-fret 2 3 1)
289                                (barre 5 2 3))
290     }
291   }
292 }
293 @end lilypond
294
295 @item
296 A new markup command @code{\justify-line} has been added.  Similar to
297 the @code{\fill-line} markup command except that instead of setting
298 @emph{words} in columns, the @code{\justify-line} command balances the
299 whitespace between them ensuring that when there are three or more
300 words in a markup, the whitespace is always consistent.
301
302 @lilypond[quote,verbatim,papersize=a6]
303 \markup \fill-line {oooooo oooooo oooooo oooooo}
304 \markup \fill-line {ooooooooo oooooooo oo ooo}
305 @end lilypond
306
307 @lilypond[quote,verbatim,papersize=a6]
308 \markup \justify-line {oooooo oooooo oooooo oooooo}
309 \markup \justify-line {ooooooooo oooooooo oo ooo}
310 @end lilypond
311
312 @item
313 A new command @code{\magnifyMusic} has been added, which allows
314 the notation size to be changed without changing the staff size,
315 while automatically scaling stems, beams, and horizontal spacing.
316
317 @lilypond[verbatim,quote]
318 \new Staff <<
319   \new Voice \relative {
320     \voiceOne
321     <e' e'>4 <f f'>8. <g g'>16 <f f'>8 <e e'>4 r8
322   }
323   \new Voice \relative {
324     \voiceTwo
325     \magnifyMusic 0.63 {
326       \override Score.SpacingSpanner.spacing-increment = #(* 1.2 0.63)
327       r32 c'' a c a c a c r c a c a c a c
328       r c a c a c a c a c a c a c a c
329     }
330   }
331 >>
332 @end lilypond
333
334 @item
335 A new flexible template suitable for a range of choral music, is now
336 provided.  This may be used to create simple choral music, with or
337 without piano accompaniment, in two or four staves. Unlike other
338 templates, this template is @q{built-in}, which means it does not
339 need to be copied and edited: instead it is simply @code{\include}'d
340 in the input file.  For details, see @rlearning{Built-in templates}.
341
342 @item
343 The positioning of tuplet numbers for kneed beams has been significantly
344 improved.  Previously, tuplet numbers were placed according to the
345 position of the tuplet bracket, even if it was not printed.  This could
346 lead to stranded tuplet numbers.  Now they are now positioned
347 closer to the kneed-beam when an appropriate beam segment exists for its
348 placement and when the the bracket is not drawn.
349
350 Collision detection is also added, offsetting horizontally if too close
351 to an adjoining note column but preserving the number's vertical
352 distance from the kneed beam.  If the number itself is too large to
353 fit in the available space the original, bracket-based, positioning
354 system is used instead; and in the event of a collision (e.g. with an
355 accidental) the tuplet number is moved vertically away instead.
356
357 @lilypond[verbatim,fragment,quote,relative=1]
358 \time 3/4
359 \override Beam.auto-knee-gap = 3
360 \tuplet 3/2 4 {
361   g8 c'' e,
362   c'8 g,, e''
363   g,,8 e''' c,,
364 }
365 @end lilypond
366
367 @noindent
368 The original kneed-beam tuplet behavior is still available through an
369 @code{\override} via a new, @code{knee-to-beam} property.
370
371 @lilypond[verbatim,fragment,quote,relative=1]
372 \time 3/4
373 \override Beam.auto-knee-gap = 3
374 \override TupletNumber.knee-to-beam = ##f
375 \tuplet 3/2 4 {
376   g8 c'' e,
377   c'8 g,, e''
378   g,,8 e''' c,,
379 }
380 @end lilypond
381
382 @item
383 @code{\lyricsto} and @code{\addLyrics} have been @q{harmonized}.  Both
384 now accept the same kind of delimited argument list that @code{\lyrics}
385 and @code{\chords} accept.  Backward compatibility has been added so
386 music identifiers (i.e. @code{\mus}) are permitted as arguments.  A
387 @code{convert-ly} rule has been added that removes redundant uses of
388 @code{\lyricmode} and rearranges combinations with context starters such
389 that @code{\lyricsto} in general is applied last (i.e. like
390 @code{\lyricmode} would be).
391
392 @item
393 Scheme functions and identifiers can now be used as output definitions.
394
395 @item
396 Scheme expressions can now be used as chord constituents.
397
398 @item
399 Improved visual spacing of small and regular @q{MI} Funk and Walker
400 noteheads so they are now the same width as other shaped notes in
401 their respective sets.  @code{SOL} noteheads are also now visually
402 improved when used with both the normal Aiken and Sacred Harp heads, as
403 well as with the thin variants.
404
405 @item
406 @code{LeftEdge} now has a definable @code{Y-extent} (i.e.vertical).  See
407 @rinternals{LeftEdge}.
408
409 @item
410 Added a new @code{make-path-stencil} function that supports all
411 @code{path} commands both relative and absolute:
412
413 @code{lineto}, @code{rlineto}, @code{curveto}, @code{rcurveto},
414 @code{moveto}, @code{rmoveto}, @code{closepath}.  The function also
415 supports @q{single-letter} syntax used in standard SVG path commands:
416
417 @code{L}, @code{l}, @code{C}, @code{c}, @code{M}, @code{m}, @code{Z} and
418 @code{z}.  The new command is also backward-compatible with the original
419 @code{make-connected-path-stencil} function.  Also see
420 @file{scm/stencil.scm}.
421
422 @item
423 Context properties named in the @samp{alternativeRestores} property are
424 restored to their value at the start of the @emph{first} alternative in
425 all subsequent alternatives.
426
427 Currently the default set restores @q{current meter};
428
429 @lilypond[verbatim,fragment,quote,relative=2]
430 \time 3/4
431 \repeat volta 2 { c2 e4 | }
432 \alternative {
433   { \time 4/4 f2 d | }
434   { f2 d4 | }
435 }
436 g2. |
437 @end lilypond
438
439 @noindent
440 @q{measure position};
441
442 @lilypond[verbatim,fragment,quote,relative=2]
443 \time 3/4
444 \repeat volta 2 { c2 e4 | }
445 \alternative {
446   { \time 4/4
447     \set Timing.measurePosition = #(ly:make-moment -1/2)
448     f2 | }
449   { f2 d4 | }
450 }
451 g2. |
452 @end lilypond
453
454 @noindent
455 and @q{chord changes};
456
457 @lilypond[verbatim,fragment,quote]
458 <<
459   \new ChordNames {
460     \set chordChanges = ##t
461     \chordmode { c1:m d:m c:m d:m }
462   }
463   \new Staff {
464     \repeat volta 2 { \chordmode { c1:m } }
465     \alternative {
466       { \chordmode { d:m } }
467       { \chordmode { c:m } }
468     }
469   \chordmode { d:m }
470 }
471 >>
472 @end lilypond
473
474 @item
475 Improved MIDI output for breathe marks.  After tied notes, breaths take
476 time @emph{only} from the last note of the tie; e.g.
477 @code{@{ c4~ c8 \breathe @}} performs as @code{@{ c4~ c16 r @}} instead
478 of @code{@{ c4 r8 @}}.  This is more consistent with articulations and
479 how humans interpret breaths after ties.  It now also makes it easier to
480 align simultaneous breathe marks over multiple parts, all with different
481 note lengths.
482
483 @item
484 A new note head style for Tabulature has been added;
485 @code{TabNoteHead.style = #'slash}.
486
487 @item
488 Four new Clef glyphs have been added @emph{Double G}, @emph{Tenor G},
489 @emph{Varpercussion} and @emph{varC} and their related tessitura.
490 @lilypond[verbatim,quote,fragment]
491   \override Staff.Clef.full-size-change = ##t
492
493   \clef "GG" c c c c
494   \clef "tenorG" c c c c
495   \clef "varC" c c c c
496   \clef "altovarC" c c c c
497   \clef "tenorvarC" c c c c
498   \clef "baritonevarC" c c c c
499   \clef "varpercussion" c c c c
500
501   \break
502   \override Staff.Clef.full-size-change = ##f
503
504   \clef "GG" c c c c
505   \clef "tenorG" c c c c
506   \clef "varC" c c c c
507   \clef "altovarC" c c c c
508   \clef "tenorvarC" c c c c
509   \clef "baritonevarC" c c c
510   \clef "varpercussion" c c c c
511 @end lilypond
512
513 @item
514 Isolated durations in music sequences now stand for unpitched
515 notes.  This may be useful for specifying rhythms to music or
516 scheme functions.  When encountered in the final score, the
517 pitches are provided by the preceding note or chord.  Here are two
518 examples where this makes for readable input:
519
520 @lilypond[verbatim,quote]
521 \new DrumStaff \with { \override StaffSymbol.line-count = 1 }
522 \drummode {
523   \time 3/4
524   tambourine 8 \tuplet 3/2 { 16 16 16 }
525              8 \tuplet 3/2 { 16 16 16 } 8 8 |
526 }
527 @end lilypond
528
529 @lilypond[verbatim,quote]
530 \new Staff { r16 c'16 ~ 8 ~ 4 ~ 2 | }
531 @end lilypond
532
533 @item
534 @code{\displayLilyMusic} and its underlying Scheme functions no
535 longer omit redundant note durations.  This makes it easier to
536 reliably recognize and format standalone durations in expressions
537 like
538 @example
539 @{ c4 d4 8 @}
540 @end example
541
542 @item
543 Beaming exceptions can now be constructed using the
544 @code{\beamExceptions} scheme function.  One can now write
545
546 @lilypond[verbatim,quote,relative=1]
547 \time #'(2 1) 3/16
548 \set Timing.beamExceptions =
549   \beamExceptions { 32[ 32] 32[ 32] 32[ 32] }
550 c16 c c |
551 \repeat unfold 6 { c32 } |
552 @end lilypond
553
554 @noindent
555 with multiple exceptions separated with @code{|} bar checks
556 (writing the exception pattern without pitches is convenient but
557 not mandatory).  Previously, setting the beam exceptions would
558 have required writing
559
560 @example
561 \set Timing.beamExceptions =
562 #'(                         ;start of alist
563    (end .                   ;entry for end of beams
564     (                       ;start of alist of end points
565      ((1 . 32) . (2 2 2))   ;rule for 1/32 beams -- end each 1/16
566     )))
567 @end example
568
569 @item
570 The most common articulations are now reflected in MIDI output.
571 Accent and marcato make notes louder; staccato, staccatissimo and
572 portato make them shorter. Breath marks shorten the previous
573 note.
574
575 This behavior is customizable through the @code{midiLength} and
576 @code{midiExtraVelocity} properties on @code{ArticulationEvent}.
577 See @file{script-init.ly} for examples.
578
579 @item
580 The PostScript functionality of stroke adjustment is no longer
581 applied automatically but left to the discretion of the PostScript
582 device (by default, Ghostscript uses it for resolutions up to
583 150dpi when generating raster images).  When it is enabled, a more
584 complex drawing algorithm designed to benefit from stroke
585 adjustment is employed mostly for stems and bar lines.
586
587 Stroke adjustment can be forced by specifying the command line
588 option @samp{-dstrokeadjust} to LilyPond.  When generating
589 @code{PDF} files, this will usually result in markedly better
590 looking @code{PDF} previews but significantly larger file size.
591 Print quality at high resolutions will be unaffected.
592
593 @end itemize
594
595 @ifhtml
596 For older news, go to
597 @uref{http://lilypond.org/doc/v2.18/Documentation/changes/},
598 @uref{http://lilypond.org/doc/v2.16/Documentation/changes/},
599 or @uref{../,go back} to the Documentation index.
600
601
602 @end ifhtml
603
604 @bye