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