]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/changes.tely
quarter tones in tablature
[lilypond.git] / Documentation / changes.tely
1 \input texinfo @c -*- coding: utf-8; mode: texinfo; -*-
2 @setfilename lilypond-changes.info
3 @settitle LilyPond Changes
4
5 @include macros.itexi
6
7 @ifhtml
8 @macro inputfileref{DIR,NAME}
9 @uref{../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
10 @end macro
11 @macro usermanref{NAME}
12 @inforef{\NAME\,,../user/lilypond/lilypond}@c
13 @end macro
14 @end ifhtml
15
16 @ifnothtml
17 @macro inputfileref{DIR,NAME}
18 @file{\DIR\/\NAME\}@c
19 @end macro
20 @macro usermanref{NAME}
21 See user manual, \NAME\
22 @end macro
23 @end ifnothtml
24
25 @macro textanchor{NAME}
26 @html
27 <a name="\NAME\"></a>
28 @end html
29 @end macro
30
31
32 @documentencoding UTF-8
33 @documentlanguage en
34 @afourpaper
35
36 @finalout
37
38 @node Top
39 @top New features in 2.20 since 2.18
40
41 @allowcodebreaks false
42
43 @itemize
44
45 @ignore
46
47 HINTS
48
49 * add new items at the top
50
51 * only show verbatim input for syntax/input changes
52
53 * try to be as brief possible in those cases
54
55 * don't try to provide real-world examples, they often get too big,
56 which scares away people.
57
58 * Write complete sentences.
59
60 * only show user-visible changes.
61
62 @end ignore
63
64 @item
65 @code{TabStaff} is now able to print micro-tones for bendings etc.
66 @lilypond[quote,verbatim]
67 \layout {
68   \context {
69     \Score
70     noteToFretFunction = #(determine-frets #t)
71   }
72 }
73
74 mus = \relative { c'4 cih d dih }
75
76 <<
77   \new Staff << \clef "G_8" \mus >>
78   \new TabStaff \mus
79 >>
80 @end lilypond
81
82 @item
83 All of @code{\override}, @code{\revert}, @code{\set}, and
84 @code{\unset} now work with the @code{\once} prefix for making
85 one-time settings.
86 @lilypond[quote,verbatim]
87 \relative {
88   c'4 d
89   \override NoteHead.color = #red
90   e4 f |
91   \once \override NoteHead.color = #green
92   g4 a
93   \once \revert NoteHead.color
94   b c |
95   \revert NoteHead.color
96   f2 c |
97 }
98 @end lilypond
99
100 @item
101 When outputting MIDI, LilyPond will now store the @code{title}
102 defined in a score's @code{\header} block (or, if there is no
103 such definition on the @code{\score} level, the first such
104 definition found in a @code{\header} block of the score's
105 enclosing @code{\bookpart}, @code{\book}, or top-level scope)
106 as the name of the MIDI sequence in the MIDI file.  Optionally,
107 the name of the MIDI sequence can be overridden using the new
108 @code{midititle} @code{\header} field independently of
109 @code{title} (for example, in case @code{title} contains markup
110 code which does not render as plain text in a satisfactory way
111 automatically).
112
113 @item
114 Music (and scheme and void) functions and markup commands that
115 just supply the final parameters to a chain of overrides, music
116 function and markup command calls can now be defined in the form
117 of just writing the expression cut short with @code{\etc}.
118
119 @lilypond[verbatim,quote]
120 bold-red-markup = \markup \bold \with-color #red \etc
121 highlight = \tweak font-size 3 \tweak color #red \etc
122
123 \markup \bold-red "text"
124 \markuplist \column-lines \bold-red { One Two }
125
126 { c' \highlight d' e'2-\highlight -! }
127 @end lilypond
128
129 @item
130 LilyPond functions defined with @code{define-music-function},
131 @code{define-event-function}, @code{define-scheme-function} and
132 @code{define-void-function} can now be directly called from Scheme
133 as if they were genuine Scheme procedures.  Argument checking and
134 matching will still be performed in the same manner as when
135 calling the function through LilyPond input.  This includes the
136 insertion of defaults for optional arguments not matching their
137 predicates.  Instead of using @code{\default} in the actual
138 argument list for explicitly skipping a sequence of optional
139 arguments, @code{*unspecified*} can be employed.
140
141 @item
142 Current input location and parser are now stored in GUILE fluids
143 and can be referenced via the function calls @code{(*location*)}
144 and @code{(*parser*)}.  Consequently, a lot of functions
145 previously taking an explicit @code{parser} argument no longer do
146 so.
147
148 Functions defined with @code{define-music-function},
149 @code{define-event-function}, @code{define-scheme-function} and
150 @code{define-void-function} no longer use @code{parser} and
151 @code{location} arguments.
152
153 With those particular definitions, LilyPond will try to recognize
154 legacy use of @code{parser} and @code{location} arguments,
155 providing backwards-compatible semantics for some time.
156
157 @item
158 The @code{whiteout} grob property and @code{\whiteout} markup command
159 now create a white background built from multiple displaced copies of
160 the glyph in order to approximate the contours of its outline.
161 The previous rounded box white background can be achieved with the
162 new @code{whiteout-box} grob property and @code{\whiteout-box} markup
163 command.  Setting the @code{whiteout} property to a number now sets
164 the thickness of the white outline as a multiple of staff-line
165 thickness.  Similarly, overriding the @code{thickness} property of
166 the @code{\whiteout} markup command sets the thickness of the white
167 outline it produces.
168
169 @item
170 In the "english" notename language, the long notenames for pitches
171 with accidentals now contain a hyphen for better readability.  You
172 now have to write
173 @example
174 \key a-flat \major
175 @end example
176 instead of the previous
177 @example
178 \key aflat \major
179 @end example
180
181 Double accidentals do not get another hyphen, so the Dutch
182 @code{cisis} has the long English notename @code{c-sharpsharp}.
183
184 @item
185 The visual style of tremolo slashes (shape, style and slope)
186 is now more finely controlled.
187 @lilypond[quote,relative=2]
188   a8:32 b: c: d:
189   \override StemTremolo.shape = #'beam-like
190   a: b: c: d:
191   \override StemTremolo.style = #'constant
192   a: b: c: d:
193   g,2
194 @end lilypond
195
196
197 @item
198 Multi-measure rests have length according to their total duration,
199 under the control of @code{MultiMeasureRest.space-increment}.
200 @lilypond[quote]
201 { \compressFullBarRests
202   \override Staff.MultiMeasureRest.space-increment = 3.0
203   R1*2 R1*12 R1*64 }
204 @end lilypond
205
206 @item
207 Page numbers may now be printed in roman numerals, by setting the
208 @code{page-number-type} paper variable.
209
210 @item
211 It is now possible to use @code{\time} and @code{\partial}
212 together to change the time signature in mid measure.
213
214 @lilypond[verbatim,quote,relative=1]
215 \override Score.BarNumber.break-visibility = #end-of-line-invisible
216 \partial 4 \time 3/4 f4 | 2 4 | 2 \bar "||"
217 \time 9/8 \partial 4. f8 8 8 | 2. 8 8 8 |
218 @end lilypond
219
220 @item
221 It is now possible to override the @code{text} property of
222 chord names.
223
224 @lilypond[verbatim,fragment,quote]
225 <<
226 \new ChordNames \chordmode {
227   a' b c:7
228   \once \override ChordName.text = #"foo"
229   d
230 }
231 >>
232 @end lilypond
233
234 @item
235 Improved horizontal alignment when using @code{TextScript},
236 with @code{DynamicText} or @code{LyricText}.
237
238 @item
239 A new command @code{\magnifyStaff} has been added which scales staff
240 sizes, staff lines, bar lines, beamlets and horizontal spacing generally
241 at the @code{Staff} context level.  Staff lines are prevented from being
242 scaled smaller than the default since the thickness of stems, slurs, and
243 the like are all based on the staff line thickness.
244
245 @item
246 @code{InstrumentName} now supports @code{text-interface}.
247
248 @item
249 There is now support for controlling the @q{expression level} of
250 MIDI channels using the @code{Staff.midiExpression} context property.
251 This can be used to alter the perceived volume of even sustained notes
252 (albeit in a very @q{low-level} way) and accepts a number value between
253 @code{0.0} and @code{1.0}.
254
255 @example
256 \score @{
257   \new Staff \with @{
258     midiExpression = #0.6
259     midiInstrument = #"clarinet"
260   @}
261   <<
262     @{ a'1~ a'1 @}
263     @{
264       \set Staff.midiExpression = #0.7 s4\f\<
265       \set Staff.midiExpression = #0.8 s4
266       \set Staff.midiExpression = #0.9 s4
267       \set Staff.midiExpression = #1.0 s4
268
269       \set Staff.midiExpression = #0.9 s4\>
270       \set Staff.midiExpression = #0.8 s4
271       \set Staff.midiExpression = #0.7 s4
272       \set Staff.midiExpression = #0.6 s4\!
273     @}
274   >>
275   \midi @{ @}
276 @}
277 @end example
278
279 @item
280 Support for making it easier to use alternative @q{music} fonts other
281 than the default Emmentaler in LilyPond has been added.  See
282 @uref{http://fonts.openlilylib.org/} for more information.
283
284 @item
285 Grobs and their parents can now be aligned separately allowing
286 more flexibility for grob positions.  For example the @q{left} edge of a
287 grob can now be aligned on the @q{center} of its parent.
288
289 @item
290 Improvements to the @code{\partial} command have been made to
291 avoid problems when using multiple, parallel contexts.
292
293 @item @code{\chordmode} can now use @code{< >} and @code{<< >>}
294 constructs.
295
296 @item
297 A new command @code{\tagGroup} has now been added.  This complements
298 the existing @code{\keepWithTag} and @code{\removeWithTag} commands.
299 For Example:
300
301 @example
302 \tagGroup #'(violinI violinII viola cello)
303 @end example
304
305 declares a list of @q{tags} that belong to a single @q{tag group}.
306
307 @example
308 \keepWithTag #'violinI
309 @end example
310
311 Is now only concerned with @q{tags} from @q{violinI}’s tag group.
312
313 Any element of the included music tagged with one or more tags from the
314 group, but @emph{not} with @var{violinI}, will be removed.
315
316 @item
317 The @code{\addlyrics} function now works with arbitrary contexts
318 incuding @code{Staff}.
319
320 @item
321 String numbers can now also be used to print roman numerals
322 (e.g. for unfretted string instruments).
323 @lilypond[verbatim,quote,relative=2]
324 c2\2
325 \romanStringNumbers
326 c\2
327 \arabicStringNumbers
328 c1\3
329 @end lilypond
330
331 @item
332 The @code{thin-kern} property of the @code{BarLine} grob has been
333 renamed to @code{segno-kern}.
334
335 @item
336 @code{KeyCancellation} grobs now ignore cue clefs (like
337 @code{KeySignature} grobs do).
338
339 @item
340 Add support for @code{\once@tie{}\unset}
341
342 @item
343 It is now possible to individually color both the dots and parentheses
344 in fret diagrams when using the @code{\fret-diagram-verbose} markup
345 command.
346
347 @lilypond[verbatim,quote,relative=1]
348 \new Voice {
349   c1^\markup {
350     \override #'(fret-diagram-details . (
351                  (finger-code . in-dot))) {
352       \fret-diagram-verbose #'((mute 6)
353                                (place-fret 5 3 1 red)
354                                (place-fret 4 5 2 inverted)
355                                (place-fret 3 5 3 green)
356                                (place-fret 2 5 4 blue inverted)
357                                (place-fret 1 3 1 violet)
358                                (barre 5 1 3 ))
359     }
360   }
361   c1^\markup {
362     \override #'(fret-diagram-details . (
363                  (finger-code . below-string))) {
364       \fret-diagram-verbose #'((mute 6)
365                              (place-fret 5 3 1 red parenthesized)
366                              (place-fret 4 5 2 yellow
367                                                default-paren-color
368                                                parenthesized)
369                              (place-fret 3 5 3 green)
370                              (place-fret 2 5 4 blue )
371                              (place-fret 1 3 1)
372                              (barre 5 1 3))
373     }
374   }
375 }
376 @end lilypond
377
378 @item
379 Two new properties have been added for use in
380 @code{fret-diagram-details} when using the @code{\fret-diagram-verbose}
381 markup command; @code{fret-label-horizontal-offset} which affects the
382 @code{fret-label-indication} and @code{paren-padding} which controls the
383 space between the dot and the parentheses surrounding it.
384
385 @lilypond[verbatim,quote,relative=1]
386 \new Voice {
387   c1^\markup {
388     \fret-diagram-verbose #'((mute 6)
389                              (place-fret 5 3 1)
390                              (place-fret 4 5 2)
391                              (place-fret 3 5 3)
392                              (place-fret 1 6 4 parenthesized)
393                              (place-fret 2 3 1)
394                              (barre 5 2 3))
395   }
396   c1^\markup {
397     \override #'(fret-diagram-details . (
398                  (fret-label-horizontal-offset . 2)
399                  (paren-padding . 0.25))) {
400       \fret-diagram-verbose #'((mute 6)
401                                (place-fret 5 3 1)
402                                (place-fret 4 5 2)
403                                (place-fret 3 5 3)
404                                (place-fret 1 6 4 parenthesized)
405                                (place-fret 2 3 1)
406                                (barre 5 2 3))
407     }
408   }
409 }
410 @end lilypond
411
412 @item
413 A new markup command @code{\justify-line} has been added.  Similar to
414 the @code{\fill-line} markup command except that instead of setting
415 @emph{words} in columns, the @code{\justify-line} command balances the
416 whitespace between them ensuring that when there are three or more
417 words in a markup, the whitespace is always consistent.
418
419 @lilypond[quote,verbatim,papersize=a6]
420 \markup \fill-line {oooooo oooooo oooooo oooooo}
421 \markup \fill-line {ooooooooo oooooooo oo ooo}
422 @end lilypond
423
424 @lilypond[quote,verbatim,papersize=a6]
425 \markup \justify-line {oooooo oooooo oooooo oooooo}
426 \markup \justify-line {ooooooooo oooooooo oo ooo}
427 @end lilypond
428
429 @item
430 A new command @code{\magnifyMusic} has been added, which allows
431 the notation size to be changed without changing the staff size,
432 while automatically scaling stems, beams, and horizontal spacing.
433
434 @lilypond[verbatim,quote]
435 \new Staff <<
436   \new Voice \relative {
437     \voiceOne
438     <e' e'>4 <f f'>8. <g g'>16 <f f'>8 <e e'>4 r8
439   }
440   \new Voice \relative {
441     \voiceTwo
442     \magnifyMusic 0.63 {
443       \override Score.SpacingSpanner.spacing-increment = #(* 1.2 0.63)
444       r32 c'' a c a c a c r c a c a c a c
445       r c a c a c a c a c a c a c a c
446     }
447   }
448 >>
449 @end lilypond
450
451 @item
452 A new flexible template suitable for a range of choral music, is now
453 provided.  This may be used to create simple choral music, with or
454 without piano accompaniment, in two or four staves. Unlike other
455 templates, this template is @q{built-in}, which means it does not
456 need to be copied and edited: instead it is simply @code{\include}'d
457 in the input file.  For details, see @rlearning{Built-in templates}.
458
459 @item
460 The positioning of tuplet numbers for kneed beams has been significantly
461 improved.  Previously, tuplet numbers were placed according to the
462 position of the tuplet bracket, even if it was not printed.  This could
463 lead to stranded tuplet numbers.  Now they are now positioned
464 closer to the kneed-beam when an appropriate beam segment exists for its
465 placement and when the the bracket is not drawn.
466
467 Collision detection is also added, offsetting horizontally if too close
468 to an adjoining note column but preserving the number's vertical
469 distance from the kneed beam.  If the number itself is too large to
470 fit in the available space the original, bracket-based, positioning
471 system is used instead; and in the event of a collision (e.g. with an
472 accidental) the tuplet number is moved vertically away instead.
473
474 @lilypond[verbatim,fragment,quote,relative=1]
475 \time 3/4
476 \override Beam.auto-knee-gap = 3
477 \tuplet 3/2 4 {
478   g8 c'' e,
479   c'8 g,, e''
480   g,,8 e''' c,,
481 }
482 @end lilypond
483
484 @noindent
485 The original kneed-beam tuplet behavior is still available through an
486 @code{\override} via a new, @code{knee-to-beam} property.
487
488 @lilypond[verbatim,fragment,quote,relative=1]
489 \time 3/4
490 \override Beam.auto-knee-gap = 3
491 \override TupletNumber.knee-to-beam = ##f
492 \tuplet 3/2 4 {
493   g8 c'' e,
494   c'8 g,, e''
495   g,,8 e''' c,,
496 }
497 @end lilypond
498
499 @item
500 @code{\lyricsto} and @code{\addLyrics} have been @q{harmonized}.  Both
501 now accept the same kind of delimited argument list that @code{\lyrics}
502 and @code{\chords} accept.  Backward compatibility has been added so
503 music identifiers (i.e. @code{\mus}) are permitted as arguments.  A
504 @code{convert-ly} rule has been added that removes redundant uses of
505 @code{\lyricmode} and rearranges combinations with context starters such
506 that @code{\lyricsto} in general is applied last (i.e. like
507 @code{\lyricmode} would be).
508
509 @item
510 Scheme functions and identifiers can now be used as output definitions.
511
512 @item
513 Scheme expressions can now be used as chord constituents.
514
515 @item
516 Improved visual spacing of small and regular @q{MI} Funk and Walker
517 noteheads so they are now the same width as other shaped notes in
518 their respective sets.  @code{SOL} noteheads are also now visually
519 improved when used with both the normal Aiken and Sacred Harp heads, as
520 well as with the thin variants.
521
522 @item
523 @code{LeftEdge} now has a definable @code{Y-extent} (i.e.vertical).  See
524 @rinternals{LeftEdge}.
525
526 @item
527 Added a new @code{make-path-stencil} function that supports all
528 @code{path} commands both relative and absolute:
529
530 @code{lineto}, @code{rlineto}, @code{curveto}, @code{rcurveto},
531 @code{moveto}, @code{rmoveto}, @code{closepath}.  The function also
532 supports @q{single-letter} syntax used in standard SVG path commands:
533
534 @code{L}, @code{l}, @code{C}, @code{c}, @code{M}, @code{m}, @code{Z} and
535 @code{z}.  The new command is also backward-compatible with the original
536 @code{make-connected-path-stencil} function.  Also see
537 @file{scm/stencil.scm}.
538
539 @item
540 Context properties named in the @samp{alternativeRestores} property are
541 restored to their value at the start of the @emph{first} alternative in
542 all subsequent alternatives.
543
544 Currently the default set restores @q{current meter};
545
546 @lilypond[verbatim,fragment,quote,relative=2]
547 \time 3/4
548 \repeat volta 2 { c2 e4 | }
549 \alternative {
550   { \time 4/4 f2 d | }
551   { f2 d4 | }
552 }
553 g2. |
554 @end lilypond
555
556 @noindent
557 @q{measure position};
558
559 @lilypond[verbatim,fragment,quote,relative=2]
560 \time 3/4
561 \repeat volta 2 { c2 e4 | }
562 \alternative {
563   { \time 4/4
564     \set Timing.measurePosition = #(ly:make-moment -1/2)
565     f2 | }
566   { f2 d4 | }
567 }
568 g2. |
569 @end lilypond
570
571 @noindent
572 and @q{chord changes};
573
574 @lilypond[verbatim,fragment,quote]
575 <<
576   \new ChordNames {
577     \set chordChanges = ##t
578     \chordmode { c1:m d:m c:m d:m }
579   }
580   \new Staff {
581     \repeat volta 2 { \chordmode { c1:m } }
582     \alternative {
583       { \chordmode { d:m } }
584       { \chordmode { c:m } }
585     }
586   \chordmode { d:m }
587 }
588 >>
589 @end lilypond
590
591 @item
592 Improved MIDI output for breathe marks.  After tied notes, breaths take
593 time @emph{only} from the last note of the tie; e.g.
594 @code{@{ c4~ c8 \breathe @}} performs as @code{@{ c4~ c16 r @}} instead
595 of @code{@{ c4 r8 @}}.  This is more consistent with articulations and
596 how humans interpret breaths after ties.  It now also makes it easier to
597 align simultaneous breathe marks over multiple parts, all with different
598 note lengths.
599
600 @item
601 A new note head style for Tabulature has been added;
602 @code{TabNoteHead.style = #'slash}.
603
604 @item
605 Four new Clef glyphs have been added @emph{Double G}, @emph{Tenor G},
606 @emph{Varpercussion} and @emph{varC} and their related tessitura.
607 @lilypond[verbatim,quote,fragment]
608   \override Staff.Clef.full-size-change = ##t
609
610   \clef "GG" c c c c
611   \clef "tenorG" c c c c
612   \clef "varC" c c c c
613   \clef "altovarC" c c c c
614   \clef "tenorvarC" c c c c
615   \clef "baritonevarC" c c c c
616   \clef "varpercussion" c c c c
617
618   \break
619   \override Staff.Clef.full-size-change = ##f
620
621   \clef "GG" c c c c
622   \clef "tenorG" c c c c
623   \clef "varC" c c c c
624   \clef "altovarC" c c c c
625   \clef "tenorvarC" c c c c
626   \clef "baritonevarC" c c c
627   \clef "varpercussion" c c c c
628 @end lilypond
629
630 @item
631 Isolated durations in music sequences now stand for unpitched
632 notes.  This may be useful for specifying rhythms to music or
633 scheme functions.  When encountered in the final score, the
634 pitches are provided by the preceding note or chord.  Here are two
635 examples where this makes for readable input:
636
637 @lilypond[verbatim,quote]
638 \new DrumStaff \with { \override StaffSymbol.line-count = 1 }
639 \drummode {
640   \time 3/4
641   tambourine 8 \tuplet 3/2 { 16 16 16 }
642              8 \tuplet 3/2 { 16 16 16 } 8 8 |
643 }
644 @end lilypond
645
646 @lilypond[verbatim,quote]
647 \new Staff { r16 c'16 ~ 8 ~ 4 ~ 2 | }
648 @end lilypond
649
650 @item
651 @code{\displayLilyMusic} and its underlying Scheme functions no
652 longer omit redundant note durations.  This makes it easier to
653 reliably recognize and format standalone durations in expressions
654 like
655 @example
656 @{ c4 d4 8 @}
657 @end example
658
659 @item
660 Beaming exceptions can now be constructed using the
661 @code{\beamExceptions} scheme function.  One can now write
662
663 @lilypond[verbatim,quote,relative=1]
664 \time #'(2 1) 3/16
665 \set Timing.beamExceptions =
666   \beamExceptions { 32[ 32] 32[ 32] 32[ 32] }
667 c16 c c |
668 \repeat unfold 6 { c32 } |
669 @end lilypond
670
671 @noindent
672 with multiple exceptions separated with @code{|} bar checks
673 (writing the exception pattern without pitches is convenient but
674 not mandatory).  Previously, setting the beam exceptions would
675 have required writing
676
677 @example
678 \set Timing.beamExceptions =
679 #'(                         ;start of alist
680    (end .                   ;entry for end of beams
681     (                       ;start of alist of end points
682      ((1 . 32) . (2 2 2))   ;rule for 1/32 beams -- end each 1/16
683     )))
684 @end example
685
686 @item
687 The most common articulations are now reflected in MIDI output.
688 Accent and marcato make notes louder; staccato, staccatissimo and
689 portato make them shorter. Breath marks shorten the previous
690 note.
691
692 This behavior is customizable through the @code{midiLength} and
693 @code{midiExtraVelocity} properties on @code{ArticulationEvent}.
694 See @file{script-init.ly} for examples.
695
696 @item
697 The PostScript functionality of stroke adjustment is no longer
698 applied automatically but left to the discretion of the PostScript
699 device (by default, Ghostscript uses it for resolutions up to
700 150dpi when generating raster images).  When it is enabled, a more
701 complex drawing algorithm designed to benefit from stroke
702 adjustment is employed mostly for stems and bar lines.
703
704 Stroke adjustment can be forced by specifying the command line
705 option @samp{-dstrokeadjust} to LilyPond.  When generating
706 @code{PDF} files, this will usually result in markedly better
707 looking @code{PDF} previews but significantly larger file size.
708 Print quality at high resolutions will be unaffected.
709
710 @end itemize
711
712 @ifhtml
713 For older news, go to
714 @uref{http://lilypond.org/doc/v2.18/Documentation/changes/},
715 @uref{http://lilypond.org/doc/v2.16/Documentation/changes/},
716 or @uref{../,go back} to the Documentation index.
717
718
719 @end ifhtml
720
721 @bye