]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly
Merge master into nested-bookparts
[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.11.62"
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   texidoc = "
19 In a simple time signature of 2/2 or 4/4, 8th notes are beamed by
20 default as two sets of four.
21
22 Using a macro which overrides the autobeaming behavior, this snippet
23 changes the beaming to quarter note beats. 
24
25 "
26   doctitle = "Automatic beams two per two in 4/4 or 2/2 time signature"
27 } % begin verbatim
28 % Automatic beams two per two in 4/4 or 2/2 time signature
29 %              _____
30 % Default     | | | |
31 %              _   _
32 % Required    | | | |
33
34 % macro for beamed two per two in 2/2 and 4/4 time signature
35 qBeam = {
36   #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff)
37   #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff)
38   #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff)
39 }
40
41 \score {
42   <<
43     \new Staff \relative c'' {
44       \time 4/4
45       g8^\markup { without the macro } g g g g g g g
46       g8 g g g4 g8 g g
47     }
48     %Use the macro
49     \new Staff \relative c'' {
50       \time 4/4
51       \qBeam
52       g8^\markup { with the macro } g g g g g g g
53       g8 g g g4 g8 g g
54     }
55   >>
56   \layout {
57     \context {
58       \Staff
59       \override TimeSignature #'style = #'()
60     }
61   }
62 }