]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/changes.tely
5dc59995355446fa4778b59d45ad1feadb5c8fd3
[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 @item
64 A new command @code{\magnifyMusic} has been added, which allows
65 the notation size to be changed without changing the staff size,
66 while automatically scaling stems, beams, and horizontal spacing.
67
68 @lilypond[verbatim,quote]
69 \new Staff <<
70   \new Voice \relative {
71     \voiceOne
72     <e' e'>4 <f f'>8. <g g'>16 <f f'>8 <e e'>4 r8
73   }
74   \new Voice \relative {
75     \voiceTwo
76     \magnifyMusic 0.63 {
77       \override Score.SpacingSpanner.spacing-increment = #(* 1.2 0.63)
78       r32 c'' a c a c a c r c a c a c a c
79       r c a c a c a c a c a c a c a c
80     }
81   }
82 >>
83 @end lilypond
84
85 @item
86 A new flexible template suitable for a range of choral music, is now
87 provided.  This may be used to create simple choral music, with or
88 without piano accompaniment, in two or four staves. Unlike other
89 templates, this template is @q{built-in}, which means it does not
90 need to be copied and edited: instead it is simply @code{\include}'d
91 in the input file.  For details, see @rlearning{Built-in templates}.
92
93 @item
94 The positioning of tuplet numbers for kneed beams has been significantly
95 improved.  Previously, tuplet numbers were placed according to the
96 position of the tuplet bracket, even if it was not printed.  This could
97 lead to stranded tuplet numbers.  Now they are now positioned
98 closer to the kneed-beam when an appropriate beam segment exists for its
99 placement and when the the bracket is not drawn.
100
101 Collision detection is also added, offsetting horizontally if too close
102 to an adjoining note column but preserving the number's vertical
103 distance from the kneed beam.  If the number itself is too large to
104 fit in the available space the original, bracket-based, positioning
105 system is used instead; and in the event of a collision (e.g. with an
106 accidental) the tuplet number is moved vertically away instead.
107
108 @lilypond[verbatim,fragment,quote,relative=1]
109 \time 3/4
110 \override Beam.auto-knee-gap = 3
111 \tuplet 3/2 4 {
112   g8 c'' e,
113   c'8 g,, e''
114   g,,8 e''' c,,
115 }
116 @end lilypond
117
118 @noindent
119 The original kneed-beam tuplet behavior is still available through an
120 @code{\override} via a new, @code{knee-to-beam} property.
121
122 @lilypond[verbatim,fragment,quote,relative=1]
123 \time 3/4
124 \override Beam.auto-knee-gap = 3
125 \override TupletNumber.knee-to-beam = ##f
126 \tuplet 3/2 4 {
127   g8 c'' e,
128   c'8 g,, e''
129   g,,8 e''' c,,
130 }
131 @end lilypond
132
133 @item
134 @code{\lyricsto} and @code{\addLyrics} have been @q{harmonized}.  Both
135 now accept the same kind of delimited argument list that @code{\lyrics}
136 and @code{\chords} accept.  Backward compatibility has been added so
137 music identifiers (i.e. @code{\mus}) are permitted as arguments.  A
138 @code{convert-ly} rule has been added that removes redundant uses of
139 @code{\lyricmode} and rearranges combinations with context starters such
140 that @code{\lyricsto} in general is applied last (i.e. like
141 @code{\lyricmode} would be).
142
143 @item
144 Scheme functions and identifiers can now be used as output definitions.
145
146 @item
147 Scheme expressions can now be used as chord constituents.
148
149 @item
150 Improved visual spacing of small and regular @q{MI} Funk and Walker
151 noteheads so they are now the same width as other shaped notes in
152 their respective sets.  @code{SOL} noteheads are also now visually
153 improved when used with both the normal Aiken and Sacred Harp heads, as
154 well as with the thin variants.
155
156 @item
157 @code{LeftEdge} now has a definable @code{Y-extent} (i.e.vertical).  See
158 @rinternals{LeftEdge}.
159
160 @item
161 Added a new @code{make-path-stencil} function that supports all
162 @code{path} commands both relative and absolute:
163
164 @code{lineto}, @code{rlineto}, @code{curveto}, @code{rcurveto},
165 @code{moveto}, @code{rmoveto}, @code{closepath}.  The function also
166 supports @q{single-letter} syntax used in standard SVG path commands:
167
168 @code{L}, @code{l}, @code{C}, @code{c}, @code{M}, @code{m}, @code{Z} and
169 @code{z}.  The new command is also backward-compatible with the original
170 @code{make-connected-path-stencil} function.  Also see
171 @file{scm/stencil.scm}.
172
173 @item
174 Context properties named in the @samp{alternativeRestores} property are
175 restored to their value at the start of the @emph{first} alternative in
176 all subsequent alternatives.
177
178 Currently the default set restores @q{current meter};
179
180 @lilypond[verbatim,fragment,quote,relative=2]
181 \time 3/4
182 \repeat volta 2 { c2 e4 | }
183 \alternative {
184   { \time 4/4 f2 d | }
185   { f2 d4 | }
186 }
187 g2. |
188 @end lilypond
189
190 @noindent
191 @q{measure position};
192
193 @lilypond[verbatim,fragment,quote,relative=2]
194 \time 3/4
195 \repeat volta 2 { c2 e4 | }
196 \alternative {
197   { \time 4/4
198     \set Timing.measurePosition = #(ly:make-moment -1/2)
199     f2 | }
200   { f2 d4 | }
201 }
202 g2. |
203 @end lilypond
204
205 @noindent
206 and @q{chord changes};
207
208 @lilypond[verbatim,fragment,quote]
209 <<
210   \new ChordNames {
211     \set chordChanges = ##t
212     \chordmode { c1:m d:m c:m d:m }
213   }
214   \new Staff {
215     \repeat volta 2 { \chordmode { c1:m } }
216     \alternative {
217       { \chordmode { d:m } }
218       { \chordmode { c:m } }
219     }
220   \chordmode { d:m }
221 }
222 >>
223 @end lilypond
224
225 @item
226 Improved MIDI output for breathe marks.  After tied notes, breaths take
227 time @emph{only} from the last note of the tie; e.g.
228 @code{@{ c4~ c8 \breathe @}} performs as @code{@{ c4~ c16 r @}} instead
229 of @code{@{ c4 r8 @}}.  This is more consistent with articulations and
230 how humans interpret breaths after ties.  It now also makes it easier to
231 align simultaneous breathe marks over multiple parts, all with different
232 note lengths.
233
234 @item
235 A new note head style for Tabulature has been added;
236 @code{TabNoteHead.style = #'slash}.
237
238 @item
239 Four new Clef glyphs have been added @emph{Double G}, @emph{Tenor G},
240 @emph{Varpercussion} and @emph{varC} and their related tessitura.
241 @lilypond[verbatim,quote,fragment]
242   \override Staff.Clef.full-size-change = ##t
243
244   \clef "GG" c c c c
245   \clef "tenorG" c c c c
246   \clef "varC" c c c c
247   \clef "altovarC" c c c c
248   \clef "tenorvarC" c c c c
249   \clef "baritonevarC" c c c c
250   \clef "varpercussion" c c c c
251
252   \break
253   \override Staff.Clef.full-size-change = ##f
254
255   \clef "GG" c c c c
256   \clef "tenorG" c c c c
257   \clef "varC" c c c c
258   \clef "altovarC" c c c c
259   \clef "tenorvarC" c c c c
260   \clef "baritonevarC" c c c
261   \clef "varpercussion" c c c c
262 @end lilypond
263
264 @item
265 Isolated durations in music sequences now stand for unpitched
266 notes.  This may be useful for specifying rhythms to music or
267 scheme functions.  When encountered in the final score, the
268 pitches are provided by the preceding note or chord.  Here are two
269 examples where this makes for readable input:
270
271 @lilypond[verbatim,quote]
272 \new DrumStaff \with { \override StaffSymbol.line-count = 1 }
273 \drummode {
274   \time 3/4
275   tambourine 8 \tuplet 3/2 { 16 16 16 }
276              8 \tuplet 3/2 { 16 16 16 } 8 8 |
277 }
278 @end lilypond
279
280 @lilypond[verbatim,quote]
281 \new Staff { r16 c'16 ~ 8 ~ 4 ~ 2 | }
282 @end lilypond
283
284 @item
285 Beaming exceptions can now be constructed using the
286 @code{\beamExceptions} scheme function.  One can now write
287
288 @lilypond[verbatim,quote,relative=1]
289 \time #'(2 1) 3/16
290 \set Timing.beamExceptions =
291   \beamExceptions { 32[ 32] 32[ 32] 32[ 32] }
292 c16 c c |
293 \repeat unfold 6 { c32 } |
294 @end lilypond
295
296 @noindent
297 with multiple exceptions separated with @code{|} bar checks
298 (writing the exception pattern without pitches is convenient but
299 not mandatory).  Previously, setting the beam exceptions would
300 have required writing
301
302 @example
303 \set Timing.beamExceptions =
304 #'(                         ;start of alist
305    (end .                   ;entry for end of beams
306     (                       ;start of alist of end points
307      ((1 . 32) . (2 2 2))   ;rule for 1/32 beams -- end each 1/16
308     )))
309 @end example
310
311 @item
312 The most common articulations are now reflected in MIDI output.
313 Accent and marcato make notes louder; staccato, staccatissimo and
314 portato make them shorter. Breath marks shorten the previous
315 note.
316
317 This behavior is customizable through the @code{midiLength} and
318 @code{midiExtraVelocity} properties on @code{ArticulationEvent}.
319 See @file{script-init.ly} for examples.
320
321 @item
322 The PostScript functionality of stroke adjustment is no longer
323 applied automatically but left to the discretion of the PostScript
324 device (by default, Ghostscript uses it for resolutions up to
325 150dpi when generating raster images).  When it is enabled, a more
326 complex drawing algorithm designed to benefit from stroke
327 adjustment is employed mostly for stems and bar lines.
328
329 Stroke adjustment can be forced by specifying the command line
330 option @samp{-dstrokeadjust} to LilyPond.  When generating
331 @code{PDF} files, this will usually result in markedly better
332 looking @code{PDF} previews but significantly larger file size.
333 Print quality at high resolutions will be unaffected.
334
335 @end itemize
336
337 @ifhtml
338 For older news, go to
339 @uref{http://lilypond.org/doc/v2.18/Documentation/changes/},
340 @uref{http://lilypond.org/doc/v2.16/Documentation/changes/},
341 or @uref{../,go back} to the Documentation index.
342
343
344 @end ifhtml
345
346 @bye