X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fgrace-init.ly;h=0f31f45815c89e8c28b29ad119c4fd2c98f1b75c;hb=94a603c629aace257f19bcdff13804f9b5692ed6;hp=691498d1bd00aaa847793c49a961d364684b4c80;hpb=1539b48e9bd7cd7698e602dc3d3dbe74a6567a49;p=lilypond.git diff --git a/ly/grace-init.ly b/ly/grace-init.ly index 691498d1bd..0f31f45815 100644 --- a/ly/grace-init.ly +++ b/ly/grace-init.ly @@ -1,45 +1,27 @@ +\version "2.7.39" -#(define (grace-beam-space-function multiplicity) - (* (if (<= multiplicity 3) 0.816 0.844) 0.8)) +startGraceMusic = { +} -startGraceMusic = { - \property Voice.Stem \override #'direction = #1 - \property Voice.Stem \override #'length = #6 - \property Voice.Stem \override #'lengths = - #(map (lambda (x) (* 0.8 x)) '(3.5 3.5 3.5 4.5 5.0)) - \property Voice.Stem \override #'beamed-lengths = - #(map (lambda (x) (* 0.8 x)) '(0.0 2.5 2.0 1.5)) - \property Voice.Stem \override #'beamed-minimum-lengths = - #(map (lambda (x) (* 0.8 x)) '(0.0 1.5 1.25 1.0)) - \property Voice.Stem \override #'no-stem-extend = ##t - \property Voice.Stem \override #'flag-style = #"grace" - - \property Voice.Beam \override #'space-function = #grace-beam-space-function - \property Voice.Beam \override #'thickness = #0.384 - - % Can't use Staff.fontSize, since time sigs, keys sigs, etc. will - % be smaller as well. +stopGraceMusic = { +} - \property Voice.fontSize = #-2 - \property Staff.Accidentals \override #'font-relative-size = #-2 +startAppoggiaturaMusic = + { + s1*0( } -stopGraceMusic = { - \property Voice.Beam \revert #'space-function - \property Voice.Beam \revert #'thickness +stopAppoggiaturaMusic = { + s1*0) +} - \property Voice.Stem \revert #'flag-style - \property Voice.Stem \revert #'no-stem-extend - \property Voice.Stem \revert #'beamed-lengths - \property Voice.Stem \revert #'beamed-minimum-lengths - \property Voice.Stem \revert #'lengths - \property Voice.Stem \revert #'length - \property Voice.Stem \revert #'direction - - % Can't use Staff.fontSize, since time sigs, keys sigs, etc. will - % be smaller as well. +startAcciaccaturaMusic = { + s1*0( + \override Stem #'stroke-style = #"grace" +} - \property Voice.fontSize \unset - \property Staff.LocalKeyItem \revert #'font-relative-size +stopAcciaccaturaMusic = { + \revert Stem #'stroke-style + s1*0) }