]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/topdocs/NEWS.tely
Reformat and update syntax changes in NEWS
[lilypond.git] / Documentation / topdocs / NEWS.tely
1 \input texinfo @c -*- coding: utf-8; mode: texinfo; -*-
2 @setfilename NEWS.info
3 @settitle NEWS
4
5 @ifhtml
6 @macro inputfileref{DIR,NAME}
7 @uref{../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
8 @end macro
9 @macro usermanref{NAME}
10 @inforef{\NAME\,,../user/lilypond/lilypond}@c
11 @end macro
12 @end ifhtml
13
14 @ifnothtml
15 @macro inputfileref{DIR,NAME}
16 @file{\DIR\/\NAME\}@c
17 @end macro
18 @macro usermanref{NAME}
19 See user manual, \NAME\
20 @end macro
21 @end ifnothtml
22
23 @macro textanchor{NAME}
24 @html
25 <a name="\NAME\"></a>
26 @end html
27 @end macro
28
29
30 @documentencoding utf-8
31 @documentlanguage en
32
33 @finalout
34
35 @ifnottex
36 @node Top
37 @top
38 @end ifnottex
39 @unnumbered New features in 2.11 since 2.10
40
41 @ifhtml
42 This document is also available in @uref{NEWS.pdf,PDF}. It's part of
43 the @uref{../,LilyPond Documentation} .
44 @end ifhtml
45
46
47
48
49 @itemize @bullet
50
51 @ignore
52
53 HINTS
54
55 * only show verbatim input for syntax/input changes
56
57 * try to be as brief possible in those cases
58
59 * don't try to provide real-world examples, they often get too big,
60 which scares away people.
61
62 * Write complete sentences.
63
64 * only show user-visible changes. 
65
66 @end ignore
67
68 @item
69 The following syntax changes were made, in chronological order. In
70 addition, fret diagram properties have been moved to
71 @code{fret-diagram-details}, and @code{#'style} property is used to
72 select solid/dashed lines instead of @code{#'dash-fraction}.
73
74 @example
75 #'break-align-symbol -> #'break-align-symbols
76 scripts.caesura -> scripts.caesura.curved
77 \setEasyHeads -> \easyHeadsOn
78 \easyHeadsOff (new command)
79 \fatText -> \textLengthOn
80 \emptyText -> \textLengthOff
81 \set hairpinToBarline -> \override Hairpin #'to-barline
82 \compressMusic -> \scaleDurations
83 \octave -> \octaveCheck
84 \arpeggioUp -> \arpeggioArrowUp
85 \arpeggioDown -> \arpeggioArrowDown
86 \arpeggioNeutral -> \arpeggioNormal
87 \setTextCresc -> \crescTextCresc
88 \setTextDecresc -> \dimTextDecresc
89 \setTextDecr -> \dimTextDecr
90 \setTextDim -> \dimTextDim
91 \setHairpinCresc -> \crescHairpin
92 \setHairpinDecresc -> \dimHairpin
93 \sustainUp -> \sustainOff
94 \sustainDown -> \sustainOn
95 \sostenutoDown -> \sostenutoOn
96 \sostenutoUp -> \sostenutoOff
97 infinite-spacing-height -> extra-spacing-height
98 #(set-octavation oct) -> \ottava #oct
99 \put-adjacent markup axis dir markup -> \put-adjacent axis dir markup markup
100 @end example
101
102 @item
103 Arpeggios may now use ``parenthesis'' style brackets:
104
105 @lilypond[relative,ragged-right]
106   \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
107
108   % Note: does not work for cross staff arpeggios.
109   \override Arpeggio #'X-extent = #ly:grob::stencil-width
110   <c g' c>2\arpeggio ~ c
111 @end lilypond
112
113 @item
114 Enclosing text within boxes with rounded corners is now possible,
115 using the @code{rounded-box} command.
116
117 @item
118 @command{lilypond-book} can run any program instead of @command{latex}
119 to guess the line width, thanks to @code{--latex-program} command line
120 option.
121
122 @item
123 Underlining is now possible with the @code{\underline} markup command.
124
125 @item
126 It is now possible to specify, using the @code{page-count} variable in
127 the paper block, the number of pages that will be used.
128
129 @item
130 A new page breaking function, @code{ly:minimal-breaking}, is dedicated
131 to books with many pages or a lot of texts.
132
133 @item
134 A table of contents is included using @code{\markuplines \table-of-contents}.
135 Elements are added to it using the @code{\tocItem} command.
136
137 @item
138 Text spreading over several pages is entered using the
139 @code{\markuplines} keyword. Builtin markup list commands, such as
140 @code{\justified-lines} or @code{\wordwrap-lines} may be used, and new
141 ones created using the @code{define-markup-list-command} Scheme macro.
142
143 @item
144 Particular points of a book may be marked with the @code{\label}
145 command. Then, the page where these points are placed can be refered to
146 using the @code{\page-ref} markup command.
147
148 @item
149 Page breaking and page turning commands (@code{\pageBreak},
150 @code{\noPageBreak}, etc) can be used at top-level, between scores and
151 top-level markups.
152
153 @item
154 The following options are now changed as a @code{-d} sub-option:
155 @code{--backend}, @code{--safe}, @code{--preview} and
156 @code{--no-pages} (which became @code{-dno-print-pages}).  The @code{-b}
157 option does not exist any more.
158
159 @item
160 Improved testing procedure now catch changes in CPU and memory
161 performance, page layout, MIDI results and warnings.  This helps to
162 reduce the number of regression errors during development, resulting
163 in more stable releases.
164
165 See @uref{INSTALL.html#testing} for more information.
166 @item
167 Nested properties, such as @code{details} in @code{Slur}, can be
168 reverted as well.  The syntax for this is
169
170 @example
171 \revert Slur #'(details closeness-factor)
172 @end example
173
174 @item
175 All line spanners are more flexible now in the configuration of
176 their end points.  This includes glissando, voice followers, text
177 crescendos and other text spanners.  The old syntax for setting
178 text on line spanners is no longer valid.
179
180 @c  with ragged-right we can't see the gliss.
181 @lilypond[]
182 \relative c'' {
183   \override Glissando #'bound-details #'right #'text = \markup { \hcenter \bold down }
184   \override Glissando #'bound-details #'right #'Y = #-4
185   \override Glissando #'bound-details #'right #'padding = #0.0
186   \override Glissando #'bound-details #'left #'arrow = ##t
187   \override Glissando #'bound-details #'left #'padding = #3.0
188   \override Glissando #'style = #'trill
189   
190   c1 \glissando c'
191 }
192 @end lilypond
193
194 This feature was sponsored by Trevor Bača.
195
196  
197 @item
198 The environment variable LILYPONDPREFIX has been renamed to
199 LILYPOND_DATADIR.
200
201 @item
202 Notes or rests, such as a typical end note, that fill an entire
203 measure are preceded by some more space.
204
205 @lilypond[ragged-right]
206 \relative c' {
207   \time 4/4
208   s1
209   c2. c4
210   \time 3/4
211   c2.
212 }
213 @end lilypond
214
215 @item All @code{\score}s in a lilypond-book fragment are now inserted
216 into the document. Also, toplevel markups don't result in an entire
217 page.
218
219 @item Alterations (such as a sharp and flat) may now be arbitrary
220 fractions. This allows some forms of microtonal music.  For example,
221 Turkish makam music uses 1/9th tone alterations.
222
223 @lilypondfile{makam.ly}
224
225
226
227 @item Tie directions may be set with @code{^~} and @code{_~}
228
229 @item Tablature now supports harmonics and slides,
230
231 @lilypond[fragment,ragged-right,relative=1]
232 \new TabVoice
233 {
234     <c g'\harmonic> d\2\glissando e\2
235 }
236 @end lilypond
237
238 This feature was sponsored by Mike Amundsen
239
240 @item Horizontal spacing now follows object outlines more
241 accurately. This allows tighter horizontal spacing.
242
243 @lilypond[fragment,ragged-right]
244 {
245   \stemUp c''4...*1/2
246   ceses'!
247 }
248 @end lilypond
249
250
251 @item Objects that belong outside of the staff are
252 now positioned automatically to avoid collisions.
253
254 @lilypond[fragment,ragged-right,relative=1]
255   c''
256   \once \override TextScript #'self-alignment-X = #CENTER
257   a,^"this doesn't collide with the c"
258   b^"this goes above the previous markup"
259   a8_"this goes below the dynamic"
260   a\f
261 @end lilypond
262
263 @item Staves are spaced vertically using a skyline algorithm. This helps to avoid
264 uneven vertical spacing.
265
266 @lilypond[ragged-right]
267
268 %% todo: fix 'landscape PDF.
269 #(set-default-paper-size "a6" )
270 \header {
271   tagline = ##f
272 }
273
274 \book {
275   \score {
276     {
277       a,,1 | a'4 b' c'' d'' \break
278       \repeat unfold 2 {a' b' c'' d''} | b''''1
279     }
280   }
281 }
282 @end lilypond
283
284 @item Metronome marks can now also contain a textual description.  The
285 duration and count (if given) are shown in parentheses after the text.
286
287 @lilypond
288 {
289   \tempo "Fast"
290   c'4 c' c' c'
291   c'4 c' c' c'
292   \tempo "Andante" 4=120
293   c'4 c' c' c'
294   c'4 c' c' c'
295   \tempo 4=100
296   c'4 c' c' c'
297   c'4 c' c' c'
298   \tempo "" 4=30
299   c'4 c' c' c'
300   c'4 c' c' c'
301 }
302 @end lilypond
303
304 @item In figured bass you can now also use a backslash through a number to 
305 indicate a raised 6th step.
306
307 @lilypond[ragged-right]
308 \new FiguredBass \figuremode { < 6\\ 5\\ > < 6/ > }
309 @end lilypond
310
311 @end itemize
312
313
314
315 @ifhtml
316 For older news, go to
317 @uref{http://lilypond.org/doc/v2.10/Documentation/topdocs/NEWS.html},
318 or @uref{../,go back} to the Documentation index.
319
320
321 @end ifhtml
322
323 @bye