Partial measures (pickup measures)

Revision as of 22:37, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Partial measures, such as an anacrusis or upbeat, are entered using the \partial command. The syntax for this command is \partial duration.

This is internally translated into \set Timing.measurePosition = -length of duration

The property measurePosition contains a rational number indicating how much of the measure has passed at this point.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=183

%LSR modified/updated by P.P.Schneider on April 2014.
%=> http://lilypond.1069038.n5.nabble.com/LSR-correction-Partial-measures-pickup-measures-td161387.html

\paper { tagline = ##f }

%here starts the snippet:

\relative c''{
  \partial 16*5 c16 cis d dis e | a2. c,4 | b1
}

% Below are the instruction to set the pickup bar with the grace note.
\relative c'' {
  \partial 4
  \grace f16
  g4
  a2 g2
}