lilypond-user
[Top][All Lists]
Advanced

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

RE: Problem with barre music function


From: Nick Payne
Subject: RE: Problem with barre music function
Date: Sun, 5 Apr 2009 08:20:48 +1000

Ok, thanks. I tried that, and for a simple example it fixes the problem. But in 
an actual score with lots of barring indications of various sorts, you get to a 
situation where a staff runs off the right-hand edge of the page because there 
are many consecutive bars where a line can't be broken without breaking a 
spanner. See attached, which is what happens with the modified define-grobs.scm.

So I guess I'll have to live with the hack solution I proposed.

Nick 

> -----Original Message-----
> From: Neil Puttock [mailto:address@hidden
> Sent: Sunday, 5 April 2009 06:07
> To: Nick Payne
> Cc: address@hidden
> Subject: Re: Problem with barre music function
> 
> 2009/4/4 Nick Payne <address@hidden>:
> 
> > When I look at the present entry for that in define-grobs.scm (LP
> 2.12.2), it is:
> >
> > (meta . ((class . Spanner)
> >         (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-
> stems)))
> >         (interfaces . (staff-symbol-referencer-interface
> >                        unbreakable-spanner-interface
> >                        beam-interface
> >                        font-interface))))))
> >
> > Are you suggesting that I should comment that and replace it with
> what you have above?
> 
> No; that's the `meta' entry for Beam.
> 
> Scroll down to the entry for TextSpanner (line 1888) and add
> unbreakable-spanner-interface to the `interfaces' list:
> 
> (TextSpanner
>    . (
>       (Y-offset . ,ly:side-position-interface::y-aligned-side)
>       (font-shape . italic)
>       (style . dashed-line)
>       (staff-padding . 0.8)
>       (dash-fraction . 0.2)
>       (dash-period . 3.0)
>       (side-axis . ,Y)
>       (direction . ,UP)
>       (outside-staff-priority . 350)
> 
>       (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
>       (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
>       (bound-details . ((left . ((Y . 0)
>                                  (padding . 0.25)
>                                  (attach-dir . ,LEFT)
>                                  ))
>                         (right . ((Y . 0)
>                                   (padding . 0.25)
>                                   ))
>                         ))
>       (stencil . ,ly:line-spanner::print)
> 
>       (meta . ((class . Spanner)
>                (interfaces . (line-spanner-interface
>                               line-interface
>                               side-position-interface
>                               font-interface
>                               unbreakable-spanner-interface))))))
> 

Attachment: test.png
Description: PNG image


reply via email to

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