lilypond-devel
[Top][All Lists]
Advanced

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

Re: Patch: issue #659


From: Marc Hohl
Subject: Re: Patch: issue #659
Date: Mon, 18 Jan 2010 21:13:59 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Marc Hohl schrieb:
Neil Puttock schrieb:
2010/1/8 Marc Hohl <address@hidden>:

Yes, the picture in the tracker has one loop missing, but in
all other sources, the sign looked (mainly) as mine.

How do they deal with the segno at the end of a line though?  The
tracker example is aligned as a normal barline (i.e., with the
double-bar at the right edge), but this is going to be tricky to
achieve just for this case using BarLine grobs.
Hmmm - you are right. Is it possible to whiteout this small part
of the barlines?
I found out how to define a whiteout stencil, but it seems that it is placed
*over* the segno sign, ignoring the order I arrange the stencils :-(

Here is what I did:

else if (str == "S")
   {
Stencil whiteout = simple_barline (me, 2.5 * staff_space - thinkern - hair, h, rounded);

Stencil segno = Font_interface::get_default_font (me)->find_by_name ("scripts.varsegno");
     m.add_at_edge (X_AXIS, LEFT, thin, thinkern);
     m.add_at_edge (X_AXIS, RIGHT, thin, thinkern);
     m.add_at_edge (X_AXIS, RIGHT, whiteout.in_color (255, 255, 255), 0);
     m.add_stencil (segno);
   }

I know that the whiteout should be placed only in the "S." case, but as this simple test fails,
I didn't go any further. Can this be solved in terms of stencils?
[...]
I also had the idea to enhance the \repeat command, so one can code
\repeat segno { ... } and lilypond inserts .S and S. instead of ||: and :||

This would be great, and a much better fit for the new segno.
I think I'll go for this once the patch is pushed. I want to avoid stuffing
all in one single patch which grows too big to be handled properly.

Marc




reply via email to

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