[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: average-spacing-wishes and note too close to barline
From: |
madhg |
Subject: |
Re: average-spacing-wishes and note too close to barline |
Date: |
Fri, 18 May 2007 01:39:04 -0700 (PDT) |
Mats Bengtsson-4 wrote:
>
> ...
> The equivalent of moving things with a mouse (i.e. to change the layout
> at a single
> specific place) is to make the setting (like the one you tried) with a
> \once before it:
> \once \override ...
> You can even define a macro
> fixSpacingProblem = \once \override Score.BarLine #'space-alist = #'(
> (time-signature . (extra-space . 0.75))
> (custos . (minimum-space . 2.0))
> (clef . (minimum-space . 1.0))
> (key-signature . (extra-space . 1.0))
> (key-cancellation . (extra-space . 1.0))
> (first-note . (fixed-space . 1.3))
> (next-note . (semi-fixed-space . 2.0)) ; Changed from the new default 0.9
> (right-edge . (extra-space . 0.0)))
>
> and use it wherever you need:
> R1 \fixSpacingProblem \bar ":|"
>
OHHHH!!! The fix works in simple cases - but fails when there is a chord
with two accidentals after a barline. Help would be appreciated. My offer
to contribute sponsorship for a solution still stands.
David
%{
The accidental is too close to the left bar line.
Also, it seems that for ":|" and other "wide" bar line types
the padding and space-alist properties are not counted from the
right edge of the bar line.
%}
\version "2.11.23"
\paper{ ragged-right=##t indent = #0 }
\new Score
{
\new Staff \relative c'' {
R1 \bar ":|" <ges fes >2 r2 \bar "|" <ges fes >2 r2 | \break
\override Score.BarLine #'space-alist = #'(
(time-signature . (extra-space . 0.75))
(custos . (minimum-space . 2.0))
(clef . (minimum-space . 1.0))
(key-signature . (extra-space . 1.0))
(key-cancellation . (extra-space . 1.0))
(first-note . (fixed-space . 1.3))
(next-note . (extra-space . 1.9)) ; Changed from the new default 0.9
(right-edge . (extra-space . 0.0)))
R1 \bar ":|" <ges fes >2 r2 \bar "|" <ges fes >2 r2 | \break
\override Score.AccidentalPlacement #'left-padding = #1.0
R1 \bar ":|" <ges fes >2 r2 \bar "|" <ges fes >2 r2 | \break
}
}
--
View this message in context:
http://www.nabble.com/average-spacing-wishes-and-note-too-close-to-barline-tf3670154.html#a10678343
Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com.
Re: average-spacing-wishes and note too close to barline, Han-Wen Nienhuys, 2007/05/02