|
From: | Pierre Perol-Schneider |
Subject: | Re: Circles round fingerings |
Date: | Thu, 2 Jul 2020 14:35:08 +0200 |
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!PaulOn Wed, 24 Jun 2020 at 15:23, Pierre Perol-Schneider <pierre.schneider.paris@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,PierreLe mer. 24 juin 2020 à 15:19, Paul McKay <plmcky@gmail.com> a écrit :HiI'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.ThanksPaul McKayExample:\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 {}
}
[Prev in Thread] | Current Thread | [Next in Thread] |