]> git.donarmstrong.com Git - lilypond.git/blob - input/test/beam-neutral-direction.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / input / test / beam-neutral-direction.ly
1
2 \version "2.1.26"
3 \header{
4         texidoc="@cindex Beam Neutral Direction
5 When a beam falls in the middle of the staff, LilyPond normally
6 prints the beam pointing down.  However, this behaviour can be
7 altered if desired.
8 " }
9
10 fragment = \notes {
11    b''8[ b]
12   \override Beam  #'neutral-direction = #-1
13    b[ b]
14   \override Beam  #'neutral-direction = #1
15    b[ b]
16 }
17
18 \paper { raggedright = ##t} 
19
20 \score {
21   \notes\relative c \fragment
22   \paper {raggedright = ##t }  
23 }
24