diff options
author | Urs Liska <ul@openlilylib.org> | 2015-12-28 16:08:11 +0100 |
---|---|---|
committer | Urs Liska <ul@openlilylib.org> | 2015-12-28 17:08:57 +0100 |
commit | 706d797884199982b6b849ba11942865d0b17fd2 (patch) | |
tree | ef626c6c3ef045515ca2108f91109ce34b55af62 | |
parent | 4b994f8a49892039def08d141daf12c128a12cd4 (diff) |
4704: Update doc-snippet through makelsr.py
-rw-r--r-- | Documentation/snippets/subdividing-beams.ly | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/Documentation/snippets/subdividing-beams.ly b/Documentation/snippets/subdividing-beams.ly index d1def01815..b15e1b1dfa 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.di.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.18.0" +% 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.34 +\version "2.19.34" \header { lsrtags = "rhythms" @@ -16,8 +17,12 @@ 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 -the number of beams that indicates the length of the sub-group. Note -that @code{baseMoment} defaults to one over the denominator of the +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 @@ -42,4 +47,15 @@ changed to match the new @code{baseMoment}: \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. + +} % begin verbatim |