Re: Needing space after a user-defined ornament

2023-04-11 Thread Kieren MacMillan
Hi Jean,

> I don't understand this discussion. Over here,
> […] produces the same output as
> […]
> What am I missing?

Not sure… When I tried the OP’s code, it didn’t seem to work, even when I 
played with the numbers; then I added TextScript and it started to work. 

It didn’t make sense to me that it was necessary, and running your two code 
blocks now shows that it’s not.

Maybe Mercury’s in retrograde?  ;)
K

__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: Needing space after a user-defined ornament

2023-04-11 Thread Jean Abou Samra
Le mardi 11 avril 2023 à 07:14 -0400, Kieren MacMillan a écrit :
> Hi Alasdair,
> 
> 
> > Many thanks indeed - that works a treat!  How does one find out about these 
> > things?  I had tried just
> > - \tweak extra-spacing-width #'(2 . 3)
> > which hadn't worked.  Clearly I needed the extra space property of text.
> 
> 
> I tried what you did first, and it didn’t work for me either. When a tweak I 
> expect to work doesn’t work right away, I usually try adding an explicit grob 
> name next, just in case that fixes it — and in this case it did!

I don't understand this discussion. Over here,

```
\version "2.24.1"

ttr = #(define-event-function (placement) (pair?)
#{
 -\tweak extra-spacing-width #'(1 . 5)
 -\tweak extra-offset #placement
 -\markup { \fontsize #4 \musicglyph #"scripts.rcomma" }
#} )

\relative c'' {
  g8. ^\ttr #'(2.5 . -3.0) a16
}
```

produces the same output as

```
\version "2.24.1"

ttr = #(define-event-function (placement) (pair?)
#{
 -\tweak TextScript.extra-spacing-width #'(1 . 5)
 -\tweak extra-offset #placement
 -\markup { \fontsize #4 \musicglyph #"scripts.rcomma" }
#} )

\relative c'' {
  g8. ^\ttr #'(2.5 . -3.0) a16
}
```

What am I missing?


signature.asc
Description: This is a digitally signed message part


Re: Needing space after a user-defined ornament

2023-04-11 Thread Kieren MacMillan
Hi Alasdair,

> Many thanks indeed - that works a treat!  How does one find out about these 
> things?  I had tried just
> - \tweak extra-spacing-width #'(2 . 3)
> which hadn't worked.  Clearly I needed the extra space property of text.

I tried what you did first, and it didn’t work for me either. When a tweak I 
expect to work doesn’t work right away, I usually try adding an explicit grob 
name next, just in case that fixes it — and in this case it did!

Cheers,
Kieren.
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: Needing space after a user-defined ornament

2023-04-10 Thread Alasdair McAndrew
Hi Kieran,

Many thanks indeed - that works a treat!  How does one find out about these
things?  I had tried just

- \tweak extra-spacing-width #'(2 . 3)

which hadn't worked.  Clearly I needed the extra space property of text.

Thanks again,
Alasdair





On Mon, 10 Apr 2023, 9:33 pm Kieren MacMillan, 
wrote:

> Hi Alasdair,
>
> > Lilypond sometimes doesn't recognize this symbol as needing space, so
> depending on the spacing of the notes, this symbol can get very squashed.
> How can I add extra horizontal spacing to my function?
>
> ttr = #(define-event-function (placement) (pair?)
> #{
>  -\tweak TextScript.extra-spacing-width #'(1 . 5)
>  -\tweak extra-offset #placement
>  -\markup { \fontsize #4 \musicglyph #"scripts.rcomma" }
> #} )
>
> ??
>
> Hope that helps!
> Kieren.


Re: Needing space after a user-defined ornament

2023-04-10 Thread Kieren MacMillan
Hi Alasdair,

> Lilypond sometimes doesn't recognize this symbol as needing space, so 
> depending on the spacing of the notes, this symbol can get very squashed.  
> How can I add extra horizontal spacing to my function?

ttr = #(define-event-function (placement) (pair?)
#{
 -\tweak TextScript.extra-spacing-width #'(1 . 5)
 -\tweak extra-offset #placement
 -\markup { \fontsize #4 \musicglyph #"scripts.rcomma" }
#} )

??

Hope that helps!
Kieren.


Needing space after a user-defined ornament

2023-04-10 Thread Alasdair McAndrew
I'm typesetting some French baroque music, in which a sort of large breath
mark was used to indicate a particular type of trill.  And the mark is
positioned close to the note, generally a little to the right and up.

What I've done is create a small function:

ttr = #(define-event-function (placement) (pair?)
#{
 -\tweak extra-offset #placement
 -\markup {\fontsize #4 \musicglyph #"scripts.rcomma"}
#} )

which can be used like this:

\relative c'' {
  g8. ^\ttr #'(2.5 . -3.0) a16
}

The trouble is that Lilypond sometimes doesn't recognize this symbol as
needing space, so depending on the spacing of the notes, this symbol can
get very squashed.  How can I add extra horizontal spacing to my function?

Alasdair

-- 
Alasdair McAndrew (he/him)
mob: 0432 854 858

https://numbersandshapes.net