On Sat, Nov 15, 2025 at 2:54 AM Dirck Nagy <[email protected]> wrote:
>
> Dear Lilypond
>
> Is there a (relatively) simple way to extract and print individual parts from 
> a completed score?

I generally approach this problem slightly differently.  Rather than
trying to extract and print individual parts from a completed score, I
try to generate individual parts as extra outputs from the completed
score.

That is, instead of splitting up the input files, I just add
additional output files as bookparts.

The upsides:
 - It's trivial to do from my completed frescobaldi score
 - It keeps everything in one file

The downsides:
 - Whenever I update any one part, I get new copies of all of the
parts (not so bad in my opinion, because it means they are always all
in synch).
 - Only the score file shows up automatically in Frescobaldi.  I'm
sure there's some way in Frescobaldi to fix this, but I don't use it.

Here's my sample with your file:

%=======

\version "2.24"

\header {
  title="Test Music"
  instrument = "Score"
% Remove default LilyPond tagline
tagline = ##f
}

\paper {
#(set-paper-size "letter")
% Add space for instrument names
short-indent = 10\mm
}

global = {
\key c \major
\time 4/4
}

flute = \relative c'' {
\global
% Music follows here.
c,4 d e f g1 \bar"|."
}

bassoon = \relative c {
\global
% Music follows here.
a4 b c d e1
}

flutePart = \new Staff \with {
shortInstrumentName = "Fl."
} \flute

bassoonPart = \new Staff \with {
shortInstrumentName = "Bn."
} { \clef bass \bassoon }

\score {
<<
\flutePart
\bassoonPart
>>
\layout { }
}

% Add individual parts

% Orchestra Parts

\book{
  \header {
    instrument = "Flute"
  }
  \bookOutputSuffix "Flute"
  \score {
    \new Staff {
      \flute
    }
  }
}

\book{
  \header {
    instrument = "Bassoon"
  }
  \bookOutputSuffix "Bassoon"
  \score {
    \new Staff {
    \clef bass
    \bassoon
    }
  }
}

% ========

HTH,

Carl

Reply via email to