From 73bd6f6298ce6af6585bf7f8b71b88c1b56a25ec Mon Sep 17 00:00:00 2001 From: Carl Sorensen Date: Sun, 18 Jul 2010 06:45:10 -0600 Subject: [PATCH] Add renamed snippet to git repository --- Documentation/snippets/subdividing-beams.ly | 45 +++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/snippets/subdividing-beams.ly diff --git a/Documentation/snippets/subdividing-beams.ly b/Documentation/snippets/subdividing-beams.ly new file mode 100644 index 0000000000..39b4f69e83 --- /dev/null +++ b/Documentation/snippets/subdividing-beams.ly @@ -0,0 +1,45 @@ +% Do not edit this file; it is automatically +% generated from Documentation/snippets/new +% This file is in the public domain. +%% Note: this file works from version 2.13.29 +\version "2.13.29" + +\header { + lsrtags = "rhythms" + + texidoc = " +The beams of consecutive 16th (or shorter) notes are, by default, not +subdivided. That is, the three (or more) beams stretch unbroken over +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}: + +" + 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) + 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) + c32[ c c c c c c c] +} + -- 2.39.5