]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/grace-init.ly
lekker hakken
[lilypond.git] / ly / grace-init.ly
index b9a895cdc40f4f163ffe9a0a7f283526ecc89d39..8cd9b0392d0d0135eeb0c99c7c4660c80f8fbe12 100644 (file)
@@ -1,45 +1,33 @@
+\version "2.3.1"
 
-#(define (grace-beam-space-function multiplicity)
-  (* (if (<= multiplicity 3) 0.816 0.844) 0.8))
 
+startGraceMusic = \notes {
+    \context Voice \applycontext #set-start-grace-properties
+}
 
-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) (* 1.25 x)) '(0.0 2.5 2.0 1.5))
-    \property Voice.Stem \override #'beamed-minimum-lengths =
-        #(map (lambda (x) (* 1.25 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.3
-    
-    % Can't use Staff.fontSize, since time sigs, keys sigs, etc. will
-    % be smaller as well.
+stopGraceMusic = \notes { 
+    \context Voice \applycontext #set-stop-grace-properties
+}
 
-    \property Voice.fontSize = #-2
-    \property Staff.LocalKeyItem \override #'font-relative-size = #-2
+startAppoggiaturaMusic =
+\notes {
+    \context Voice \applycontext #set-start-grace-properties
+    s1*0(
 }
 
-stopGraceMusic = {
-    \property Voice.Beam \revert #'space-function
-    \property Voice.Beam \revert #'thickness
+stopAppoggiaturaMusic = \notes { 
+    \context Voice \applycontext #set-stop-grace-properties
+    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 = \notes {
+    \context Voice \applycontext #set-start-grace-properties
+    s1*0(
+    \override Stem  #'stroke-style = #"grace"
+}
 
-    \property Voice.fontSize \unset
-    \property Staff.LocalKeyItem \revert #'font-relative-size
+stopAcciaccaturaMusic = \notes {
+    \revert Stem #'stroke-style
+    \context Voice \applycontext #set-stop-grace-properties
+    s1*0)
 }