Hello Aaron,

It works wonderfully, using combination of functions ^^
This really helps! Many many thanks!!

Thank you and good day to all.

Best,
Tu'

On Fri, 2 Jul 2021 at 12:55, Aaron Hill <lilyp...@hillvisions.com> wrote:

> On 2021-07-01 10:44 pm, Aaron Hill wrote:
> > [...]
>
> Also, here's a minor refactor of \localFontSize better separating some
> concerns:
>
> %%%%
> \version "2.22.0"
>
> localFontSize =
> #(define-music-function
>    (font-size music)
>    (number? ly:music?)
>    (map (lambda (m)
>          (ly:music-set-property! m 'tweaks
>           (cons `(font-size . ,font-size)
>            (ly:music-property m 'tweaks))))
>     (extract-typed-music music 'rhythmic-event))
>    music)
>
> soprano = \fixed c' { f4 g a b c'2 }
> tenor = \fixed c' { d4 e \tweak color #red f' g <g a>2 }
> \partCombine
>    { \partCombineChords \soprano }
>    { \stemUp \localFontSize -3 \tenor }
> %%%%
>
> The test case below includes an inline \tweak and a chord within the
> tenor part.
>
>
> -- Aaron Hill

Reply via email to