I don't really understand what you mean, but it seems that you are making things more complicated than necessary.
If you want to separate the music input, the titling and the actual definitions of what should be included in a specific score, you could put the definitions in separate files and use the \include command to combine the information from the different files. For example, something like --------------- \include "commonSettings.ly" \include "stringParts.ly" \include "annotations.ly" \include "SwedishHeadings.ly"
\score{ \context Staff < \SwedishAnnotations \violinI > \heading{ instrument = "Violin 1"} } ------------------ The same input files could then be used in some other context.
I'm probably old-fashioned thinking in terms of files instead of database entries, but I think it's fairly convenient.
You should probably take some time to come up with a convenient naming scheme, both for files and for identifiers within the files, and determine what things you can put in the same file and what you want in different. Of course, you could have all your definitions in one huge file, but it's probably more convenient to split it into several.
Arnold will certainly recommend you to use his tool 'sly' to combine the different parts, but I think the \include mechanism is convenient enough.
Also, in Lily version 2.0, there is a new mechanism to add tags within the music definitions and use them to make different versions of the same music, see http://lilypond.org/doc/v2.0/input/regression/out-www/collated-files.html#tag-filter.ly
/Mats
Aaron wrote:
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
_______________________________________________ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user