Hi Kieren,
Thanks so much for your reply and the detailed code snippet! I gave it a try — it definitely helps organize things more cleanly — but I’m still not quite getting the effect I’m hoping for. I’ve attached a screenshot of the current output. [image: image.png] What I’m aiming for is this: On each system, *every measure should have exactly the same width*, so that the total available line width (after excluding things like clefs and key/time signatures) is *evenly divided by the number of measures* on that line. So for example, if a system contains two bars, the spacing of the music should be stretched (or compressed) so that those two bars are exactly equal in width and together span the line evenly. Any idea how to enforce that more strictly? Thanks again for your help! Best regards, Peter On Sun, May 4, 2025 at 3:42 AM Kieren MacMillan <[email protected]> wrote: > Hi Peter, > > > I'm trying to produce a clean and aligned layout in LilyPond where each > line contains exactly two measures, and the measure widths on each line are > exactly equal. Additionally, I want the final (fifth) bar — which is a > short bar containing 16 sixteenth notes — to have the same width as the > **first bar** in previous lines. > > Here’s a starting point for you: > > %%% SNIPPET BEGINS %%% > \version "2.24.2" > > \paper { > indent = 0 > } > > \layout { > \context { > \Score > \omit TimeSignature > proportionalNotationDuration = #1/16 > \override SpacingSpanner.strict-note-spacing = ##t > \override SpacingSpanner.uniform-stretching = ##t > \override NoteHead.extra-spacing-width = #'(0 . 0) > } > \context { > \Staff > \remove Separating_line_group_engraver > } > } > > theMusic = \relative c' { > \time 4/4 > c1 | % Bar 1 > c2 c2 | \break % Bar 2 > c4 c4 c4 c4 | % Bar 3 > c8 c8 c8 c8 c8 c8 c8 c8 | \break % Bar 4 > c16 c16 c16 c16 c16 c16 c16 c16 > c16 c16 c16 c16 c16 c16 c16 c16 | % Bar 5 > > \stopStaff > \hideNotes \repeat unfold 16 c16 > } > > \score { > \new Staff \theMusic > } > %%% SNIPPET ENDS %%% > > Hope that helps! > Kieren. > > > __________________________________________________ > > My work day may look different than your work day. Please do not feel > obligated to read or respond to this email outside of your normal working > hours. > >
