lilypond-user
[Top][All Lists]
Advanced

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

Re: text spanner collapse


From: Martin Bergande
Subject: Re: text spanner collapse
Date: Mon, 11 Sep 2006 13:16:56 +0200

Brilliant, thanks a lot!

Yours,

Martin

-------- Original-Nachricht --------
Datum: Mon, 11 Sep 2006 08:57:31 +0200
Von: Mats Bengtsson <address@hidden>
An: Martin Bergande <address@hidden>
Betreff: Re: text spanner collapse

> Looking at the implementation, I found the solution to your problem. It 
> turns out
> that the line is only printed if it's longer than the dash-period 
> property, which
> probably makes sense if the line is dashed but not otherwise. Anyway, this
> property is set to 3.0 by default for TextSpanner objects, so you can use
> \once \override TextSpanner #'dash-period = #0
> to solve the problem.
> 
>    /Mats
> 
> Martin Bergande wrote:
> > I tried both before: The edge-text version which as I know is much more
> elegant is of no advantage to me and the separation-item which I use quite
> often doesn't give a satisfying result here, since the 8.-16-rhythm is used
> in a linear context with much longer notes that either become too
> seperated or seem to be even shorter than my 8. I thought something similar to
> >
> > \override SystemStartBrace #'collapse-height = ##f
> >
> > might exist.
> >
> > Yours truly,
> >
> > Martin
> >
> >
> >
> > -------- Original-Nachricht --------
> > Datum: Sun, 10 Sep 2006 21:12:53 +0200
> > Von: Mats Bengtsson <address@hidden>
> > An: Martin Bergande <address@hidden>
> > Betreff: Re: text spanner collapse
> >
> >   
> >> One solution is to widen the spacing between the notes slightly, so
> >> that the spanner gets sufficiently long even when shortened. Try to
> >> insert something like
> >> \once \override Score.SeparationItem #'padding = #2
> >> between the two notes.
> >>
> >> Also, I don't really understand why you don't specify the \open
> >> and \stopped as an edge-text of the text spanner. Try
> >> \override TextSpanner #'edge-text = #(cons (markup #:musicglyph
> >> "scripts.open" ) (markup #:musicglyph "scripts.stopped" ) )
> >>
> >>    /Mats
> >>
> >> Quoting Martin Bergande <address@hidden>:
> >>
> >>     
> >>> Please have a look at this:
> >>>
> >>> %%%%% start .ly
> >>>
> >>> \version "2.8.1"
> >>>
> >>> \score {
> >>>
> >>>  \new Staff { \override Staff.Script #'staff-padding = #2.32 \relative
> >>>       
> >> c' {
> >>     
> >>> \once \override TextSpanner #'staff-padding = #2.65
> >>> \once \override TextSpanner #'dash-fraction = #'()
> >>> \once \override TextSpanner #'arrow = ##t
> >>> \once \override TextSpanner #'arrow-length = #0.75
> >>> \once \override TextSpanner #'arrow-width = #0.25
> >>>
> >>> %this is about what I need, but the spanner disappears
> >>> \once \override TextSpanner #'shorten-pair =  #'(1.5 . 1.3)
> >>>
> >>> %with this shorten-pair the spanner appears, but is too long
> >>> %\once \override TextSpanner #'shorten-pair =  #'(1.2 . 1.3)
> >>>
> >>> \once \override Staff.TextScript #'extra-offset = #'(-1.5 . -3.17)
> >>> f8.~^\markup { \fontsize #-3 \bold "- 1/8" }[\open\startTextSpan
> >>>
> >>> \once \override Staff.TextScript #'extra-offset = #'(-3.64 . -1.55)
> >>> f16~]\stopped^\markup { \fontsize #-3 \musicglyph #"flags.ugrace"
> >>> }\stopTextSpan }
> >>>
> >>>  }
> >>>  \layout { ragged-last = ##t }
> >>> }
> >>>
> >>> %%%%% stop .ly
> >>>
> >>>
> >>>
> >>> -------- Original-Nachricht --------
> >>> Datum: Sun, 10 Sep 2006 18:33:30 +0200
> >>> Von: Mats Bengtsson <address@hidden>
> >>> An: Martin Bergande <address@hidden>
> >>> Betreff: Re: text spanner collapse
> >>>
> >>>       
> >>>> It's much easier to answer a question like that if you include
> >>>> a short (but complete) example that illustrates the problem.
> >>>>
> >>>>    /Mats
> >>>>
> >>>> Quoting Martin Bergande <address@hidden>:
> >>>>
> >>>>         
> >>>>> hi,
> >>>>>
> >>>>> dose anyone know how to avoid the collapse of text spanners when
> they
> >>>>> are shortened a lot?
> >>>>>
> >>>>> version 2.8.1
> >>>>>
> >>>>> thank you in advance,
> >>>>>
> >>>>> martin
> >>>>> --
> >>>>>
> >>>>>
> >>>>> "Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
> >>>>> Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> lilypond-user mailing list
> >>>>> address@hidden
> >>>>> http://lists.gnu.org/mailman/listinfo/lilypond-user
> >>>>>
> >>>>>           
> >>>>         
> >>> --
> >>>
> >>>
> >>> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> >>> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >>>
> >>>
> >>> _______________________________________________
> >>> lilypond-user mailing list
> >>> address@hidden
> >>> http://lists.gnu.org/mailman/listinfo/lilypond-user
> >>>       
> 
> -- 
> =============================================
>       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
> =============================================

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer




reply via email to

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