Re: TextScript baseline in Dynamics context

2020-03-18 Thread foxfanfare
Stefano Troncaro wrote
> Hi Kieren, I was not aware of that function. Thank you for sharing it and
> thank you Harm for coding it!

Very interesting function! But I think there is a bug when using a separate
Dynamics line. See the following example:

\version "2.20.0"

<<

  \new Staff \relative c' {
c4\dynamicH "{ppp} misterioso"
\repeat unfold 15 {
  c4
}
  }

  <<
\new Staff \relative c' {
  \repeat unfold 16 {
c4
  }
}
\new Dynamics {
  s1\dynamicH "{ppp} misterioso"
}
  >>

>>

I don't know why, but in the the second example, the dynmics "ppp" are not
centered correctly with the notehead.
 



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: TextScript baseline in Dynamics context

2019-12-27 Thread Stefano Troncaro
Hi Kieren, I was not aware of that function. Thank you for sharing it and
thank you Harm for coding it!

El vie., 27 dic. 2019 a las 16:24, Kieren MacMillan (<
kieren_macmil...@sympatico.ca>) escribió:

> Hi Paul,
>
> > is "custdyn" already in Lily or did you define it somewhere?
>
> Harm built it (see, e.g.,
> https://lists.gnu.org/archive/html/lilypond-user/2019-09/msg00159.html),
> but I changed the name of the function in my own include file(s).
>
> Hope that helps!
> Kieren.
> 
>
> Kieren MacMillan, composer (he/him/his)
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
>
>
>


Re: TextScript baseline in Dynamics context

2019-12-27 Thread Kieren MacMillan
Hi Paul,

> is "custdyn" already in Lily or did you define it somewhere?

Harm built it (see, e.g., 
https://lists.gnu.org/archive/html/lilypond-user/2019-09/msg00159.html), but I 
changed the name of the function in my own include file(s).

Hope that helps!
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info




Re: TextScript baseline in Dynamics context

2019-12-27 Thread Paul Scott
Kieren, I don't have the rest of this thread but is "custdyn" already in Lily 
or did you define it somewhere?

Thank you,

Paul

On Dec 27, 2019, at 11:55 AM, Kieren MacMillan  
wrote:

> Hi Daniel,
> 
>> I mean, that is a possibility, but it’s pretty labor-intensive.
> 
> Not if you already have the function made up.  ;)
> 
> I just write
> 
>   d'4\custdyn "{} screeching"
> 
> and everything aligns itself perfectly.
> 
>> This should be a feature of, at the very least, the Dynamics context, IMHO.
> 
> That might be a nice feature, for sure. Thanks for submitting the request!
> 
> Best,
> Kieren.
> 
> 
> Kieren MacMillan, composer (he/him/his)
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
> 
> 
> 





Re: TextScript baseline in Dynamics context

2019-12-27 Thread Kieren MacMillan
Hi Daniel,

> I mean, that is a possibility, but it’s pretty labor-intensive.

Not if you already have the function made up.  ;)

I just write

   d'4\custdyn "{} screeching"

and everything aligns itself perfectly.

> This should be a feature of, at the very least, the Dynamics context, IMHO.

That might be a nice feature, for sure. Thanks for submitting the request!

Best,
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info




RE: TextScript baseline in Dynamics context

2019-12-27 Thread Daniel Rosen
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:stefanotronc...@gmail.com] 
> Sent: Friday, December 27, 2019 10:50 AM
> To: Daniel Rosen 
> 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 () 
> > 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