]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly
Modify autobeam and grouping properties
[lilypond.git] / Documentation / snippets / automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 %% Note: this file works from version 2.13.4
4 \version "2.13.4"
5
6 \header {
7 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
8   texidoces = "
9 En un compás sencillo como 2/2 ó 4/4, las corcheas se barran de forma
10 predeterminada como dos grupos de cuatro.
11
12 Utilizando un macro que seobreescribe el comportamiento automático del
13 barrado, este fragmento de código cambia el barrado a pulsos de negra.
14
15 "
16   doctitlees = "Barras automáticas de dos en dos en los compases de 4/4 o de 2/2"
17
18 %% Translation of GIT committish: 1154b407d42f303a024598296ad36ab6c93e2b5a
19   texidocfr = "
20 Dans une métrique simple comme 4/4 ou 2/2, les croches sont ligaturées
21 par défaut en deux groupes de quatre.
22
23 En utilisant une macro qui modifie le comportement des ligatures 
24 automatiques, voici comment obtenir des ligatures basées sur la valeur 
25 d'une noire.
26
27 "
28   doctitlefr = "Ligature automatique deux par deux, aussi bien en 4/4 qu'en 2/2"
29
30   lsrtags = "rhythms"
31
32 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
33   texidoces = "
34 En un compás sencillo como 2/2 ó 4/4, las corcheas se barran de forma
35 predeterminada como dos grupos de cuatro.
36
37 Utilizando un macro que seobreescribe el comportamiento automático del
38 barrado, este fragmento de código cambia el barrado a pulsos de negra.
39
40 "
41   doctitlees = "Barras automáticas de dos en dos en los compases de 4/4 o de 2/2"
42
43 %% Translation of GIT committish: 1154b407d42f303a024598296ad36ab6c93e2b5a
44   texidocfr = "
45 Dans une métrique simple comme 4/4 ou 2/2, les croches sont ligaturées
46 par défaut en deux groupes de quatre.
47
48 En utilisant une macro qui modifie le comportement des ligatures
49 automatiques, voici comment obtenir des ligatures basées sur la valeur
50 d'une noire.
51
52 "
53   doctitlefr = "Ligature automatique deux par deux, aussi bien en 4/4 qu'en 2/2"
54
55   texidoc = "
56 In a simple time signature of 2/2 or 4/4, 8th notes are beamed by
57 default as two sets of four.
58
59 Using a macro which overrides the autobeaming behavior, this snippet
60 changes the beaming to quarter note beats.
61
62 "
63   doctitle = "Automatic beams two per two in 4/4 or 2/2 time signature"
64 } % begin verbatim
65
66 % Automatic beams two per two in 4/4 or 2/2 time signature
67 %              _____
68 % Default     | | | |
69 %              _   _
70 % Required    | | | |
71
72 % macro for beamed two per two in 2/2 and 4/4 time signature
73 qBeam = {
74   \overrideBeamSettings #'Staff #'(4 . 4) #'end #'((* . (1 1 1 1)))
75   \overrideBeamSettings #'Staff #'(2 . 2) #'end
76     #'((* . (1 1))
77        ((1 . 8) . (2 2 2 2)))
78 } % begin verbatim
79
80
81 \score {
82   <<
83     \new Staff {
84       \relative c'' {
85         \time 4/4
86         g8-"without the macro" g g g g g g g
87         g8 g g g4 g8 g g
88       }
89     }
90     %Use the macro
91     \new Staff {
92       \relative c'' {
93         \time 4/4
94         \qBeam
95         g8-"with the macro" g g g g g g g
96         g8 g g g4 g8 g g
97       }
98     }
99   >>
100   \layout {
101     \context {
102       \Staff
103       \override TimeSignature #'style = #'()
104     }
105   }
106 }
107