]> git.donarmstrong.com Git - lilypond.git/blob - ly/grace-init.ly
* lily/stem.cc (get_default_stem_end_position): use beam_count - 1
[lilypond.git] / ly / grace-init.ly
1 \version "1.5.68"
2
3 startGraceMusic = {
4     \property Voice.Stem \override  #'direction = #1
5     \property Voice.Stem \override #'length = #5.5
6     \property Voice.Stem \override #'lengths = 
7         #(map (lambda (x) (* 0.8 x)) '(3.5 3.5 3.5 4.5 5.0))
8     \property Voice.Stem \override #'beamed-lengths =
9         #(map (lambda (x) (* 0.8 x)) '(0.0 2.5 2.0 1.5))
10     \property Voice.Stem \override #'beamed-minimum-lengths =
11         #(map (lambda (x) (* 0.8 x)) '(0.0 1.5 1.25 1.0))
12     \property Voice.Stem \override #'no-stem-extend = ##t
13     \property Voice.Stem \override #'flag-style  = #"grace"
14     \property Voice.Beam \override #'thickness = #0.384
15
16     %% Instead of calling Beam::space_function, we should invoke
17     %% the previously active beam function...
18     \property Voice.Beam \override #'space-function =
19       #(lambda (beam mult) (* 0.8 (Beam::space_function beam mult)))
20
21     \property Voice.Beam \override #'position-callbacks =
22       #`(,Beam::least_squares
23          ,Beam::check_concave
24          ,Beam::slope_damping)
25     
26     % Can't use Staff.fontSize, since time sigs, keys sigs, etc. will
27     % be smaller as well.
28
29     \property Voice.fontSize = #-2
30     \property Staff.Accidental \override #'font-relative-size = #-2
31     \property Voice.Slur \override #'direction = #-1
32 }
33
34 stopGraceMusic = {
35     \property Voice.Slur \revert #'direction
36     \property Staff.Accidental \revert #'font-relative-size
37     \property Voice.Beam \revert #'thickness
38
39     \property Voice.Stem \revert #'flag-style
40     \property Voice.Stem \revert #'no-stem-extend
41     \property Voice.Stem \revert #'beamed-lengths
42     \property Voice.Stem \revert #'beamed-minimum-lengths
43     \property Voice.Stem \revert #'lengths    
44     \property Voice.Stem \revert #'length
45     \property Voice.Stem \revert #'direction    
46     \property Voice.Beam \revert #'space-function
47     
48     \property Voice.Beam \revert #'position-callbacks
49     
50     % Can't use Staff.fontSize, since time sigs, keys sigs, etc. will
51     % be smaller as well.
52
53     \property Voice.fontSize \unset
54 }