bug-lilypond
[Top][All Lists]

## Re: Multi-measure rests and text markup

 From: Han-Wen Nienhuys Subject: Re: Multi-measure rests and text markup Date: Sat, 12 Apr 2003 01:57:54 +0200

>
> That looks fine in the cello part, but when I create the full score (or
> set Score.skipBars = ##f), the multi-measure rest will be expanded into
> single measure rests, since there are things going on in the other parts.
> And the first measure will have a big "20" over it!
>
> Still a feature?

Good point. It should be switchable, then.  But isn't this also
a problem with other texts on mm rests?

> > > % (self-alignment-X doesn't seem to help)
> > > \property Staff.TextScript \override #'self-alignment-X = #-1
> > > R1*10^\markup{ \roman \column << "I" >> }
> >
> > scm/grob-description.scm (grob MultiMeasureRestText)
>
> That did it, all right.  Not exactly what I had hoped for, but it's
> probably just my own misconceptions this time.  It appeared left justified
> in the measure, which at the beginning of a new line, is right on top of
> the bar number.
>
> Seems like what I actually want is for it to be left-aligned with where
> the first note of the measure would be.  (The beginning of the |===| type
> rest would work, but shorter rests are centered in the measure, so they
> would have no relation with where I want the text to appear.)

You could write a new offset callback for the Text object that checks
the width of the Y-parent (the mm rest symbol), and moves the text
object to the left. You could use
Self_alignment_interface::centered_on_other_axis_parent as
inspiration; you could also write it in Scheme. Or write a callback
that examines the width of the left bound of the spanner, and moves to
the right edge of the left bound.

> So maybe I need to go back to < R s > to get what I want.

No, it sucks.

> I hope I'm being a diligent debugger rather than a gadfly.  In either
> case, thank you for lilypond.  It's a great program!

thanks!

--

Han-Wen Nienhuys   |   address@hidden   |   http://www.cs.uu.nl/~hanwen