bug-lilypond
[Top][All Lists]
Advanced

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

Text scripts on spacer notes. Was: Issue 135 in project lilypond


From: Mats Bengtsson
Subject: Text scripts on spacer notes. Was: Issue 135 in project lilypond
Date: Wed, 03 Jan 2007 14:46:23 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

Can we turn this into a question: What's the best way to specify that a
TextScript attached to a spacer note does not occupy any horizontal space
(meaning that the bar lines are placed at the same place as if you didn't have
the text)?
The best I can come up with is
\override TextScript #'X-extent = #'(0 . 0)

However, this means that it isn't taken into account in the new fancy
collision avoidance.

A common situation where this is useful is when you have a tempo change
at a bar line and the instrumental part begins with a multi measure rest.
The following example illustrates four different solutions. The last one
is the only one that gives a really nice output, but I find it a bit embarrasing
for LilyPond that you can't get this layout without using such an ugly hack.

\version "2.10.0"
\relative c''' {
c1
% Nice handling of the text but wrong rest.
r1^\markup{"Andante molto"}
c1
% The text affects the bar lines
<< R1 s1^\markup{"Andante molto"} >>
c1
% Better, but the collision handling doesn't work
\once \override TextScript #'X-extent = #'(0 . 0)
<< R1 s1^\markup{"Andante molto"} >>
c1
% Desired layout, but ugly tweaks in the input:
<< R1 \once \override Rest #'transparent = ##t r1^\markup{"Andante molto"} >>
c1
}

  /Mats

address@hidden wrote:
Issue 135: markup on spacer rests doesn't obey \emptyText
http://code.google.com/p/lilypond/issues/detail?id=135

Comment #1 by hanwenn:
Disagree about this being a bug.

emptyText sets constraints ('rods').

In the absence of anything else (ie. notes), lily has to use some basis for guessing a space. It does
so by taking the width of the papercolumn object,
which is wide due to the fooooooo text.


-----------&gt;8------------
\version &quot;2.9.28&quot;
\layout{
 indent=0.   line-width=3.\cm}
\relative c' {
\emptyText
c1\noBreak
s1^\markup{&quot;foooooooo&quot;}
c1
}





Issue attribute updates:
    Status: Invalid


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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