|
From: | Gianmaria Lari |
Subject: | Re: scheme function returning two scores |
Date: | Sun, 25 Feb 2018 22:55:15 +0100 |
Gianmaria Lari <address@hidden> writes:
> Yes, I tried it but didn't work.... did I made a mistake?
>
> \version "2.19.81"
>
> myScore = #(define-scheme-function (music) (ly:music?) #{
> \bookpart {
> \score { $music \layout{} }
> \score { \unfoldRepeats $music \midi{}}
> } #} )
>
> \myScore {\repeat percent 2 {c' d' e' f'}}
> \myScore {\repeat percent 2 {g c' c' c'}}
>
>
> I also tried bookpart inside a book
>
> \version "2.19.81"
>
> myScore = #(define-scheme-function (music) (ly:music?) #{
> \bookpart {
> \score { $music \layout{} }
> \score { \unfoldRepeats $music \midi{}}
> } #} )
>
> \book {
> \myScore {\repeat percent 2 {c' d' e' f'}}
> \myScore {\repeat percent 2 {g c' c' c'}}
> }
Interesting. Looks like books/bookparts as scheme function values are
not handled in the parser. Probably worth a bug report.
In the mean time, you could define a void function and let it just call
toplevel-score-handler on your scores. Of course, this would no longer
allow you to place those scores in a book or bookpart.
[Prev in Thread] | Current Thread | [Next in Thread] |