|
From: | Gianmaria Lari |
Subject: | Re: scheme function returning two scores |
Date: | Sun, 25 Feb 2018 13:26:37 +0100 |
Gianmaria Lari <address@hidden> writes:
> Because lilypond "doesn't expect" to return more than one score I tried to
> put the call to my function returning the score inside a \book. But this
> also does not work and I get this error:
>
> This is my code:
>
> \version "2.19.81"
> myScore = #(define-scheme-function (music) (ly:music?) #{
> \score { $music \layout{} }
> \score { \unfoldRepeats $music \midi{}}
> }
> #})
Where is the book you are purporting to return?
\version "2.19.81"myScore = #(define-scheme-function (music) (ly:music?) #{\score { $music \layout{} }\score { \unfoldRepeats $music \midi{}}#} )\book {\myScore {\repeat percent 2 {c' d' e' f'}}\myScore {\repeat percent 2 {g c' c' c'}}}
\version "2.19.81"myScore = #(define-scheme-function (music) (ly:music?) #{\book {\score { $music \layout{} }\score { \unfoldRepeats $music \midi{}}} #} )\myScore {\repeat percent 2 {c' d' e' f'}}\myScore {\repeat percent 2 {g c' c' c'}}
[Prev in Thread] | Current Thread | [Next in Thread] |