lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: centering full-measure objects (notes and/or rests)


From: David Nalesnik
Subject: Re: centering full-measure objects (notes and/or rests)
Date: Sat, 7 Feb 2015 18:36:39 -0600

Hi,

On Tue, Feb 3, 2015 at 10:30 PM, Kieren MacMillan <address@hidden> wrote:
Hello all,

I have a single chord in the last measure of my piece — unfortunately, it isn’t centered by default:

\version "2.19.15"
testing = { c''4 c'' c'' c'' | c''1 \bar "|." }
\layout { ragged-right = ##f }
\score { \testing }

1. How can I fix this? 

For the sake of completeness: full-measure-extra-space is a useful property which you can override for situations when a single note fills a measure.  Note the seemingly early placement: it has to be before the paper column (think barline) before the note you want to give a lead-off.  Any centering would be trial-and-error, so there's a need for something automatic.  (The numbers needed for your snippet are a bit ridiculous.)   It also works with \offset, in case you don't want to look up the default of 1.0.

\version "2.19.15"

testing = {
  c''4 c'' c''
  \override Score.NonMusicalPaperColumn.full-measure-extra-space = 18
  %\offset full-measure-extra-space 17 Score.NonMusicalPaperColumn
  c'' |
  c''1 \bar "|."
}

\layout { ragged-right = ##f }
\score { \testing }

--David

reply via email to

[Prev in Thread] Current Thread [Next in Thread]