[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.
- Re: Pull in external LilyPond files into a score of movements, (continued)
- Re: Pull in external LilyPond files into a score of movements, Jay Anderson, 2014/04/26
- Re: Pull in external LilyPond files into a score of movements, Knute Snortum, 2014/04/26
- Re: Pull in external LilyPond files into a score of movements, Paul Morris, 2014/04/26
- Re: Pull in external LilyPond files into a score of movements, Urs Liska, 2014/04/27
- Re: Pull in external LilyPond files into a score of movements, Nick Payne, 2014/04/27
- Re: Pull in external LilyPond files into a score of movements, Jan-Peter Voigt, 2014/04/27
- Re: Pull in external LilyPond files into a score of movements, Paul Morris, 2014/04/28
- Re: Pull in external LilyPond files into a score of movements, David Kastrup, 2014/04/28
- Re: Pull in external LilyPond files into a score of movements, Paul Morris, 2014/04/28
- Re: Pull in external LilyPond files into a score of movements, David Kastrup, 2014/04/28
- Re: Pull in external LilyPond files into a score of movements,
Paul Morris <=
Pull in external LilyPond files into a score of movements, zvm, 2014/04/27