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