[Top][All Lists]

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

Re: Edition Engraver -- multiple editions

From: Jan-Peter Voigt
Subject: Re: Edition Engraver -- multiple editions
Date: Thu, 1 Mar 2018 09:14:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi Craig,

you remind me to rethink wording/naming of the different identifiers!

In your example you point on two different ID-types. With \addEdition you add one target-ID to the current compilation. You can add multiple targets like fullscore, global-mods, original-page-breaks at once.

With \editionID inside a layout-context block you assign a context-identifier. There is one context-identifier - one might call it context-address - per context-instance.
So the score will have a contextID like perhaps:

\layout {
  \context {
    \editionID ##f bwv.247.marco.11.choral

and the different context are created with e.g.
\new Staff \with { \editionID flute } << ... >>
so this Staff receives the ID `bwv.247.marco.11.choral.flute`.
This should be stable across all compilations for all targets.
Now you can enter modifications like
\editionMod score 2 3/4 bwv.247.marco.11.choral.Staff <do something in score>
\editionMod part 2 3/4 bwv.247.marco.11.choral.Staff <do something in part>
\editionMod global 2 3/4 bwv.247.marco.11.choral.Staff <do something>

(you can shorten this significantly with a variable!)

Inside the respective files for the core and the part you can add targets as you like:
\addEdition score
\addEdition global

The EE will apply all modifications for all active targets. In the part files you might use the shorter variant

To activate the "part", "violin" and "global" targets. If lilypond reads the mods for the score while compiling the violin part, it doesn't matter, as long as the score-target is not active.

The edition-engraver is using pointers/IDs/addresses in three dimensions:
1. the target of the current compilation-run
2. the context-address
3. the timestep

Right now target IDs can not be changed within a file/a compilation for different scores. So you will have one file for the fullscore and one for each part. These files will include the music from other files and then apply the mods needed for the current target.


One of the projects I have been working on over the last two years is typesetting a new reconstruction of the "Markus-Passion" from Johann Sebastian Bach (Ortus-Verlag/Berlin - fullscore ISMN 979-0-502340-65-0, piano reduction ISMN 979-0-502340-66-7, choir part ISMN 979-0-502340-67-4, instrumental parts ISMN 979-0-502340-68-1)
by Andreas Fischer (St.Katharinen, Hamburg, Germany).
I am going to write a description of this project when my schedule allows.

Am 01.03.2018 um 02:34 schrieb Craig Dabelstein:
Hi all,

I thought I had my head around the edition engraver but I'm going wrong somewhere. If I want to have different mods for a score, the parts, and a selection of mods applicable to both the score and the parts, do I need to create three different editions such as this:

\addEdition score
\addEdition parts
\addEdition scoreandparts

If so, how do I switch between them?

I was trying to use different editionIDs for everything but it's not working. Can a score have multiple IDs such as:

\context {
     \editionID ##f score
     \editionID ##f both

Thanks in advance,


*Craig Dabelstein*
Maxime's Music
address@hidden <mailto:address@hidden>

lilypond-user mailing list

reply via email to

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