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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
--
Trevor Bača
[EMAIL PROTECTED]
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user