Re: Circles round fingerings

2020-07-02 Thread Pierre Perol-Schneider
You're welcome Paul.
Cheers,
Pierre
PS. Be sure to respond to the list.

Le jeu. 2 juil. 2020 à 14:31, Paul McKay  a écrit :

> Thanks for this Pierre. I can now do just what I'd hoped. I'm still
> struggling to write the appropriate markup function, but I'll keep going!
> Paul
>
> On Wed, 24 Jun 2020 at 15:23, Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com> wrote:
>
>> Hi Paul,
>> How about:
>>
>> \version "2.20.0"
>>
>> customFingering = {
>>   \override Fingering.font-name = "Arial Black"
>>   \override Fingering.font-size = #-1
>>   \override Fingering.color = #(x11-color "DarkRed")
>> }
>>
>> cust =
>>   -\tweak font-name #"Arial Black"
>>   -\tweak font-size #-2
>>   -\tweak color #(x11-color "DarkRed") \etc
>>
>> tune = \relative {
>> %\customFingering
>> c'4 d-2  e\3 % <= optional
>> \cust-\markup\circle "3"
>> g-5 %-\markup {\center-align \draw-circle #1 #.5 ##f }
>> }
>> \score {
>> <<
>> \time 4/4
>> \new Staff \tune
>> >>
>> \layout {
>>   \context {
>> \Score
>> \override Fingering.font-name = "Arial Black"
>> \override Fingering.font-size = #-1
>> \override Fingering.color = #(x11-color "DarkRed")
>> %Optional:
>> \override StringNumber.font-name = "Arial Black"
>> \override StringNumber.font-size = #-2
>> \override StringNumber.color = #(x11-color "DarkRed")
>>   }
>> }
>> }
>>
>> Of course, you could also define a markup function to get a shortcut for
>> the circled fingering...
>> Cheers,
>> Pierre
>>
>>
>> Le mer. 24 juin 2020 à 15:19, Paul McKay  a écrit :
>>
>>> Hi
>>> I'd like to put a circle round occasional fingering marks. I have tried
>>> *\circle*, but seem to have no control of the resulting thickness nor
>>> of the font features. I can find no way to customize the fingering font
>>> within the *\circle: *I always get some error message or other.
>>>
>>> I tried \draw-circle, but that's a kludge and I can't make it overlap.
>>>
>>> What I'd really like is to set up the fingering font attributes at the
>>> Score level so that I don't have to reset them every time I use fingering
>>> in a music expression. Perhaps that would encourage *\circle* to use
>>> them. In the following example, I'd really like to see a fingering on the e
>>> which has a bold red circle around it and properly centred. It would be
>>> good if it could handle tweaks to the Y-offset too because the circle might
>>> collide with other things.
>>>
>>> Thanks
>>> Paul McKay
>>>
>>> Example:
>>> \version "2.20.0"
>>>
>>> customFingering = {
>>> \override Fingering.font-name = "Arial Black"
>>> \override Fingering.font-size = #-1
>>> \override Fingering.color = #(x11-color "DarkRed")
>>> }
>>> tune = \relative {
>>> \customFingering
>>> c'4 d-2  e -\markup {   { \circle \finger  "3" } }
>>> g-5-\tweak Y-offset 5 -\markup {\center-align \draw-circle #1 #.5
>>> ##f }
>>> }
>>> \score {
>>> <<
>>> \time 4/4
>>> \new Staff \tune
>>> >>
>>> \layout {}
>>> }
>>>
>>


Re: Circles round fingerings

2020-06-24 Thread Pierre Perol-Schneider
Hi Paul,
How about:

\version "2.20.0"

customFingering = {
  \override Fingering.font-name = "Arial Black"
  \override Fingering.font-size = #-1
  \override Fingering.color = #(x11-color "DarkRed")
}

cust =
  -\tweak font-name #"Arial Black"
  -\tweak font-size #-2
  -\tweak color #(x11-color "DarkRed") \etc

tune = \relative {
%\customFingering
c'4 d-2  e\3 % <= optional
\cust-\markup\circle "3"
g-5 %-\markup {\center-align \draw-circle #1 #.5 ##f }
}
\score {
<<
\time 4/4
\new Staff \tune
>>
\layout {
  \context {
\Score
\override Fingering.font-name = "Arial Black"
\override Fingering.font-size = #-1
\override Fingering.color = #(x11-color "DarkRed")
%Optional:
\override StringNumber.font-name = "Arial Black"
\override StringNumber.font-size = #-2
\override StringNumber.color = #(x11-color "DarkRed")
  }
}
}

Of course, you could also define a markup function to get a shortcut for
the circled fingering...
Cheers,
Pierre


Le mer. 24 juin 2020 à 15:19, Paul McKay  a écrit :

> Hi
> I'd like to put a circle round occasional fingering marks. I have tried
> *\circle*, but seem to have no control of the resulting thickness nor of
> the font features. I can find no way to customize the fingering font within
> the *\circle: *I always get some error message or other.
>
> I tried \draw-circle, but that's a kludge and I can't make it overlap.
>
> What I'd really like is to set up the fingering font attributes at the
> Score level so that I don't have to reset them every time I use fingering
> in a music expression. Perhaps that would encourage *\circle* to use
> them. In the following example, I'd really like to see a fingering on the e
> which has a bold red circle around it and properly centred. It would be
> good if it could handle tweaks to the Y-offset too because the circle might
> collide with other things.
>
> Thanks
> Paul McKay
>
> Example:
> \version "2.20.0"
>
> customFingering = {
> \override Fingering.font-name = "Arial Black"
> \override Fingering.font-size = #-1
> \override Fingering.color = #(x11-color "DarkRed")
> }
> tune = \relative {
> \customFingering
> c'4 d-2  e -\markup {   { \circle \finger  "3" } }
> g-5-\tweak Y-offset 5 -\markup {\center-align \draw-circle #1 #.5 ##f }
> }
> \score {
> <<
> \time 4/4
> \new Staff \tune
> >>
> \layout {}
> }
>


Circles round fingerings

2020-06-24 Thread Paul McKay
Hi
I'd like to put a circle round occasional fingering marks. I have tried
*\circle*, but seem to have no control of the resulting thickness nor of
the font features. I can find no way to customize the fingering font within
the *\circle: *I always get some error message or other.

I tried \draw-circle, but that's a kludge and I can't make it overlap.

What I'd really like is to set up the fingering font attributes at the
Score level so that I don't have to reset them every time I use fingering
in a music expression. Perhaps that would encourage *\circle* to use them.
In the following example, I'd really like to see a fingering on the e which
has a bold red circle around it and properly centred. It would be good if
it could handle tweaks to the Y-offset too because the circle might collide
with other things.

Thanks
Paul McKay

Example:
\version "2.20.0"

customFingering = {
\override Fingering.font-name = "Arial Black"
\override Fingering.font-size = #-1
\override Fingering.color = #(x11-color "DarkRed")
}
tune = \relative {
\customFingering
c'4 d-2  e -\markup {   { \circle \finger  "3" } }
g-5-\tweak Y-offset 5 -\markup {\center-align \draw-circle #1 #.5 ##f }
}
\score {
<<
\time 4/4
\new Staff \tune
>>
\layout {}
}