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