]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/generating-whole-scores-also-book-parts-in-scheme-without-using-the-parser.ly
Issue 2984: Use define-void-function rather than define-music-function in several...
[lilypond.git] / Documentation / snippets / generating-whole-scores-also-book-parts-in-scheme-without-using-the-parser.ly
index c2182e123a3130279d1910ca41e18d86e5949b07..ab86d893393b1b9aa603bc72e11986ee6c7abf9e 100644 (file)
@@ -98,9 +98,8 @@ modified to inser all collected scores so far to the book.
             (set! pitch (modulo (1+ pitch) 7)))))
 
 oneNoteScore =
-#(define-music-function (parser location) ()
-   (add-one-note-score parser)
-   (make-music 'Music 'void #t))
+#(define-void-function (parser location) ()
+   (add-one-note-score parser))
 
 %%%