]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly
Merge commit 'origin/dev/jneeman' into systems-per-page
[lilypond.git] / input / lsr / 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 LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.0"
4
5 \header {
6   lsrtags = "rhythms"
7
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   texidoc = "
31 In a simple time signature of 2/2 or 4/4, 8th notes are beamed by
32 default as two sets of four.
33
34 Using a macro which overrides the autobeaming behavior, this snippet
35 changes the beaming to quarter note beats. 
36
37 "
38   doctitle = "Automatic beams two per two in 4/4 or 2/2 time signature"
39 } % begin verbatim
40
41 % Automatic beams two per two in 4/4 or 2/2 time signature
42 %              _____
43 % Default     | | | |
44 %              _   _
45 % Required    | | | |
46
47 % macro for beamed two per two in 2/2 and 4/4 time signature
48 qBeam = {
49   #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff)
50   #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff)
51   #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff)
52 }
53
54 \score {
55   <<
56     \new Staff {
57       \relative c'' {
58         \time 4/4
59         g8-"without the macro" g g g g g g g
60         g8 g g g4 g8 g g
61       }
62     }
63     %Use the macro
64     \new Staff {
65       \relative c'' {
66         \time 4/4
67         \qBeam
68         g8-"with the macro" g g g g g g g
69         g8 g g g4 g8 g g
70       }
71     }
72   >>
73   \layout {
74     \context {
75       \Staff
76       \override TimeSignature #'style = #'()
77     }
78   }
79 }