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