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