> Le 30/06/2021 04:17, Dinh Hoang Tu <[email protected]> a écrit :
>
>
> Hi Jean,
>
> It works wonderfully!
> Many thanks for your help!
>
> We can close the support here. Thanks Jean, Knute!
>
> Just my notice maybe out of scope: when I select 1 note on Frescobaldi, whole
> tweaked part is selected
> I can work around on it.
>
>
> Best,
> Tu' DINH
Correct. Here is a variant that avoids this:
\version "2.22.0"
localFontSize =
#(define-music-function (font-size music) (number? ly:music?)
(for-some-music
(lambda (m)
(if (music-is-of-type? m 'rhythmic-event)
(begin
(set! (ly:music-property m 'tweaks)
(cons `(font-size . ,font-size)
(ly:music-property m 'tweaks)))
#t)
#f))
music)
music)
soprano = { d' e' f' g' f' g' a' b' }
tenor = \localFontSize -3 { d' e' f' g' d' e' f' g' }
\new Score { \new Staff << \partCombineUp \soprano \tenor >> }
Best,
Jean