]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/changes.tely
Merge branch 'master' into lilypond/translation
[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 Flags are now treated as separate objects rather than as stem parts.
66 @lilypond[fragment,quote,relative=2]
67 \override Flag #'color = #red
68 g8
69 @end lilypond
70
71 @item
72 Two alternative methods for bar numbering can be set, especially for
73 when using repeated music;
74
75 @lilypond[fragment,quote,relative=1,noragged-right]
76 \relative c'{
77   \set Score.alternativeNumberingStyle = #'numbers
78   \repeat volta 3 { c4 d e f | }
79     \alternative {
80       { c4 d e f | c2 d \break }
81       { f4 g a b | f4 g a b | f2 a | \break }
82       { c4 d e f | c2 d }
83     }
84   c1 \break
85   \set Score.alternativeNumberingStyle = #'numbers-with-letters
86   \repeat volta 3 { c,4 d e f | }
87     \alternative {
88       { c4 d e f | c2 d \break }
89       { f4 g a b | f4 g a b | f2 a | \break }
90       { c4 d e f | c2 d }
91     }
92   c1
93 }
94 @end lilypond
95
96 @item
97 The following is a fundamental change in LilyPond's music
98 representation: Rhythmic events like @code{LyricEvent} and
99 @code{NoteEvent} are no longer wrapped in @code{EventChord} unless they
100 have been actually entered as part of a chord in the input.  If you
101 manipulate music expressions in Scheme, the new behavior may require
102 changes in your code.  The advantages of making input and music match
103 more closely are numerous: music functions previously worked differently
104 when used inside or outside of chords.  Now they are the same, including
105 all the possibilities of argument parsing.  You can now use music
106 variables inside of chords: a construct like
107 @lilypond[quote,ragged-right]
108 tonic=fis'
109 { <\tonic \transpose c g \tonic> }
110 @end lilypond
111 @noindent
112 would have been unthinkable previously.  You can use
113 @code{#@{@dots{}#@}} for constructing chord constituents.  Music
114 functions inside of chords are no longer specially treated and thus
115 accept the same arguments as outside of chords.  @code{\tweak} now works
116 on single notes without needing to wrap them in a chord.  String number
117 indications like @code{\1} can be used on single notes.  If you need to
118 suppress them in some context, override their @code{stencil} with
119 @code{##f}.
120
121 @item
122 Scheme expressions inside of embedded Lilypond (@code{#@{@dots{}#@}})
123 are now executed in lexical closure of the surrounding Scheme code.
124 @code{$} is no longer special in embedded Lilypond.  It can be used
125 unconditionally in Lilypond code for immediate evaluation, similar to
126 how @code{ly:export} could previously be used.  @code{ly:export} has
127 been removed.  As a consequence, @code{#} is now free to delay
128 evaluation of its argument until the parser actually reduces the
129 containing expression, greatly reducing the potential for premature
130 evaluation.
131
132 @item
133 Support for jazz-like chords has been improved: Lydian and altered
134 chords are recognised; separators between chord modifiers are now
135 treated independently of separators between ``slash'' chords and their
136 bass notes (and by default, slashes are now only used for the latter
137 type of separator); additional pitches are no longer prefixed with
138 ``add'' by default; and the ``m'' in minor chords can be customized.
139 @ruser{Customizing chord names} for more information.
140
141 @item
142 The @code{\markuplines} command has been renamed to @code{\markuplist}
143 for a better match with its semantics and general Lilypond
144 nomenclature.
145
146 @item
147 The interface for specifying string tunings in tablature has been
148 simplified considerably.
149
150 @item
151 Beams can now have their slopes preserved over line breaks.
152 @lilypond[fragment,quote,relative=2]
153 \override Beam #'breakable = ##t
154 a8[ b c d e f g \bar "" \break f e d c b a]
155 \once \override Beam #'positions = #beam::align-with-broken-parts
156 a8[ b c d e f g \bar "" \break f e d c b a]
157 \once \override Beam #'positions = #beam::slope-like-broken-parts
158 a8[ b c d e f g \bar "" \break f e d c b a]
159 @end lilypond
160 To do this, several callback functions are now deprecated.
161 @itemize
162 @item @code{ly:beam::calc-least-squares-positions}
163 @item @code{ly:beam::slope-damping}
164 @item @code{ly:beam::shift-region-to-valid}
165 @end itemize
166 Furthermore, @code{ly:beam::quanting} now takes an additional argument
167 to help calculations over line breaks.  All of these functions are now
168 automatically called when setting the @code{positions} parameter.
169
170 @item
171 In function arguments music, markups and Scheme expressions (as well
172 as several other syntactic entities) have become mostly
173 interchangeable and are told apart only by evaluating the respective
174 predicate.
175
176 @item
177 Music functions (and their close relatives) can now be defined with
178 optional arguments.
179
180 @item
181 For defining commands executed only for their side-effects,
182 @code{define-void-function} is now available.
183
184 @item
185 There is a new @code{define-event-function} command in analogy to
186 @code{define-music-function} that can be used for defining music
187 functions acting as events without requiring a direction specifier
188 (@code{-}, @code{^}, or @code{_}) placed before them.
189 @lilypond[quote,verbatim,ragged-right]
190 dyn=#(define-event-function (parser location arg) (markup?)
191          (make-dynamic-script arg))
192 \relative c' { c\dyn pfsss }
193 @end lilypond
194
195 @item
196 A list of ASCII aliases for special characters can be included.
197 @lilypond[quote,verbatim]
198 \paper {
199   #(include-special-characters)
200 }
201 \markup "&bull; &dagger; &copyright; &OE; &ss; &para;"
202 @end lilypond
203
204 @item
205 There is a new @code{define-scheme-function} command in analogy to
206 @code{define-music-function} that can be used to define functions
207 evaluating to Scheme expressions while accepting arguments in Lilypond
208 syntax.
209
210 @item
211 The construct @code{#@{ @dots{} #@}} can now be used not just for
212 constructing sequential music lists, but also for single music events,
213 void music expressions, post events, markups (mostly freeing users from
214 having to use the @code{markup} macro), markup lists, number
215 expressions, context definitions and modifications, and a few other
216 things.  If it encloses nothing or only a single music event, it no
217 longer returns a sequential music list but rather a void music
218 expression or just the music event itself, respectively.
219
220 @item
221 New command-line option @option{--loglevel=@var{level}} to control how much output
222 LilyPond creates. Possible values are ERROR, WARN, BASIC_PROGRESS, PROGRESS, DEBUG.
223
224 @item
225 @code{\set \once} now correctly resets the property value to the previous value.
226 @lilypond[fragment,quote,relative=2]
227   \set fingeringOrientations = #'(left)
228   <e-1>4
229   \once \set fingeringOrientations = #'(right)
230   <e-1>
231   <e-1>-"left"
232 @end lilypond
233
234 @item
235 The alignment of dynamic spanners (hairpins, text crescendo, etc.) is now
236 automatically broken if a different direction is explicitly given.
237 @lilypond[fragment,quote,relative=2]
238 c4_\< c c^\> c c1_\p
239 @end lilypond
240
241
242 @item
243 Appoggiaturas and acciaccaturas now also work inside a slur, not only inside
244 a phrasing slur. Also, a function @code{\slashedGrace} was added that does
245 not use a slur from the acciaccatura note.
246 @lilypond[fragment,quote,relative=2]
247 c4( \appoggiatura e8 d4 \acciaccatura e8 d4 \slashedGrace e8 c4)
248 @end lilypond
249
250
251 @item
252 To suppress the line on a crescendo text spanner (and other similar spanners),
253 LilyPond now fully supports the @code{#'style = #'none} property.
254 @lilypond[fragment,quote,relative=2]
255 \override DynamicTextSpanner #'style = #'none
256 c4\cresc c c g, c'\p
257 @end lilypond
258
259 @item
260 LilyPond.app now supports MacOS X 10.7, thanks Christian Hitz!
261
262 @item
263 Glissandi can now span multiple lines.
264
265 @end itemize
266
267 @ifhtml
268 For older news, go to
269 @uref{http://lilypond.org/doc/v2.14/Documentation/changes/},
270 @uref{http://lilypond.org/doc/v2.12/Documentation/topdocs/NEWS.html},
271 or @uref{../,go back} to the Documentation index.
272
273
274 @end ifhtml
275
276 @bye