lilypond-user
[Top][All Lists]
Advanced

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

Re: horizontal space after rehearsal mark (or bar line)


From: Mats Bengtsson
Subject: Re: horizontal space after rehearsal mark (or bar line)
Date: Sun, 07 Feb 2010 23:45:35 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.5)

Quoting Nick Payne <address@hidden>:

\version "2.12.2"
\score {
  \relative c' {
    \clef G
    \time 4/4
    c'1 d
    \once \override Staff.BarLine #'extra-spacing-width = #'(-2 . 2)
    \bar "||" \mark \markup{\box "M2"} e( \f ^\markup{Tutti} f)
  }
}

That's a fairly clumsy solution to workaround what really happens,
namely that LilyPond is trying to be clever and stack things at
different heights to use the available space as tightly as possible. A
better solution is to tell LilyPond that you don't want it to put
rehearsal marks above other objects:

\version "2.12.2"
\score {
 \relative c' {
   \clef G
   \time 4/4
   c'1 d
   \override Score.RehearsalMark #'extra-spacing-width = #'(0 . 0)
   \override Score.RehearsalMark #'extra-spacing-height = #'(-inf.0 . +inf.0)
   \bar "||" \mark \markup{\box "M2"} e( \f ^\markup{Tutti} f)
 }
}

Depending on the situation, you may also want to combine this setting
with \textLengthOn, which does exactly the same setting for text
scripts.
Unfortunately, the only available documentation of these properties
seems to be in the internals reference:
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/item_002dinterface#item_002dinterface

  /Mats


Nick

On 07/02/10 22:03, Per Eric Rosén wrote:
Hi everyone!

What ways are there to add horizontal space after a rehearsal mark?

In detail: How to shift notes and their textscripts to the right, to
get the rehearsal mark and text-script besides each other instead of
the
(i my opinion somewhat ugly) vertical stacking?

Or, if that is hard: How to increase the x-padding of a double bar?

I the example below, the "M2" get spaced above the "Tutti". Some
extra space after the double bar would avoid stacking.

Using lilypond 2.12.2 (lilypond.org installer) on Debian 5.0.4 AMD64.

---- test.ly ----
\version "2.12.2"
\score {
  \relative c' {
    \clef G
    \time 4/4
    c'1 d  \bar "||" \mark \markup{\box "M2"} e( \f ^\markup{Tutti} f)
  }
}
-----------------

I have tried "extra-spacing-width" and looking for other ways, but
nothing found in the archives by the search words I could come up
with at least ...

Thanks in advance!
Per Eric Rosén, Uppsala, Sweden
--
^): Per Eric Rosén http://rosnix.net/~per/
/   address@hidden GPG 7A7A BD68 ADC0 01E1 F560 79FD 33D1 1EC3 1EBB 7311


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user










reply via email to

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