Hi Dirck,

Am 15.11.25 um 08:48 schrieb Dirck Nagy:
Is there a (relatively) simple way to extract and print individual parts from a completed score?

If "extract" means that you simply want to create single parts alongside a complete score: This is perfectly possible, and while it's possible (and sometimes convenient) to do so using multiple .ly files, shared .ily files for including the actual music and so on, it's by no means necessary.

What seems important to me is that it is not advisable at all to have multiple LilyPond files around containing the same music (e.g. by taking the flute part from a score and putting it into a new .ly file). This creates all sorts of problems with diverging histories and versions, and it's one of the strengths of working with LilyPond that this is never necessary.

I'm trying to do the opposite: the score is already complete.

Here is a simple example created using Frescobaldi's score wizard. How could I extract, and then edit and print the flute part?

In practice, you wouldn't edit the flute part in itself, but you would take the flute music and re-use it for creating a flute part. In case we need to change the flute part for the single-part extract only (e.g. force some line break that's not needed for the score and the like), the tagging mechanism is usually the most convenient tool.

Bascially, this is as simple as adding the following lines to your example score:

\book {
  \bookOutputSuffix flutepart
  \header {
    instrument = Flute
  }
  \score {
    \flutePart
  }
}

This creates a second .pdf file (with the added suffix "-flutepart") containing only the flute. The "instrument = Flute" setting in the \header { } block creates a "Flute" marking in the title in case a title etc. are defined for the piece.

Some of your definitions will have to be moved around (you probably don't want the shortInstrumentName baked into the flute music variable, as it is needed for the score, but not for the inidividual part), but these details can be worked on at a later point in time.

Does this already work for you?

Lukas


Reply via email to