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