lilypond-user
[Top][All Lists]
Advanced

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

Re: Score layout in a separate file


From: Choan Gálvez
Subject: Re: Score layout in a separate file
Date: Tue, 03 Apr 2012 15:21:59 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:11.0) Gecko/20120327 Thunderbird/11.0.1

On 4/3/12 15:17 , Siska Ádám wrote:
Dear List,


is there a way to put the layout block for a score in a variable that
lives in a separate file? Unfortunately the following won't compile:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

myMusic = \relative d' { d4 d d d }

myLayout = \layout { \context { \Staff \remove "Clef_engraver" } }

\score { \myMusic \myLayout }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I tried several other ways to export the content of the layout block,
but none of them succeeded. I'm writing parts of an orchestral piece
and I'd like to include the layout definition for these scores in a
separate file.

You must put the variable call inside a \layout block:

\score {
  \myMusic
  \layout {
    \myLayout
  }
}

will work fine.

Best.
--
Choan Gálvez

Ukecosas. Los ukeleles que nos gustan, también para ti
Visítanos: <http://ukecosas.es/>
Degústanos en Facebook: <http://facebook.com/ukecosas>



reply via email to

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