lilypond-user
[Top][All Lists]
Advanced

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

RE: TextScript baseline in Dynamics context


From: Daniel Rosen
Subject: RE: TextScript baseline in Dynamics context
Date: Fri, 27 Dec 2019 16:49:15 +0000

I mean, that is a possibility, but it’s pretty labor-intensive.
        
This should be a feature of, at the very least, the Dynamics context, IMHO. Am 
I right that this hasn't been requested before? (If I am I'll submit it to the 
bugs list.) 
        
DR

> From: Stefano Troncaro [mailto:address@hidden] 
> Sent: Friday, December 27, 2019 10:50 AM
> To: Daniel Rosen <address@hidden>
> Subject: Re: TextScript baseline in Dynamics context

> Hi Daniel, I never found a stafisfying solution for that, so I just create 
> custom DynamicTexts (that are always aligned) instead of mixing DynamicTexts 
> and TextScripts. See:

> text = #(make-dynamic-script (markup #:normal-text #:italic "Text"))
> <<
>   \new Voice { \repeat unfold 6 { c'4 } }
>   \new Dynamics { s2\f s\text s-"Text" }
>   \new Voice { \repeat unfold 6 { c'4 } }
> >>

> Bear in mind that you can't place 2 simultaneous dynamic events, so if you 
> want it to display "f Text" you have to create a "f Text" dynamic. Also, 
> dynamics are centered on the note by default, so you might want to change 
> that. For example:

> #(define make-dynamic-text (define-event-function (text) (markup?)
>   #{
>      \tweak self-alignment-X #-1
>      \tweak extra-offset #'(-0.65 . 0)
>      #(make-dynamic-script
>        (markup #:normal-text #:italic text))
>   #} ) )

> text = #(make-dynamic-text (markup #:normal-text #:italic "Text"))

> <<
>   \new Voice { \repeat unfold 6 { c'4 } }
>   \new Dynamics { s2\f s\text s-"Text" }
>   \new Voice { \repeat unfold 6 { c'4 } }
> >>

> Hope this helps!
> Stéfano

> > El vie., 27 dic. 2019 a las 12:18, Daniel Rosen (<address@hidden>) escribió:
> > How do I get TextScripts to sit on the same baseline as DynamicTexts within 
> > a Dynamics context? Everything I've tried leaves all or some of them 
> > sitting higher or lower. 

> > MWE of the problem:

> > <<
> >   \new Voice { \repeat unfold 6 { c'4 } }
> >   \new Dynamics { s2\f-"Text" s-"Text" s^"Text" }
> >   \new Voice { \repeat unfold 6 { c'4 } }
> > >>

> > DR


reply via email to

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