lilypond-user
[Top][All Lists]
Advanced

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

RE: conditional


From: Dick Schoeller
Subject: RE: conditional
Date: Thu, 2 Oct 2003 07:59:04 -0400

Aaron,

What I, and I think many others do, is to create one or more files with
the common stuff.  Then include those files into a file that contains a
score block and references to the specific pieces that you want from the
common source.  You can have several different top level files, for
example one for each instrument, based off of the same set of notes.

Take a look at http://schoeller.ne.client2.attbi.com/scores/lilysource/
for an example of how you get the conductors score and the individual
parts.  I use the convention that .lyh is for lilypond source that is
included (similar .h for C and C++).  You should be able to do similar
things for your text.  If you have 2 different .ly files that include
much in common but initialize certain "variables" differently before
including the main body of the music definition, they will result in
different output from the same source.

Note that there are some tricks that I do in the above files that are
work arounds for annoyances in earlier versions of Lilypond that aren't
required any more.

Dick

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Aaron
Sent: Thursday, October 02, 2003 6:15 AM
To: Mats Bengtsson
Cc: lilypond
Subject: Re: conditional


Ok I seeOn Thu,
how do i make this conditional,
What I am thinking of is creating the files with "conditional text"
storing them in a database and issing a command that would have the
database or a repository output a book with no header info because the
info will be in a latex file for instance. For a web site maybe only the
title. 

I am getting the feeling that the answer is from outside of lilypond. If
I am not mistaken I probably need to tag it as you suggest and then use
grep or some other tool to find the tags to display or not.

Which seems most confusing to me because how will it tell lilypond this.
Is there some scheme for this. This seems like an xml/xsl trick. I
remember reading that there is xml of lilypond, I wonder if it could be
done in xml.

For me this is not academic I want to manipulate lilypond files to
appear differently or be used differently in different context. One is
the use of the notation to index the audio files in a direcotory or in a
database, many of them don't have a unique name and the notation being
ascii tags each song most accurately.

Thanks
So far
Aaron
 2003-10-02 at 12:33, Mats Bengtsson wrote:
> You could easily have different header information in different score 
> blocks, just say

> If you want different annotations within the music, it's easiest to 
> put them in separate definition

> 
>     Mats
> 
> A



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





reply via email to

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