]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/subdividing-beams.ly
Allow user-defined predefined fretboard hash-table
[lilypond.git] / Documentation / snippets / subdividing-beams.ly
1 % Do not edit this file; it is automatically
2 % generated from Documentation/snippets/new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.29
5 \version "2.13.36"
6
7 \header {
8 %% Translation of GIT committish: 190a067275167c6dc9dd0afef683d14d392b7033
9   texidocfr = "
10 Les ligatures d'une succession de notes de durée inférieure à la croche
11 ne sont pas subdivisées par défaut.  Autrement dit, tous les traits de
12 ligature ( deux ou plus) seront continus.  Ce comportement peut être
13 modifié afin de diviser la ligature en sous-groupes grâce à la propriété
14 @code{subdivideBeams}.  Lorsqu'elle est activée, les ligatures seront
15 subdivisées selon un intervalle défini par @code{baseMoment}@tie{}; il n'y
16 aura alors plus qu'un seul trait de ligature entre chaque sous-groupe.
17 Par défaut, @code{baseMoment} fixe la valeur de référence par rapport à
18 la métrique en vigueur.  Il faudra donc lui fournir, à l'aide de la
19 fonction @code{ly:make-moment}, une fraction correspondant à la durée du
20 sous-groupe désiré comme dans l'exemple ci-dessous.  Gardez à l'esprit
21 que, si vous venez à modifier @code{baseMoment}, vous devrez
22 probablement adapter @code{beatStrusture} afin qu'il reste en adéquation
23 avec les nouvelles valeurs de @code{baseMoment}.
24
25 "
26   doctitlefr = "Subdivision des ligatures"
27
28   lsrtags = "rhythms"
29
30   texidoc = "
31 The beams of consecutive 16th (or shorter) notes are, by default, not
32 subdivided.  That is, the three (or more) beams stretch unbroken over
33 entire groups of notes.  This behavior can be modified to subdivide
34 the beams into sub-groups by setting the property
35 @code{subdivideBeams}. When set, multiple beams will be subdivided at
36 intervals defined by the current value of @code{baseMoment} by reducing
37 the multiple beams to just one beam between the sub-groups. Note that
38 @code{baseMoment} defaults to one over the denominator of the current
39 time signature if not set explicitly. It must be set to a fraction
40 giving the duration of the beam sub-group using the
41 @code{ly:make-moment} function, as shown in this snippet. Also, when
42 @code{baseMoment} is changed, @code{beatStructure} should also be changed
43 to match the new @code{baseMoment}:
44
45 "
46   doctitle = "Subdividing beams"
47 } % begin verbatim
48
49
50 \relative c'' {
51   c32[ c c c c c c c]
52   \set subdivideBeams = ##t
53   c32[ c c c c c c c]
54
55   % Set beam sub-group length to an eighth note
56   \set baseMoment = #(ly:make-moment 1 8)
57   \set beatStructure = #'(2 2 2 2)
58   c32[ c c c c c c c]
59
60   % Set beam sub-group length to a sixteenth note
61   \set baseMoment = #(ly:make-moment 1 16)
62   \set beatStructure = #'(4 4 4 4)
63   c32[ c c c c c c c]
64 }
65