]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/topdocs/NEWS.texi
* Documentation/topdocs/NEWS.texi: Add note about safe mode.
[lilypond.git] / Documentation / topdocs / NEWS.texi
1 \input texinfo @c -*-texinfo-*-
2 @setfilename NEWS.info
3 @settitle NEWS
4
5 @node Top, , , 
6 @top
7
8 @chapter New features in 2.1 since 2.0
9
10 @ignore
11 Unreleased:
12
13 @itemize
14 @end itemize
15
16 Version 2.1.13
17 @end ignore
18
19 @itemize @bullet
20
21 @item Safe mode has been reinstated for lilypond-bin.  When lilypond-bin
22 is invoked with @code{--safe-mode}, the user's Guile expressions are
23 evaluated in a safe environment and file inclusion is not allowed.
24 (This feature is still experimental.)
25
26 @item There is now a Scheme macro for defining markup
27 commands. Special mark-up commands can be defined in user-files too.
28
29 @item Many fixes for dimension scaling have been made,
30 resulting in correct results for scores that mix staves in different
31 sizes.
32
33 @item Improved robustness when  layout properties are accidentally removed.  
34
35 @item A  more cleanly constructed part combiner has been installed.
36 It is more robust and less buggy. The part-combiner can be used with
37 @example
38   \newpartcombine @var{mus1} @var{mus2}
39 @end example
40
41 @noindent
42 See @file{input/regression/new-part-combine.ly} for an example.
43
44 (This feature is still experimental.)
45
46 @item Formatting of rehearsal marks has been improved. The @code{\mark}
47 command now only does automatic incrementing for marks specified as
48 integer. For example, @code{\mark #1} will print an A in the default
49 style.  See @file{input/regression/rehearsal-mark-letter.ly},
50 @file{input/regression/rehearsal-mark-number.ly}.
51
52 @item Formatting of ottava brackets has been much improved.
53
54 @item Objects in the output can now be documented: the following fragment
55  boxes the note head, and adds the text ``heads or tails?'' three
56 spaces below the box.
57
58 @example
59        \context Voice \applyoutput #(add-balloon-text
60                                      'NoteHead "heads, or tails?"
61                                      '(0 . -3))
62
63       
64        c8
65 @end example
66
67
68 @item Default staff sizes are now scalable. There are two new mechanisms for
69 setting staff sizes. Both are demonstrated in this fragment:
70
71 @example
72   #(set-global-staff-size 15)
73   \paper @{
74     #(paper-set-staff-size (* 15 pt))
75   @}   
76 @end example
77
78
79 @noindent
80 Both have  the same effect on the global layout  of a
81 piece. Similarly, the paper size may be changed as follows
82
83 @example
84   #(set-paper-size "a4")
85 @end example 
86
87
88 @item Warnings for bar check errors are more cleverly printed.  This
89 makes @code{barCheckSynchronize} superfluous, so it is now switched
90 off by default.
91
92 Warning: this will cause problems in scores that use bar checks to
93 shorten measures.
94
95 @item The black note head was made a little rounder, which causes a less
96  frantic graphic impression.
97
98 @item
99 A more concise syntax for checking octaves was introduced. A note may
100 be followed by @code{=}@var{quotes} which indicates what its absolute
101 octave should be.  In the following example, 
102
103 @example
104   \relative c'' @{ c='' b=' d,='' @}        
105 @end example
106
107 @noindent
108 the d will generate a warning, because a d'' is
109 expected, but a d' is found.
110 @c @code adds ` ' very confusing.
111
112 @item There is a new mechanism for putting lyrics to melodies.
113 With this mechanism, @code{LyricVoice}s can be put melodies
114 individually, allowing for different melismatic sections in every
115 @code{LyricVoice}. See @file{input/regression/lyric-combine-new.ly}.
116
117 @item Bar lines may now be dotted.
118
119
120 @item The documentation now has links to a wiki, where everyone can
121 add personal comments to the manual.
122
123 @item Contexts may now be changed locally for an isolated music
124 expression. For example,
125   
126 @example
127   \new Voice \with @{
128      \consists "Pitch_squash_engraver"
129   @} @{
130     c'4
131   @}
132 @end example
133
134 @item The syntax for changing staffs has changed. The keyword
135 @code{\change} should now be used, e.g.
136
137 @example
138   \change Staff = up
139 @end example 
140
141 @item Features of spanner contexts, like @code{Staff}, can now be changed
142   using @code{\property}, eg.
143
144 @example
145   \new Staff @{
146        \property Staff.StaffSymbol \set #'line-count = #4
147        c'4
148   @} 
149 @end example
150
151 @noindent
152 puts a quarter note C on a staff with 4 lines.  
153
154
155 @item Multi measure rests are now truly centered between the
156 clefs/barlines of the staff, their position is independent of symbols
157 on the other staffs.
158
159 @item Collision resolution for dots in chords has been improved greatly. 
160
161 @item
162 Spacing following barlines was improved for widely stretched lines.
163
164 @item
165 Lyric hyphens and extenders now conform to standard typesetting
166 practice.
167
168 @item
169 Lyrics are now aligned under note heads conforming to engraving
170 standards. The responsible code has been rewritten, and is drastically
171 simpler from the previous version. To aid this rewrite, the syntactic
172 function of the extender line ( __ ) has been changed: it is now
173 attached to the lyric syllable.
174
175 @item
176 When redefining a context, the associated identifier is also
177 updated. For example, after reading the following snippet,
178 @example
179  \translator @{
180         \ScoreContext
181         autoBeaming = ##f
182  @}
183 @end example
184 the definition of @code{ScoreContext} is updated to include the changed
185 setting.
186
187
188 @item
189 The weight of the stafflines is now heavier at smaller staff sizes.
190 The font has been modified to match this look: at smaller sizes, the
191 font is heavier and the note heads are more rounded.
192
193 @item Processing scores is now done while parsing the file. New
194 Scheme functions give more flexibility: for example, it is now possible
195 interpret a score, collecting synchronized musical events in a list, and
196 manipulate that information using inline Scheme. For an example, see
197 @file{input/no-notation/recording.ly}.
198
199 @item Font sizes can now truly be scaled continuously: the  @code{font-size}
200 is similar to the old @code{font-relative-size}, but may be set to
201 fractional values; the closest design size will be scaled to achieve
202 the desired size. As a side-effect, there are now no longer
203 limitations in using smaller fonts (eg. grace notes) at small staff
204 sizes.
205
206 @item The appearance of stem tips is now also engraved with rounded corners.
207
208 @item
209 The placement of accidentals on chords and ledgered notes is improved.
210
211 @end itemize
212
213
214 @chapter New features in 2.0 since 1.8
215
216 @itemize
217
218 @item
219 Crescendos can now be drawn dotted or dashed.
220
221 @item
222 Quarter tones are now supported. They are entered by suffixing
223 @code{ih} for a half-sharp and @code{eh} for a half-flat. Hence, the
224 following is an ascending list of pitches:
225
226 @example
227   ceses ceseh ces ceh c cih cis cisih cisis
228 @end example
229
230 @item
231 The following constructs have been removed from the syntax:
232
233 @example
234   \duration #SCHEME-DURATION
235   \pitch #SCHEME-PITCH
236   \outputproperty @var{func} @var{symbol} = @var{value}
237 @end example
238
239 For @code{\outputproperty}, the following may be substituted:
240
241 @example
242    \applyoutput #(outputproperty-compatibility @var{func}
243                   @var{symbol} @var{value}) 
244 @end example 
245
246 @item
247 Clefs may now be transposed arbitrarily, for example
248
249 @example
250   \clef "G_8"
251   \clef "G_15"
252   \clef "G_9"
253 @end example
254
255
256 @item
257 The syntax for chords and simultaneous music have changed.
258 Chords are entered as
259
260 @example
261    <@var{pitches}>
262 @end example
263
264 while simultaneous music is entered as
265
266 @example
267    <<@var{..music list..}>>
268 @end example
269
270 In effect, the meanings of both have been swapped relative to their 1.8
271 definition.  The syntax for lists in @code{\markup} has changed
272 alongside, but figured bass mode was not  changed, i.e.:
273
274 @example
275   \markup @{ \center <@var{..list of markups..}> @}
276   \figure @{ <@var{figures}> @}
277 @end example
278
279 As chords the more often used than simultaneous music, this change will
280 save keystrokes.
281
282 @item
283 Each music expression can now be tagged, to make different printed
284 versions from the same music expression.  In the following example,
285 we see two versions of a piece of music, one for the full score, and
286 one with cue notes for the instrumental part:
287
288 @example
289 << \tag #'part <<
290      @{ c4 f2 g4 @}      % in the part, we have cue-notes  
291      \\ R1 >>
292   \tag #'score R1  % in the score: only a rest
293 >>
294 @end example
295  
296 The same can be applied to articulations, texts, etc.: they are
297 made by prepending
298
299 @example
300         -\tag #@var{your-tags} 
301 @end example
302
303 to an articulation, for example, 
304
305 @example
306         c4-\tag #'with-fingerings -4 -\tag #'with-strings \6
307 @end example
308
309 This defines a note, which has a conditional fingering and a
310 string-number indication.
311
312 @item
313 The settings for chord-fingering are more flexible. You can specify a
314 list where fingerings may be placed, eg.
315
316 @example
317         \property Voice.fingeringOrientations = #'(left down)
318 @end example
319
320 This will put the fingering for the lowest note below the chord, and the
321 rest to the left.
322
323 @item
324 The script previously known as @code{ly2dvi} has been renamed to
325 @code{lilypond}. The binary itself is now installed as
326 @code{lilypond-bin}.
327
328 @item
329 Markup text (ie. general text formatting) may now be used for lyrics too. 
330
331 @item
332 Two new commands for grace notes have been added, @code{\acciaccatura}
333 and @code{\appoggiatura},
334
335 @example
336   \appoggiatura f8 e4
337   \acciaccatura g8 f4
338 @end example
339
340 Both reflect the traditional meanings of acciaccatura and appogiatura,
341 and both insert insert a slur from the first grace note to the main
342 note.
343
344 @item 
345 Layout options for grace notes are now stored in a context property,
346 and may now be set separately from musical content.
347
348 @item
349 The @code{\new} command will create a context with a unique
350 name automatically. Hence, for multi-staff scores, it is no longer
351 necessary to invent arbitrary context names. For example, a two-staff
352 score may be created by
353
354 @example
355   \simultaneous @{
356     \new Staff @{ @var{notes for 1st staff} @}
357     \new Staff @{ @var{notes for 2nd staff} @}
358   @}
359 @end example
360
361
362
363 @item
364 Octave checks make octave errors easier to correct.
365 The syntax is 
366
367 @example
368   \octave @var{pitch}
369 @end example
370
371 This checks that @var{pitch} (without octave) yields @var{pitch} (with
372 octave) in \relative mode. If not, a warning is printed, and the
373 octave is corrected.
374
375 @item
376 All articulations must now be entered postfix. For example,
377
378 @example
379         c8[( d8]) 
380 @end example
381
382 @noindent
383 is a pair of beamed slurred eighth notes.
384
385 @item
386 The definition of @code{\relative} has been simplified.  Octaves are
387 now always propagated in the order that music is entered. In the
388 following example,  
389
390 @example
391   PRE
392   \repeat "unfold" 3  BODY \alternative @{ ALT1 ALT2 @}
393   POST
394 @end example
395
396 @noindent
397 the octave of BODY is based on PRE, the starting octave of ALT1 on
398 BODY, the starting octave of ALT2 on ALT1, and the starting octave of
399 POST on ALT2.
400
401 The same mechanism is used for all other music expressions, except the
402 chord. Backwards compatibility is retained through a special program option,
403 which is set through 
404
405 @example
406   #(ly:set-option 'old-relative)
407 @end example
408
409 @item
410 Windows users can double click a @code{.ly} file to process and view
411 it automagically through the new @code{lily-wins} frontend.
412
413 @end itemize
414
415
416
417
418 @chapter New features in 1.8 since 1.6
419
420 @itemize
421
422 @item 
423 The chord entry code has been completely rewritten. It is now
424 cleaner and more flexible.
425
426 @item 
427 A new syntax has been added for text entry.  This syntax is more
428 friendly than the old mechanism, and it is implemented in a more
429 robust and modular way. For more information, refer to the section on
430 "Text markup" in the notation manual.
431
432 @item 
433 The integration of the input language and Scheme has been made deeper:
434 you can now use LilyPond identifiers in Scheme, and use Scheme
435 expressions instead of LilyPond identifiers.
436
437 @item 
438 The internal representation of music has been cleaned up completely
439 and converted to Scheme data structures.  The representation may be
440 exported as XML.
441
442 @item 
443 A new uniform postfix syntax for articulation has been introduced.
444 A beamed slurred pair of eighth notes can be entered as
445
446 @example
447         c8-[-( d8-]-) 
448 @end example
449
450 In version 2.0, postfix syntax will be the only syntax
451 available, and the dashes will become optional.
452
453 This will simplify the language: all articulations can be entered as
454 postfix, in any order.
455
456 @item 
457 A new syntax has been added for chords:
458
459
460 @example
461         << PITCHES >>
462 @end example 
463
464 It is not necessary to update files to this syntax, but it will be for
465 using LilyPond version 2.0.  In version 2.0, this syntax will be
466 changed to
467
468 @example
469         < PITCHES >
470 @end example
471
472 for chords, and
473
474 @example
475         \simultaneous @{ .. @} 
476 @end example
477
478 for simultaneous music.
479
480 To convert your files from <PITCHES> to <<PITCHES>>, use the script
481 included in buildscripts/convert-new-chords.py
482
483 This change was introduced for the following reasons
484
485 @itemize @bullet
486 @item
487 It solves the "start score with chord" problem, where you have to
488   state \context Voice explicitly when a chord was the start of a
489   Staff or Score.
490 @item
491 With the new syntax, it is possible to distinguish between
492   articulations (or fingerings) which are for a single chord note,
493   and which are for the entire chord. This allows for per-note
494   fingerings, and is more logical on the whole.
495 @end itemize
496
497 @item 
498 User code may now be executed during interpreting.  The syntax for
499 this code is
500
501 @example
502         \applycontext #SCHEME-FUNCTION
503 @end example
504
505 @item 
506 User code may now be executed on arbitrary grobs during interpreting.
507 The syntax for this feature is
508
509 @example
510         \applyoutput #SCHEME-FUNCTION
511 @end example
512
513 @noindent
514 SCHEME-FUNCTION takes a single argument, and is called for every grob
515 that is created in the current context.
516
517 @item 
518 New algorithms for chord-name formatting have been installed. They
519 can be tuned and have ergonomic syntax for entering exceptions.
520
521 @item 
522 Texts may now be put on multimeasure rests, e.g.
523
524 @example
525         R1*20^\markup @{ "GP" @}
526 @end example
527
528 @item
529 Ancient notation now prints ligatures in Gregorian square neumes
530 notation, roughly following the typographical style of the Liber
531 hymnarius of Solesmes, published in 1983.  Ligatures are still printed
532 without the proper line breaking and horizontal spacing.
533
534 @item 
535 Glissandi can now be printed using the zigzag style.
536
537 @item 
538 LilyPond can now print clusters. The syntax is
539
540 @example
541         \apply #notes-to-clusters @{ NOTE NOTE .. @}
542 @end example
543
544 @item
545 For irregular meters, beat grouping marks can be printed. The
546 syntax for this is
547
548 @example
549         #(set-time-signature 7 8 '(3 2 2))
550 @end example
551
552
553 @item 
554 Nested horizontal brackets for music analysis can now be printed:
555
556 @example
557         NOTE-\startGroup
558                 ..
559         NOTE-\stopGroup
560 @end example
561
562
563 @item  Ottava brackets are now fully supported as a feature.  The syntax
564 is
565
566 @example
567         #(set-octavation 1)
568 @end example
569
570
571 @item  Metronome markings are printed when a \tempo command is processed.
572
573
574
575 @item Fingerings can be put on chords horizontally.
576
577
578
579 @item  The appearance of various glyphs has been fine-tuned.
580
581
582
583 @item  Different types of percent style repeats may now be nested.
584
585
586
587 @item  The emacs support has been extended.
588
589
590 @item 
591 The manual has been completely revised and extended.
592
593 @end itemize
594
595 @chapter New features in 1.6 since 1.4
596
597
598 @itemize @bullet
599
600 @item
601 Support for figured bass and tablature.
602
603 @item
604 Completely rewritten beam formatting: provides much better output
605 now.
606
607
608 @item
609 Completely revised and improved music font.
610
611
612 @item
613 Completely rewritten MIDI import support.
614
615 @item
616 Completely rewritten grace note support. Practically speaking this
617 means that grace notes can be slurred to normal normal notes.
618
619
620 @item
621 Improved accidental handling and formatting: styles for producing
622 cautionaries may vary, and complex collisions between accidentals of a
623 chord are handled much better.
624
625 @item
626 Better spacing: both globally and locally. This includes subtle
627 details like optical stem spacing.
628
629 @item
630 More support for ancient notation: mensural ligatures, ambitus
631 (pitch range) of voices, more shapes, etc.
632
633 @item
634 More support for piano notation: bracket pedals, directed arpeggios,
635 arpeggio brackets.
636
637 @item
638 Easier music polyphonic music entry.
639
640 @item
641 More extensibility, many speedups and bugfixes
642
643 @item
644 The manual has been thoroughly revised.
645
646 @item
647 Development is now hosted at http://savannah.gnu.org, and sources
648 can be downloaded through anonymous CVS.
649
650 @item
651 Support for windows: LilyPond is part of the cygwin distribution,
652 which comes with a user-friendly installer.
653
654 @end itemize