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