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