lilypond-user
[Top][All Lists]
Advanced

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

Re: \include "*.ly" for only part of a score


From: Jay Anderson
Subject: Re: \include "*.ly" for only part of a score
Date: Thu, 2 Jan 2014 19:11:15 -0700

On Thu, Jan 2, 2014 at 6:55 PM, guocuozuoduo <address@hidden> wrote:
> I would like to know how to use the \include command for only part of a score.
> It is not described in the manual.

sectionA.ily:
\relative c' {\time 4/4 c1 |}

sectionB.ily:
\relative c' {e1 |}

score.ly:
\score {
  \new Staff {
    \include "sectionA.ily"
    \include "sectionB.ily"
  }
}

(I haven't tested the above, but this shows the idea.)

Alternatively you could assign the sections to variables and use those
instead of using \include directly:


sectionA.ily:
sectionA = \relative c' {\time 4/4 c1 |}

sectionB.ily:
sectionB = \relative c' {e1 |}

score.ly:
\include "sectionA.ily"
\include "sectionB.ily"

\score {
  \new Staff {
    \sectionA
    \sectionB
  }
}

-----Jay



reply via email to

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