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