X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fsubdividing-beams.ly;h=05f6b9bc9b942be33adae0fbf81c6bf218fe7f0f;hb=2c6f3ccb58859c257744730e8cf91c62a2005632;hp=0271740ca722c36f01dcf52913ddce068e1fb20c;hpb=8247813bc580a90f7838846dc38aad5d49ac9d9d;p=lilypond.git diff --git a/Documentation/snippets/subdividing-beams.ly b/Documentation/snippets/subdividing-beams.ly index 0271740ca7..05f6b9bc9b 100644 --- a/Documentation/snippets/subdividing-beams.ly +++ b/Documentation/snippets/subdividing-beams.ly @@ -1,10 +1,11 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it -%% Make any changes in LSR itself, or in Documentation/snippets/new/ , -%% and then run scripts/auxiliar/makelsr.py -%% -%% This file is in the public domain. -\version "2.14.2" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.19.40 +\version "2.19.40" \header { lsrtags = "rhythms" @@ -16,30 +17,46 @@ entire groups of notes. This behavior can be modified to subdivide the beams into sub-groups by setting the property @code{subdivideBeams}. When set, multiple beams will be subdivided at intervals defined by the current value of @code{baseMoment} by reducing the multiple beams to -just one beam between the sub-groups. Note that @code{baseMoment} -defaults to one over the denominator of the current time signature if -not set explicitly. It must be set to a fraction giving the duration of -the beam sub-group using the @code{ly:make-moment} function, as shown -in this snippet. Also, when @code{baseMoment} is changed, -@code{beatStructure} should also be changed to match the new -@code{baseMoment}: +the number of beams that indicates the metric value of the subdivision. +If the group following the division is shorter than the current metric +value (usually because the beam is incomplete) the number of beams +reflects the longest possible subdivision group. However, if there is +only one note left after the division this restriction isn't applied. +Note that @code{baseMoment} defaults to one over the denominator of the +current time signature if not set explicitly. It must be set to a +fraction giving the duration of the beam sub-group using the +@code{ly:make-moment} function, as shown in this snippet. Also, when +@code{baseMoment} is changed, @code{beatStructure} should also be +changed to match the new @code{baseMoment}: " doctitle = "Subdividing beams" } % begin verbatim + \relative c'' { c32[ c c c c c c c] \set subdivideBeams = ##t c32[ c c c c c c c] % Set beam sub-group length to an eighth note - \set baseMoment = #(ly:make-moment 1 8) - \set beatStructure = #'(2 2 2 2) + \set baseMoment = #(ly:make-moment 1/8) + \set beatStructure = 2,2,2,2 c32[ c c c c c c c] % Set beam sub-group length to a sixteenth note - \set baseMoment = #(ly:make-moment 1 16) - \set beatStructure = #'(4 4 4 4) + \set baseMoment = #(ly:make-moment 1/16) + \set beatStructure = 4,4,4,4 c32[ c c c c c c c] + + % Shorten beam by 1/32 + \set baseMoment = #(ly:make-moment 1/8) + \set beatStructure = 2,2,2,2 + c32[ c c c c c c] r32 + + % Shorten beam by 3/32 + \set baseMoment = #(ly:make-moment 1/8) + \set beatStructure = 2,2,2,2 + c32[ c c c c] r16. + r2 }