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