lilypond-user
[Top][All Lists]
Advanced

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

score in a music function?


From: Stefan Thomas
Subject: score in a music function?
Date: Wed, 6 Feb 2013 18:20:04 +0100

Sorry, I can't find the mistake!
Here's my code:

\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 }

2013/2/6 David Kastrup <address@hidden>
Stefan Thomas <address@hidden> writes:

> 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    }
>

Looks more like a copy&paste error than anything else.  Non-breaking
spaces or something?

--
David Kastrup



reply via email to

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