lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change size of all notes in one voice with partCombine


From: Dinh Hoang Tu
Subject: Re: Change size of all notes in one voice with partCombine
Date: Sun, 4 Jul 2021 09:01:56 +0700

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 <lilypond@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

[Prev in Thread] Current Thread [Next in Thread]