lilypond-user
[Top][All Lists]
Advanced

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

Re: "header", "layout" and "paper" blocks as variables...


From: Trevor Bača
Subject: Re: "header", "layout" and "paper" blocks as variables...
Date: Mon, 2 Jun 2008 14:52:36 -0500

Hi José,

Valentin & Matt have already given much better responses to this thread. But, on the chance that what you're really looking for is simply a way to *externalize* big, complicated \header or \layout or \paper blocks from your main .ly file, then bear in mind that you can do this:

### BEGIN ###

  \include "my-header.ly"
  \include "my-layout.ly"
  \include "my-paper.ly"

  % real .ly input
  % goes
  % here
  % ...

### END ###


Just in case that's what you were actually after ...

Trevor.



On Thu, May 22, 2008 at 7:30 PM, padovani <address@hidden> wrote:
hi.
is there a way to put the header, layout and block values as variables?

I woul like to use something like

myheader = \header { ..... }
mylayout = \layout { .... }
mypaper = \paper { ....}

and then call these variables to construct my score...

I tried but I get errors like:

./instr/comhead.ly:69:8: error: syntax error, unexpected STRING
        tagline = ##f
./instr/comhead.ly:70:26: error: unknown escaped string: `\cm'
  left-margin = 1.5
                        \cm
./instr/comhead.ly:71:27: error: unknown escaped string: `\cm'
  right-margin = 1.5
                         \cm
./instr/comhead.ly:72:25: error: unknown escaped string: `\cm'
  top-margin = 0.5
                       \cm
./instr/comhead.ly:73:28: error: unknown escaped string: `\cm'
  bottom-margin = 0.5
                          \cm


(continues.....)

any tips? Or am I doing something stupid?
thanks


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user



--
Trevor Bača
address@hidden
reply via email to

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