lilypond-user
[Top][All Lists]
Advanced

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

Re: Common Headings in Large Pieces


From: Mats Bengtsson
Subject: Re: Common Headings in Large Pieces
Date: Mon, 10 May 2004 10:14:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Cc: bug-lilypond; feature request included below!

If you have one \header{...} block at the top level of the file
and another one included withing \score{...}, it seems that LilyPond
combines the settings from both these header blocks. This may be a
solution to your problems, since you could simply have a file with
\header{
title = "Mary Had a Little Lamb"
composer = "Who knows?"
...
}
that you include in all your .ly files and then you add the
additional information in the
\score{
  ...
  \header{
    instrument = "trombone"
  }
}

I think it would be a nice feature if it was possible to have several
\header blocks also at the top level of a file where each new header
block only added to the existing settings (if the same field is
defined in several blocks, the latest one should hold, preferably with
a warning print out).

   /Mats

Cameron Horsburgh wrote:
Hi folks,

Thanks to the authors for a great piece of software! I'm actually able
to hold my head up when I take my arrangements to band...!

There is one thing that I would love to be able to do. The band I
arrange for has around 15 different parts. I have two separate files for
each instrument, for example trombone.ly (which is a top level file) and
trombone.notes (which holds the \notes block). I also have a score.ly
file which calls all the separate \notes blocks to produce a score. (The
ability to do this is very nice and far more intuitive than anything
else I've used.)

This works very well, but I get frustrated managing the \header block in
each .ly file. I can produce the \header block with simple cutting and
pasting, but any subsequent changes are annoying, especially if they're
only experimental.

I tried to get around this by creating another file called
'commonheadings.' This consisted of a definition:

commonheader = title = "Mary Had a Little Lamb"
composer = "Who knows?"

and so on. I called the file in an \include statement and then tried

\header {
commonheader
instrument = "trombone"
}

but I got the error
syntax error, unexpected '=':
        title
              = "Mary Had a Little Lamb"


I also tried defining the commonheader block as a header block, but this
wasn't allowed either.

Is there any way to achieve this? FYI, I'm using the current Debian
version of 2.0.1.

Thanks in advance for your help.

Cameron




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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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