lilypond-user
[Top][All Lists]
Advanced

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

Re: score in a music function?


From: Stefan Thomas
Subject: Re: score in a music function?
Date: Wed, 6 Feb 2013 17:01:29 +0100

Dear David,
I also use version 2.16.2
But Your example doesn't work for me.
I get the error message
partiturtest.ly:17:34: Fehler: syntax error, unexpected '} \score { \TheScore \first \second    }

 
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

reply via email to

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