David Kastrup wrote > doScore = > #(define-void-function (parser location cond? mus)(procedure? ly:music?) > ; if condition is met, parser shall create score > (if (cond? parser location) > (begin > (ly:parser-define! parser 'doScoreMusic mus) > (ly:parser-include-string parser (format "\\score { \\doScoreMusic > }")) > ))) > > With current LilyPond (as of 2.19.0, issue 3728), you could likely do > better with something like > > doScore = > #(define-scheme-function (parser location cond? mus) (procedure? > ly:music?) > (if (cond? parser location) > #{ \score { #mus } #}))
Nice, that is certainly better! Thanks for the reminder on how to do this (I had simply forgotten...). And as always thanks for all your good work on LilyPond. -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Pull-in-external-LilyPond-files-into-a-score-of-movements-tp161839p161904.html Sent from the User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user