|
From: | Stefan Thomas |
Subject: | Re: score in a music function? |
Date: | Wed, 6 Feb 2013 17:01:29 +0100 |
I don't have 2.16 installed, but with current versions
\version "2.16.2"
TheScore = #(define-scheme-function (parser location x y) (ly:music?
ly:music?)
#{
\score {
\new StaffGroup
<<
\new Staff \with { instrumentName = "first" } $x
\new Staff \with { instrumentName = "second" } $y
>>
}
#})
first = \relative c' { c4 d e f g1 }
second = \relative c'' { g4 f e d c1 }
\score { \TheScore \first \second }
appears to work. Of course, if you are going to have to write
\score { ... } anyway, the incentive for not just using a music function
is not all that high.
--
David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |