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