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