[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help Needed: Aligning Bar Widths in Multi-Measure Systems
From: |
Kieren MacMillan |
Subject: |
Re: Help Needed: Aligning Bar Widths in Multi-Measure Systems |
Date: |
Sun, 4 May 2025 06:41:56 -0400 |
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.