]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/music-function.ly
Bugfix
[lilypond.git] / input / regression / music-function.ly
index 19cb5a887cf267d49ef9d94091e7c04e0bb2c9e2..c904f6166c6b6c3e3b96cc6055c207fa17cd4ebe 100644 (file)
@@ -7,16 +7,12 @@ demonstrate a @code{\myBar} function, which works similar to
 @code{\bar}, but is implemented completely in Scheme."
 
 }
-\version "2.3.22"
+\version "2.4.0"
 
-#(define myBar
-  (ly:make-music-function
-   (list string?)
-   (lambda (where type)
-    (context-spec-music
-     (context-spec-music (make-property-set 'whichBar type) 'Timing)
-     'Score))
-    ))
+myBar = #(def-music-function (parser location bar-type) (string?)
+          (context-spec-music
+           (context-spec-music (make-property-set 'whichBar bar-type) 'Timing)
+           'Score))
 
 \layout { raggedright = ##t }