]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/changes.tely
Merge branch 'translation' into staging
[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.16 since 2.14
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 Use of @code{\tempo} specifications in @code{\midi} blocks (removed in
66 2.9.16 in favor of explicit @code{tempoWholesPerMinute} settings) has
67 seen a revival: now any kind of property-setting music is turned into
68 context definitions within of output specifications, allowing for
69 declarations like
70 @example
71 \layout @{ \accidentalStyle modern @}
72 \midi @{ \tempo 4. = 66 @}
73 @end example
74
75 @item
76 The LilyPond G clef has been redesigned - upper loop is now more balanced,
77 bottom crook sticks out less and the "spine" (main vertical line) is more
78 evenly curved. The old and new versions can be compared by looking at the
79 documentation:
80 @uref{http://lilypond.org/doc/v2.14/Documentation/notation/the-feta-font.html#clef-glyphs, old version},
81 @uref{http://lilypond.org/doc/v2.15/Documentation/notation/the-feta-font.html#clef-glyphs, new version}.
82
83 @item
84 Lilypond's stencil commands have been simplified to allow for less code
85 duplication and better height approximations of graphical objects.  The
86 following stencil commands have been eliminated:
87 @itemize
88 @item @code{beam}
89 @item @code{bezier-sandwich}
90 @item @code{bracket}
91 @item @code{dashed-slur}
92 @item @code{dot}
93 @item @code{oval}
94 @item @code{repeat-slash}
95 @item @code{zigzag-line}
96 @end itemize
97
98 @item
99 Flags are now treated as separate objects rather than as stem parts.
100 @lilypond[fragment,quote,relative=2]
101 \override Flag #'color = #red
102 g8
103 @end lilypond
104
105 @item
106 Two alternative methods for bar numbering can be set, especially for
107 when using repeated music;
108
109 @lilypond[fragment,quote,relative=1,noragged-right]
110 \relative c'{
111   \set Score.alternativeNumberingStyle = #'numbers
112   \repeat volta 3 { c4 d e f | }
113     \alternative {
114       { c4 d e f | c2 d \break }
115       { f4 g a b | f4 g a b | f2 a | \break }
116       { c4 d e f | c2 d }
117     }
118   c1 \break
119   \set Score.alternativeNumberingStyle = #'numbers-with-letters
120   \repeat volta 3 { c,4 d e f | }
121     \alternative {
122       { c4 d e f | c2 d \break }
123       { f4 g a b | f4 g a b | f2 a | \break }
124       { c4 d e f | c2 d }
125     }
126   c1
127 }
128 @end lilypond
129
130 @item
131 The following is a fundamental change in LilyPond's music
132 representation: Rhythmic events like @code{LyricEvent} and
133 @code{NoteEvent} are no longer wrapped in @code{EventChord} unless they
134 have been actually entered as part of a chord in the input.  If you
135 manipulate music expressions in Scheme, the new behavior may require
136 changes in your code.  Calling the music function @code{\eventChords} or
137 the Scheme function @code{event-chord-wrap!}  converts to the old
138 representation; using one of those might be easiest for keeping legacy
139 code operative.
140
141 The following three items are consequences of this change.
142
143 @item
144 Music functions now work the same when used inside or outside of chords,
145 including all the possibilities of argument parsing.  Music variables
146 can be used inside of chords: a construct like
147 @lilypond[verbatim,quote,ragged-right]
148 tonic=fis'
149 { <\tonic \transpose c g \tonic> }
150 @end lilypond
151 @noindent
152 now works as expected.  One can use @code{#@{@dots{}#@}} for
153 constructing chord constituents.  @code{\tweak} now works on single
154 notes without needing to wrap them in a chord.  Using it on command
155 events and lyrics is now possible, but not likely to give results yet.
156
157 @item
158 The repetitive chord entry aid @code{q} has been reimplemented.
159 Repeated chords are now replaced right before interpreting a music
160 expression.  In case the user wants to retain some events of the
161 original chord, he can run the repeat chord replacement function
162 @code{\chordRepeats} manually.
163
164 @item
165 String numbers and right hand fingerings on single notes now appear
166 without having to be written inside of chord brackets.
167
168 @item
169 Scheme expressions inside of embedded Lilypond (@code{#@{@dots{}#@}})
170 are now executed in lexical closure of the surrounding Scheme code.
171 @code{$} is no longer special in embedded Lilypond.  It can be used
172 unconditionally in Lilypond code for immediate evaluation, similar to
173 how @code{ly:export} could previously be used.  @code{ly:export} has
174 been removed.  As a consequence, @code{#} is now free to delay
175 evaluation of its argument until the parser actually reduces the
176 containing expression, greatly reducing the potential for premature
177 evaluation.
178
179 @item
180 Support for jazz-like chords has been improved: Lydian and altered
181 chords are recognised; separators between chord modifiers are now
182 treated independently of separators between ``slash'' chords and their
183 bass notes (and by default, slashes are now only used for the latter
184 type of separator); additional pitches are no longer prefixed with
185 ``add'' by default; and the ``m'' in minor chords can be customized.
186 @ruser{Customizing chord names} for more information.
187
188 @item
189 The @code{\markuplines} command has been renamed to @code{\markuplist}
190 for a better match with its semantics and general Lilypond
191 nomenclature.
192
193 @item
194 The interface for specifying string tunings in tablature has been
195 simplified considerably and employs the scheme function
196 @code{\stringTuning} for most purposes.
197
198 @item
199 Beams can now have their slopes preserved over line breaks.
200 @lilypond[fragment,quote,relative=2]
201 \override Beam #'breakable = ##t
202 a8[ b c d e f g \bar "" \break f e d c b a]
203 \once \override Beam #'positions = #beam::align-with-broken-parts
204 a8[ b c d e f g \bar "" \break f e d c b a]
205 \once \override Beam #'positions = #beam::slope-like-broken-parts
206 a8[ b c d e f g \bar "" \break f e d c b a]
207 @end lilypond
208 To do this, several callback functions are now deprecated.
209 @itemize
210 @item @code{ly:beam::calc-least-squares-positions}
211 @item @code{ly:beam::slope-damping}
212 @item @code{ly:beam::shift-region-to-valid}
213 @end itemize
214 Furthermore, @code{ly:beam::quanting} now takes an additional argument
215 to help calculations over line breaks.  All of these functions are now
216 automatically called when setting the @code{positions} parameter.
217
218 @item
219 In function arguments music, markups and Scheme expressions (as well as
220 several other syntactic entities) have become mostly interchangeable and
221 are told apart only by evaluating the respective predicate.  In several
222 cases, the predicate is consulted by the parser, like when deciding
223 whether to interpret @code{-3} as a number or a fingering event.
224
225 @item
226 Music functions (and their close relatives) can now be defined with
227 optional arguments.
228
229 @item
230 For defining commands executed only for their side-effects,
231 @code{define-void-function} is now available.
232
233 @item
234 There is a new @code{define-event-function} command in analogy to
235 @code{define-music-function} that can be used for defining music
236 functions acting as post events without requiring a direction specifier
237 (@code{-}, @code{^}, or @code{_}) placed before them.
238 @lilypond[quote,verbatim,ragged-right]
239 dyn=#(define-event-function (parser location arg) (markup?)
240          (make-dynamic-script arg))
241 \relative c' { c\dyn pfsss }
242 @end lilypond
243
244 @item
245 A list of ASCII aliases for special characters can be included.
246 @lilypond[quote,verbatim]
247 \paper {
248   #(include-special-characters)
249 }
250 \markup "&bull; &dagger; &copyright; &OE; &ss; &para;"
251 @end lilypond
252
253 @item
254 There is a new @code{define-scheme-function} command in analogy to
255 @code{define-music-function} that can be used to define functions
256 evaluating to Scheme expressions while accepting arguments in Lilypond
257 syntax.
258
259 @item
260 The construct @code{#@{ @dots{} #@}} can now be used not just for
261 constructing sequential music lists, but also for pitches (distinguished
262 from single note events by the absence of a duration or other
263 information that can't be part of a pitch), single music events, void
264 music expressions, post events, markups (mostly freeing users from
265 having to use the @code{markup} macro), markup lists, number
266 expressions, context definitions and modifications, and a few other
267 things.  If it encloses nothing or only a single music event, it no
268 longer returns a sequential music list but rather a void music
269 expression or just the music event itself, respectively.
270
271 @item
272 Pitches can be used on the right side of assignments.  They are
273 distinguished from single note events by the absence of a duration or
274 other information that can't be part of a pitch.
275
276 @item
277 New command-line option @option{--loglevel=@var{level}} to control how much output
278 LilyPond creates. Possible values are ERROR, WARN, BASIC_PROGRESS, PROGRESS, DEBUG.
279
280 @item
281 @code{\once \set} now correctly resets the property value to the previous value.
282 @lilypond[fragment,quote,relative=2]
283   \set fingeringOrientations = #'(left)
284   <e-1>4
285   \once \set fingeringOrientations = #'(right)
286   <e-1>
287   <e-1>-"left"
288 @end lilypond
289
290 @item
291 The alignment of dynamic spanners (hairpins, text crescendo, etc.) is now
292 automatically broken if a different direction is explicitly given.
293 @lilypond[fragment,quote,relative=2]
294 c4_\< c c^\> c c1_\p
295 @end lilypond
296
297
298 @item
299 Appoggiaturas and acciaccaturas now also work inside a slur, not only inside
300 a phrasing slur. Also, a function @code{\slashedGrace} was added that does
301 not use a slur from the acciaccatura note.
302 @lilypond[fragment,quote,relative=2]
303 c4( \appoggiatura e8 d4 \acciaccatura e8 d4 \slashedGrace e8 c4)
304 @end lilypond
305
306
307 @item
308 To suppress the line on a crescendo text spanner (and other similar spanners),
309 LilyPond now fully supports the @code{#'style = #'none} property.
310 @lilypond[fragment,quote,relative=2]
311 \override DynamicTextSpanner #'style = #'none
312 c4\cresc c c g, c'\p
313 @end lilypond
314
315 @item
316 LilyPond.app now supports MacOS X 10.7, thanks Christian Hitz!
317
318 @item
319 Glissandi can now span multiple lines.
320
321 @end itemize
322
323 @ifhtml
324 For older news, go to
325 @uref{http://lilypond.org/doc/v2.14/Documentation/changes/},
326 @uref{http://lilypond.org/doc/v2.12/Documentation/topdocs/NEWS.html},
327 or @uref{../,go back} to the Documentation index.
328
329
330 @end ifhtml
331
332 @bye