1%% DO NOT EDIT this file manually; it is automatically 2%% generated from Documentation/snippets/new 3%% Make any changes in Documentation/snippets/new/ 4%% and then run scripts/auxiliar/makelsr.py 5%% 6%% This file is in the public domain. 7%% Note: this file works from version 2.19.40 8\version "2.19.40" 9 10\header { 11 lsrtags = "rhythms" 12 13 texidoc = " 14The beams of consecutive 16th (or shorter) notes are, by default, not 15subdivided. That is, the three (or more) beams stretch unbroken over 16entire groups of notes. This behavior can be modified to subdivide the 17beams into sub-groups by setting the property @code{subdivideBeams}. 18When set, multiple beams will be subdivided at intervals defined by the 19current value of @code{baseMoment} by reducing the multiple beams to 20the number of beams that indicates the metric value of the subdivision. 21If the group following the division is shorter than the current metric 22value (usually because the beam is incomplete) the number of beams 23reflects the longest possible subdivision group. However, if there is 24only one note left after the division this restriction isn't applied. 25Note that @code{baseMoment} defaults to one over the denominator of the 26current time signature if not set explicitly. It must be set to a 27fraction giving the duration of the beam sub-group using the 28@code{ly:make-moment} function, as shown in this snippet. Also, when 29@code{baseMoment} is changed, @code{beatStructure} should also be 30changed to match the new @code{baseMoment}: 31 32" 33 doctitle = "Subdividing beams" 34} % begin verbatim 35 36 37\relative c'' { 38 c32[ c c c c c c c] 39 \set subdivideBeams = ##t 40 c32[ c c c c c c c] 41 42 % Set beam sub-group length to an eighth note 43 \set baseMoment = #(ly:make-moment 1/8) 44 \set beatStructure = 2,2,2,2 45 c32[ c c c c c c c] 46 47 % Set beam sub-group length to a sixteenth note 48 \set baseMoment = #(ly:make-moment 1/16) 49 \set beatStructure = 4,4,4,4 50 c32[ c c c c c c c] 51 52 % Shorten beam by 1/32 53 \set baseMoment = #(ly:make-moment 1/8) 54 \set beatStructure = 2,2,2,2 55 c32[ c c c c c c] r32 56 57 % Shorten beam by 3/32 58 \set baseMoment = #(ly:make-moment 1/8) 59 \set beatStructure = 2,2,2,2 60 c32[ c c c c] r16. 61 r2 62} 63