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