]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly
Fix makelsr.py and update LSR
[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 %% Tags: rhythms
4 \version "2.11.35"
5
6 \header { texidoc = "
7 In time signature 2/2 or 4/4 the beam are  @code{         _____        
8  _   _  Default | | | | I want | | | |. } Use a \"macro\" with
9 #(override-auto-beam-setting '.....
10
11
12
13 " }
14 % begin verbatim
15 % Automatic beams two per two in 4/4 or 2/2 time signature
16 %            _____
17 % Default   | | | | 
18 %            _   _
19 % I want    | | | |
20
21 % The good way adapted from David Bobrof
22
23 % macro for beamed two per two in 2/2 and 4/4 time signature
24 qbeam={  
25         #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff)
26         #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff)
27         #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff) 
28         }
29 % other macros  
30 timeFractionstyle={ \override Staff.TimeSignature #'style = #'()}
31 textn = ^\markup{ without the macro }
32 texty = ^\markup{ with the macro }
33
34 \score {
35  << 
36         \new Staff << \relative c'' {  
37                 \timeFractionstyle
38                 \time 4/4
39                  g8\textn g g g   g g g g   g g g g4  g8 g g
40                  }
41                 >>
42                 
43         %Use the macro  
44         
45         \new Staff << \relative c'' {  
46                 \timeFractionstyle
47                 \time 4/4
48                 \qbeam
49                 g8\texty g g g   g g g g  g g g g4  g8 g g 
50                  }
51          >>      
52  >>
53 \layout{ raggedright = ##t }
54 }