X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fnotation%2Frhythms.itely;h=c22f55fb52356cc7c0133af219eb2a3c0ce6fb86;hb=05b311f14f39e5148ca93028a314a0bb2fe0dedd;hp=6e399ff9ce723484445670abe8a0a9ba1840f260;hpb=769d44119d52cd962d48245792d10bbd37835f45;p=lilypond.git diff --git a/Documentation/notation/rhythms.itely b/Documentation/notation/rhythms.itely index 6e399ff9ce..c22f55fb52 100644 --- a/Documentation/notation/rhythms.itely +++ b/Documentation/notation/rhythms.itely @@ -7,7 +7,7 @@ Guide, node Updating translation committishes.. @end ignore -@c \version "2.13.44" +@c \version "2.15.18" @node Rhythms @section Rhythms @@ -142,7 +142,10 @@ the staff; see @ref{Direction and placement}. @snippets -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] +{alternative-breve-note.ly} + +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {changing-the-number-of-augmentation-dots-per-note.ly} @@ -249,23 +252,23 @@ see @ref{Scaling durations}. @funindex tupletNumberFormatFunction @funindex tupletSpannerDuration -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {entering-several-tuplets-using-only-one--times-command.ly} @cindex Tuplet number changes @funindex TupletNumber -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {changing-the-tuplet-number.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {non-default-tuplet-numbers.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {controlling-tuplet-bracket-visibility.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {permitting-line-breaks-within-beamed-tuplets.ly} @@ -520,10 +523,24 @@ c2 ~ c c2 ~ c @end lilypond -Dash pattern definitions for ties have the same structure as -dash pattern definitions for slurs. -For more information about complex dash patterns, -see the snippets under @ref{Slurs}. +Dash pattern definitions for ties have the same structure as dash +pattern definitions for slurs. For more information about complex dash +patterns, see @ref{Slurs}. + +Override @var{whiteout} and @var{layer} layout properties for ties that +collide with other objects in a staff. + +@lilypond[verbatim,quote,ragged-right,relative=2] +\override Tie #'layer = #-2 +\override Staff.TimeSignature #'layer = #-1 +\override Staff.KeySignature #'layer = #-1 +\override Staff.TimeSignature #'whiteout = ##t +\override Staff.KeySignature #'whiteout = ##t +b2 b~ +\time 3/4 +\key a \major +b r4 +@end lilypond @predefined @code{\tieUp}, @@ -537,16 +554,14 @@ see the snippets under @ref{Slurs}. @code{\tieSolid}. @endpredefined - @snippets -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {using-ties-with-arpeggios.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {engraving-ties-manually.ly} - @seealso Music Glossary: @rglos{tie}, @@ -557,6 +572,7 @@ Notation Reference: @ref{Automatic note splitting}. Snippets: +@rlsr{Expressive marks}, @rlsr{Rhythms}. Internals Reference: @@ -565,14 +581,11 @@ Internals Reference: @rinternals{TieColumn}, @rinternals{Tie}. - @knownissues -Switching staves when a tie is active will not produce a slanted -tie. - -Changing clefs or ottavations during a tie is not really -well-defined. In these cases, a slur may be preferable. +Switching staves when a tie is active will not produce a slanted tie. +Changing clefs or ottavations during a tie is not really well-defined. +In these cases, a slur may be preferable. @node Writing rests @@ -648,7 +661,7 @@ a4\rest d4\rest @snippets -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {rest-styles.ly} @@ -916,16 +929,16 @@ setting, resulting bar-check warnings may not be displayed. @cindex rest, church @cindex kirchenpausen -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {changing-form-of-multi-measure-rests.ly} @cindex multi-measure rests, positioning @cindex positioning multi-measure rests -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {positioning-multi-measure-rests.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {multi-measure-rest-markup.ly} @@ -1198,17 +1211,7 @@ for different staves by moving the @code{Timing_translator} and the @snippets - -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] -{changing-the-time-signature-without-affecting-the-beaming.ly} - -@cindex compound time signatures -@cindex time signature, compound - -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] -{compound-time-signatures.ly} - -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly} @@ -1289,15 +1292,15 @@ d4 g e c @snippets -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {printing-metronome-and-rehearsal-marks-below-the-staff.ly} @c perhaps also an example of how to move it horizontally? -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {changing-the-tempo-without-a-metronome-mark.ly} -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {creating-metronome-marks-in-markup-mode.ly} For more details, see @ref{Formatting text}. @@ -1374,7 +1377,7 @@ For example, @code{\partial 8*3} becomes: The property @code{measurePosition} contains a rational number indicating how much of the measure has passed at this point. Note that this is set to a negative number by the @code{\partial} command: -i.e., @code{\partial 4} is internally translated to @code{-4}, meaning +i.e., @code{\partial 4} is internally translated to @w{@code{-4}}, meaning @qq{there is a quarter note left in the measure.} @seealso @@ -1539,42 +1542,38 @@ piece with @code{\cadenzaOn}, otherwise strange errors may occur. @funindex \times @funindex times -Polymetric notation is supported, either explicitly or by modifying -the visible time signature symbol and scaling the note durations. +Polymetric notation is supported explicitly or by manually modifying the +visible time signature symbol and/or scaling note durations. -@strong{@i{Staves with different time signatures, equal measure lengths}} +@subsubheading Different time signatures with equal-length measures -This notation can be created by setting a common time signature -for each staff but replacing the symbol manually by setting -@code{timeSignatureFraction} to the desired fraction and scaling -the printed durations in each staff to the common time -signature; see @ref{Time signature}. The scaling is done with -@code{\scaleDurations}, which is used in a similar way to -@code{\times}, but does not create a tuplet bracket; see -@ref{Scaling durations}. +Set a common time signature for each staff, and set the +@code{timeSignatureFraction} to the desired fraction. Then use the +@code{\scaleDurations} function to scale the durations of the notes in +each staff to the common time signature. @cindex beams, with polymetric meters @cindex polymetric meters, with beams -In this example, music with the time signatures of 3/4, 9/8, and -10/8 are used in parallel. In the second staff, shown durations -are multiplied by 2/3, as 2/3 * 9/8 = 3/4, and in the third -staff, shown durations are multiplied by 3/5, as 3/5 * 10/8 = 3/4. -It will often be necessary to insert beams manually, as the -duration scaling affects the autobeaming rules. +In the following example, music with the time signatures of 3/4, 9/8 and +10/8 are used in parallel. In the second staff, shown durations are +multiplied by 2/3 (because 2/3 * 9/8 = 3/4) and in the third staff, the +shown durations are multiplied by 3/5 (because 3/5 * 10/8 = 3/4). It +may be necessary to insert beams manually, as the duration scaling will +affect the autobeaming rules. @lilypond[quote,verbatim] \relative c' << \new Staff { \time 3/4 c4 c c | - c c c | + c4 c c | } \new Staff { \time 3/4 \set Staff.timeSignatureFraction = #'(9 . 8) \scaleDurations #'(2 . 3) - \repeat unfold 6 { c8[ c c] } + \repeat unfold 6 { c8[ c c] } } \new Staff { \time 3/4 @@ -1582,13 +1581,13 @@ duration scaling affects the autobeaming rules. \scaleDurations #'(3 . 5) { \repeat unfold 2 { c8[ c c] } \repeat unfold 2 { c8[ c] } | - c4. c4. \times 2/3 { c8[ c c] } c4 + c4. c \times 2/3 { c8[ c c] } c4 } } >> @end lilypond -@strong{@i{Staves with different time signatures, unequal bar lengths}} +@subsubheading Different time signatures with unequal-length measures Each staff can be given its own independent time signature by moving the @code{Timing_translator} and the @@ -1632,11 +1631,44 @@ moving the @code{Timing_translator} and the >> @end lilypond -@snippets +@funindex \compoundMeter +@cindex compound time signatures +@cindex time signature, compound + +@subsubheading Compound time signatures + +These are created using the @code{\compoundMeter} function. The syntax +for this is: + +@example +\compoundMeter #'@code{(list of lists)} +@end example + +The simplest construction is a single list, where the @emph{last} number +indicates the bottom number of the time signature and those that come +before it, the top numbers. -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] -{compound-time-signatures.ly} +@lilypond[quote,verbatim] +\relative c' { + \compoundMeter #'((2 2 2 8)) + \repeat unfold 6 c8 \repeat unfold 12 c16 +} +@end lilypond + +More complex meters can be constructed using additional lists. Also, +automatic beaming settings will be adjusted depending on the values. + +@lilypond[quote,verbatim] +\relative c' { + \compoundMeter #'((1 4) (3 8)) + \repeat unfold 5 c8 \repeat unfold 10 c16 +} +\relative c' { + \compoundMeter #'((1 2 3 8) (3 4)) + \repeat unfold 12 c8 +} +@end lilypond @seealso Music Glossary: @@ -1645,6 +1677,8 @@ Music Glossary: @rglos{meter}. Notation Reference: +@ref{Automatic beams}, +@ref{Manual beams}, @ref{Time signature}, @ref{Scaling durations}. @@ -1659,13 +1693,11 @@ Internals Reference: @knownissues - -When using different time signatures in parallel, notes -at the same moment will be placed at the same horizontal -location. However, the bar lines in the different staves -will cause the note spacing to be less regular in each of the -individual staves than would be normal without the different -time signatures. +When using different time signatures in parallel, notes at the same +moment will be placed at the same horizontal location. However, the bar +lines in the different staves will cause the note spacing to be less +regular in each of the individual staves than would be normal without +the different time signatures. @node Automatic note splitting @unnumberedsubsubsec Automatic note splitting @@ -1805,7 +1837,7 @@ be done with the @code{Pitch_squash_engraver} and @snippets -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {guitar-strum-rhythms.ly} @@ -1887,16 +1919,16 @@ created; see @ref{Setting automatic beam behavior}. @funindex breakable @snippets -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {beams-across-line-breaks.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {changing-beam-knee-gap.ly} @cindex beams, \partcombine with \autoBeamOff @cindex voices, \partcombine with \autoBeamOff -@lilypondfile [verbatim, lilyquote, ragged-right, texidoc, doctitle] +@lilypondfile [verbatim, quote, ragged-right, texidoc, doctitle] {partcombine-and-autobeamoff.ly} @seealso @@ -1919,15 +1951,6 @@ Internals Reference: @rinternals{beam-interface}, @rinternals{unbreakable-spanner-interface}. -@knownissues -Beams can collide with note heads and accidentals in other -voices. In this case use @ref{Manual beams}. - -@lilypond[quote,relative=1,verbatim] -c8 des'! c, [ des'! ] -@end lilypond - - @node Setting automatic beam behavior @unnumberedsubsubsec Setting automatic beam behavior @@ -2045,7 +2068,7 @@ c16 c c | of beaming-rules. At this time the only available value of rule-type is -@code{#'end} for beam ending. +@code{'end} for beam ending. Beaming-rules is a scheme alist (or list of pairs) that indicates the beam type and the grouping to be applied to beams containing notes with @@ -2163,21 +2186,26 @@ The default beaming rules can be found in @cindex beams, subdividing -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {subdividing-beams.ly} +@cindex beamlets, orienting + +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] +{strict-beat-beaming.ly} + @cindex measure groupings @cindex beats, grouping @cindex grouping beats @cindex measure sub-grouping -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {conducting-signs,-measure-grouping-signs.ly} @cindex beam, endings in a score @cindex beam, endings with multiple voices -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {beam-endings-in-score-context.ly} @@ -2330,7 +2358,7 @@ g16 a] @snippets -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {flat-flags-and-beam-nibs.ly} @@ -2724,30 +2752,33 @@ c1 | c | c | c c1 | c | c | c @end lilypond - @snippets - -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {printing-the-bar-number-for-the-first-measure.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {printing-bar-numbers-at-regular-intervals.ly} @cindex measure number, format @cindex bar number, format -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {printing-bar-numbers-inside-boxes-or-circles.ly} +@cindex bar numbers, with letters +@cindex bar numbers, with repeats + +@lilypondfile[verbatim,quote,texidoc,doctitle] +{alternative-bar-numbering.ly} + @cindex bar number alignment -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {aligning-bar-numbers.ly} -@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {removing-bar-numbers-from-a-score.ly} - @seealso Snippets: @rlsr{Rhythms}. @@ -2756,7 +2787,6 @@ Internals Reference: @rinternals{BarNumber}, @rinternals{Bar_number_engraver}. - @cindex bar number collision @cindex collision, bar number @@ -3030,33 +3060,39 @@ Internals Reference: @cindex acciaccatura @funindex \grace -@funindex grace +@funindex \slashedGrace +@funindex \acciaccatura +@funindex \appoggiatura -Grace notes are ornaments that are written out. Grace notes -are printed in a smaller font and take up no logical time -in a measure. +Grace notes are musical ornaments, printed in a smaller font, that take +up no additional logical time in a measure. @lilypond[quote,relative=2,verbatim] -c4 \grace c16 c4 -\grace { c16[ d16] } c2 +c4 \grace b16 a4( +\grace { b16[ c16] } a2) @end lilypond -LilyPond also supports two special types of grace notes, the +There are three other types of grace notes possible; the @emph{acciaccatura} -- an unmeasured grace note indicated by a slurred -small note with a slashed stem -- and the @emph{appoggiatura}, which -takes a fixed fraction of the main note and appears in small print -without a slash. +note with a slashed stem -- and the @emph{appoggiatura}, which takes a +fixed fraction of the main note it is attached to and prints without the +slash. It is also possible to write a grace note with a slashed stem, +like the @emph{acciaccatura} but without the slur, so as to place it +between notes that are slurred themselves, using the +@code{\slashedGrace} function. @lilypond[quote,relative=2,verbatim] -\grace c8 b4 \acciaccatura d8 c4 \appoggiatura e8 d4 -\acciaccatura { g16[ f] } e4 +\acciaccatura { g16[ f] } e2 +\slashedGrace a,8 g4 +\slashedGrace b16 a4( +\slashedGrace b8 a2) @end lilypond -The placement of grace notes is synchronized between different -staves. In the following example, there are two sixteenth grace -notes for every eighth grace note +The placement of grace notes is synchronized between different staves. +In the following example, there are two sixteenth grace notes for every +eighth grace note @lilypond[quote,relative=2,verbatim] << @@ -3143,16 +3179,16 @@ direction is overridden and then reverted. @snippets -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {using-grace-note-slashes-with-normal-heads.ly} -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {tweaking-grace-layout-within-music.ly} -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {redefining-grace-note-global-defaults.ly} -@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +@lilypondfile[verbatim,quote,texidoc,doctitle] {positioning-grace-notes-with-floating-space.ly} @@ -3213,9 +3249,9 @@ durations in the other staves. For the above example >> @end lilypond -The use of grace notes within voice contexts confuses the way the -voice is typeset. This can be overcome by inserting a rest or note -between the voice command and the grace note. +The use of grace notes within voice contexts confuses the way the voice +is typeset. This can be overcome by inserting a rest or note between the +voice command and the grace note. @lilypond[quote,verbatim] accMusic = { @@ -3240,9 +3276,33 @@ accMusic = { } @end lilypond -Grace sections should only be used within sequential music -expressions. Nesting or juxtaposing grace sections is not -supported, and might produce crashes or other errors. +Grace sections should only be used within sequential music expressions. +Nesting or juxtaposing grace sections is not supported, and might +produce crashes or other errors. + +Each grace note in MIDI output has a length of 1/4 of its actual +duration. If the combined length of the grace notes is greater than the +length of the preceding note a @qq{@code{Going back in MIDI time}} +error will be generated. Either make the grace notes shorter in +duration, for example: + +@example +\acciaccatura @{ c'8[ d' e' f' g'] @} +@end example + +becomes: + +@example +\acciaccatura @{ c'16[ d' e' f' g'] @} +@end example + +Or explicitly change the musical duration: + +@example +\acciaccatura @{ \scaleDurations #' (1 . 2) @{ c'8[ d' e' f' g'] @} @} +@end example + +See @ref{Scaling durations}. @node Aligning to cadenzas @@ -3274,9 +3334,9 @@ MyCadenza = \relative c' { \MyCadenza c'1 } \new Staff { - #(ly:export (mmrest-of-length MyCadenza)) + $(mmrest-of-length MyCadenza) c'1 - #(ly:export (skip-of-length MyCadenza)) + $(skip-of-length MyCadenza) c'1 } >>