Re: Anything similar to to-barline for extender lines of cresc/dim?

2023-10-11 Thread Mats Bengtsson

  
  
On 2023-10-11 17:17, Knute Snortum
  wrote:


  
  
On Wed, Oct 11, 2023 at 5:40 AM Mats Bengtsson
  
  wrote:


  
Follow-up question; wouldn't it be good to have this setting
as the 
default?
  
  
  
  You can, in a way, set it as the default by using an
override instead of a tweak:
  ...
  

  

Certainly! You can even do the setting for all scores of the
  current file by adding
\layout{
    \context{
      \Score
      \override DynamicTextSpanner.to-barline = ##t
    }
  }

(or even putting these lines in an include file together with all
  other favorite settings of yours). 

My question was on the default behavior in LilyPond, where
  to-barline is true by default for hairpins but not for the
  extender lines of textual dynamics. I have just ordered a copy of
  E. Gould's "Behind bars" (which now is available in paperback at a
  much lower price than the earlier bound version), but before it
  arrives I don't know if she has anything authoritative to say
  about best typesetting practice in this situation. 

   /Mats



  




Re: Anything similar to to-barline for extender lines of cresc/dim?

2023-10-11 Thread Knute Snortum
On Wed, Oct 11, 2023 at 5:40 AM Mats Bengtsson 
wrote:

> Follow-up question; wouldn't it be good to have this setting as the
> default?
>

You can, in a way, set it as the default by using an override instead of a
tweak:

\version "2.24.2"

theNotes = { c'1\cresc 1 1 1\f 1 1\cresc 1 1 1\f 1 1\cresc 1 1 1\f }

{
  \theNotes
  \break
  \override DynamicTextSpanner.to-barline = ##t
  \theNotes
}


--
Knute Snortum


Re: Anything similar to to-barline for extender lines of cresc/dim?

2023-10-11 Thread Mats Bengtsson



On 2023-10-10 23:01, Mats Bengtsson wrote:

On 2023-10-10 18:07, David Kastrup wrote:

Have you tried not "anything like to-barline" but rather _exactly_
to-barline ?

Like

c -\tweak to-barline ##t \cresc

and its ilk?



Silly me! Too obvious to try. Well, in fact I was looking around in 
the internals manual, but didn't spot that to-barline was listed in 
the spanner-interface.


   /Mats

Follow-up question; wouldn't it be good to have this setting as the 
default?


   /Mats




Re: Anything similar to to-barline for extender lines of cresc/dim?

2023-10-10 Thread Mats Bengtsson

  
  
On 2023-10-10 18:07, David Kastrup wrote:

  Mats Bengtsson  writes:


  
Hi,

Is there anything analogous to Hairpin.to-barline = #t that applies to
the extender line of textual dynamics like \cresc or \dim?

Unfortunately, I don't have a copy of Gould, but to me all the options
I tried below look worse than having an extender line that ends
exactly below the bar line.

\version "2.25.9"

\fixed c' {
<>^"Extending into next bar"
c4 \cresc d e f |
g \f f g a |
g4 \dim f e d |
c \mf  d c b, |
<>^"Especially ugly at line breaks"
c4 \cresc d e f |
g \f f g a |
g4 \dim f e d | \break
c1 \mf |
<>^"Ended (too early) before the bar"
c4 \cresc d e f \! |
g \f f g a |
g4 \dim f e d \! |
c \mf d c b, |
<>^\markup\column{"Still too early" "adjusting bound-details" }
\override DynamicTextSpanner.bound-details.right.attach-dir = #RIGHT
c4 \cresc d e f \! |
g \f f g a |
g4 \dim f e d \! | \break
c1 \mf |

}

Any ideas, or should I file it as a feature request?

  
  
Have you tried not "anything like to-barline" but rather _exactly_
to-barline ?

Like

c -\tweak to-barline ##t \cresc

and its ilk?




Silly me! Too obvious to try. Well, in fact I was looking around
  in the internals manual, but didn't spot that to-barline was
  listed in the spanner-interface.
   /Mats



  




Re: Anything similar to to-barline for extender lines of cresc/dim?

2023-10-10 Thread David Kastrup
Mats Bengtsson  writes:

> Hi,
>
> Is there anything analogous to Hairpin.to-barline = #t that applies to
> the extender line of textual dynamics like \cresc or \dim?
>
> Unfortunately, I don't have a copy of Gould, but to me all the options
> I tried below look worse than having an extender line that ends
> exactly below the bar line.
>
> \version "2.25.9"
>
> \fixed c' {
> <>^"Extending into next bar"
> c4 \cresc d e f |
> g \f f g a |
> g4 \dim f e d |
> c \mf  d c b, |
> <>^"Especially ugly at line breaks"
> c4 \cresc d e f |
> g \f f g a |
> g4 \dim f e d | \break
> c1 \mf |
> <>^"Ended (too early) before the bar"
> c4 \cresc d e f \! |
> g \f f g a |
> g4 \dim f e d \! |
> c \mf d c b, |
> <>^\markup\column{"Still too early" "adjusting bound-details" }
> \override DynamicTextSpanner.bound-details.right.attach-dir = #RIGHT
> c4 \cresc d e f \! |
> g \f f g a |
> g4 \dim f e d \! | \break
> c1 \mf |
>
> }
>
> Any ideas, or should I file it as a feature request?

Have you tried not "anything like to-barline" but rather _exactly_
to-barline ?

Like

c -\tweak to-barline ##t \cresc

and its ilk?

-- 
David Kastrup