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