lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pull in external LilyPond files into a score of movements


From: Paul Morris
Subject: Re: Pull in external LilyPond files into a score of movements
Date: Mon, 28 Apr 2014 13:58:04 -0700 (PDT)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]