Re: align dynamic with text

2018-08-26 Thread Ben

On 8/25/2018 6:52 PM, Trevor Bača wrote:

Hey Ben,

When you're using markup as dynamics, don't you find that you're 
unable to include those constructs in hairpins?


I went through a period where I was using straight-up text for 
dynamics like you're mentioning. But the hairpin limitation moved me 
towards make-dynamic-script. It's great. The other big benefit being 
that indications that are made with make-dynamic-script align 
(vertically) with all of Lily's other native dynamics.


I've wound up with house set of dynamic indications, too, like Andrew 
was mentioning:


https://github.com/trevorbaca/baca/blob/master/lilypond/baca-dynamics.ily

Have at them if you go the make-dynamic-script way.

Trevor.


Trevor,

Thank you! I really hadn't considered how hairpins would be impacted 
like that. I've been looking into the make-scripts approach now this 
weekend and I'm seeing the power and benefits for sure.


Thanks for that house set, it gives me some great ideas on how to 
structure my own! :)


Ben
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-25 Thread Trevor Bača
Hey Ben,

When you're using markup as dynamics, don't you find that you're unable to
include those constructs in hairpins?

I went through a period where I was using straight-up text for dynamics
like you're mentioning. But the hairpin limitation moved me towards
make-dynamic-script. It's great. The other big benefit being that
indications that are made with make-dynamic-script align (vertically) with
all of Lily's other native dynamics.

I've wound up with house set of dynamic indications, too, like Andrew was
mentioning:

https://github.com/trevorbaca/baca/blob/master/lilypond/baca-dynamics.ily

Have at them if you go the make-dynamic-script way.

Trevor.

On Sun, Aug 19, 2018 at 9:00 PM Ben  wrote:

> On 8/19/2018 9:17 PM, Andrew Bernard wrote:
>
> Hi Mark,
>
> This may be what you are thinking of. This way makes a proper dynamic, not
> just text markup.
>
> Andrew
>
> 
> \version "2.19.82"
>
> fstrettoText = \markup {
>   \center-align \line {
> \hspace #0.1 f \normal-text \italic stretto
>   }
> }
> fstretto = #(make-dynamic-script fstrettoText)
>
>
> {
>   c'4_\fstretto
> }
>
>
> Great piece of code Andrew. Thanks for that.
>
> The only reason I tend to use the alternative 'markup' approach is if I
> want to (need to) always have the entire expressive text centered as one
> unit with the *dynamic* under the notehead vs. half on each side.
>
> Much easier I find when I need to do that.
>
> (img)
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>


-- 
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-19 Thread Noeck
Dear Ben,

how about this version. It combines some of the already proposed features:

- mixes dynamic text symbols and text
- behaves like a dynamic script (DynamicText)
- centers the symbol on the note head


\version "2.19.80"

% combine dynamic as markup that looks like what you want it to look like
markupText = \markup { f \normal-text \italic "stretto" }

% turn this markup (i.e. text) into a dynamic text like \f or \pp
dynamicText = #(make-dynamic-script markupText)

% self-align it to the anchor point such that the f is under the note head
fstretto = -\tweak DynamicText.self-alignment-X #-0.8 \dynamicText

{
  c'\fstretto c' c' c'
}


Best,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: align dynamic with text

2018-08-19 Thread Mark Stephen Mrotek
Thanks Ben,

 

Now I have three ways of doing it.

Must try and learn!

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Ben
Sent: Sunday, August 19, 2018 5:45 PM
To: lilypond-user@gnu.org
Subject: Re: align dynamic with text

 

On 8/19/2018 8:21 PM, Mark Stephen Mrotek wrote:



Hello,

 

Remember seeing a snippet that does, f stretto, for example.

Searched the users’ archives and the snippet repository.

Maybe not using correct search terms.

Please assist.

 

Thank you,

 

Mark





Mark,

There are a few different ways to approach this, one way could be like this for 
example:
(see attached)

Does this help?

\version "2.19.81"

mpdolce = \markup { \halign #-0.45 \dynamic "pp" \tiny \italic "dolce" }
fstret = \markup { \halign #-0.45 \dynamic "f" \tiny \italic "stretto" }


\relative c' {   
   c4_\mpdolce g' g' g r g_\fstret g g g r g r c g c

}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-19 Thread Ben

On 8/19/2018 9:42 PM, Andrew Bernard wrote:
Not only does it do the job, it's a proper dynamic and so has all the 
properties of a dynamic. This can be useful. I have a library of 30 or 
40 of these constructs for my work, like f poco, for example.


Andrew


On Mon, 20 Aug 2018 at 11:30, Mark Stephen Mrotek 
mailto:carsonm...@ca.rr.com>> wrote:


Thanks Andrew,

Does the job.




Of course your constructs could be modified as well, if need be :)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-19 Thread Aaron Hill

On 2018-08-19 18:42, Andrew Bernard wrote:

Not only does it do the job, it's a proper dynamic and so has all the
properties of a dynamic. This can be useful. I have a library of 30 or 
40

of these constructs for my work, like f poco, for example.


Curious about make-dynamic-script and MIDI output.  When you create a 
custom dynamic, how do you go about defining its volume level?  I would 
imagine you need to define a custom Score.dynamicAbsoluteVolumeFunction, 
but what would the string argument look like when your dynamic consists 
of multiple bits of markup?  Is it just the concatenation of all of the 
text elements, meaning that your version of \fstretto would appear as "f 
stretto" (with or without the space)?


-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-19 Thread Ben

On 8/19/2018 9:17 PM, Andrew Bernard wrote:

Hi Mark,

This may be what you are thinking of. This way makes a proper dynamic, 
not just text markup.


Andrew


\version "2.19.82"

fstrettoText = \markup {
  \center-align \line {
    \hspace #0.1 f \normal-text \italic stretto
  }
}
fstretto = #(make-dynamic-script fstrettoText)


{
  c'4_\fstretto
}


Great piece of code Andrew. Thanks for that.

The only reason I tend to use the alternative 'markup' approach is if I 
want to (need to) always have the entire expressive text centered as one 
unit with the /dynamic/**under the notehead vs. half on each side.


Much easier I find when I need to do that.

(img)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-19 Thread Andrew Bernard
Not only does it do the job, it's a proper dynamic and so has all the
properties of a dynamic. This can be useful. I have a library of 30 or 40
of these constructs for my work, like f poco, for example.

Andrew


On Mon, 20 Aug 2018 at 11:30, Mark Stephen Mrotek 
wrote:

> Thanks Andrew,
>
>
>
> Does the job.
>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: align dynamic with text

2018-08-19 Thread Mark Stephen Mrotek
Thanks Andrew,

 

Does the job.

 

Mark

 

From: Andrew Bernard [mailto:andrew.bern...@gmail.com] 
Sent: Sunday, August 19, 2018 6:18 PM
To: Mark Stephen Mrotek 
Cc: lilypond-user Mailinglist 
Subject: Re: align dynamic with text

 

Hi Mark,

 

This may be what you are thinking of. This way makes a proper dynamic, not just 
text markup.

 

Andrew

 



\version "2.19.82"

fstrettoText = \markup {
  \center-align \line {
\hspace #0.1 f \normal-text \italic stretto
  }o
}
fstretto = #(make-dynamic-script fstrettoText)


{
  c'4_\fstretto
}

 



 

 

On Mon, 20 Aug 2018 at 10:25, Mark Stephen Mrotek mailto:carsonm...@ca.rr.com> > wrote:

 

Remember seeing a snippet that does, f stretto, for example.

 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-19 Thread Andrew Bernard
Hi Mark,

This may be what you are thinking of. This way makes a proper dynamic, not
just text markup.

Andrew


\version "2.19.82"

fstrettoText = \markup {
  \center-align \line {
\hspace #0.1 f \normal-text \italic stretto
  }
}
fstretto = #(make-dynamic-script fstrettoText)


{
  c'4_\fstretto
}





On Mon, 20 Aug 2018 at 10:25, Mark Stephen Mrotek 
wrote:

Remember seeing a snippet that does, *f **stretto*, for example.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align dynamic with text

2018-08-19 Thread Ben

On 8/19/2018 8:21 PM, Mark Stephen Mrotek wrote:


Hello,

Remember seeing a snippet that does, *f */stretto/, for example.

Searched the users’ archives and the snippet repository.

Maybe not using correct search terms.

Please assist.

Thank you,

Mark




Mark,

There are a few different ways to approach this, one way could be like 
this for example:

(see attached)

Does this help?

\version "2.19.81"

mpdolce = \markup { \halign #-0.45 \dynamic "pp" \tiny \italic "dolce" }
fstret = \markup { \halign #-0.45 \dynamic "f" \tiny \italic "stretto" }


\relative c' {
   c4_\mpdolce g' g' g r g_\fstret g g g r g r c g c

    }
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


align dynamic with text

2018-08-19 Thread Mark Stephen Mrotek
Hello,

 

Remember seeing a snippet that does, f stretto, for example.

Searched the users' archives and the snippet repository.

Maybe not using correct search terms.

Please assist.

 

Thank you,

 

Mark

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user