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 09:48:55 +0100

Dear community,
is it possible to have the score command in a music function?
I need it for a piece with different movements.
I've tried it with the following code which doesn't work:

\version "2.16.2"
TheScore = #(define-music-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 }

  \TheScore \first \second



reply via email to

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