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: Jean Abou Samra
Subject: Re: Change size of all notes in one voice with partCombine
Date: Wed, 30 Jun 2021 08:38:23 +0200 (CEST)

> Le 30/06/2021 04:17, Dinh Hoang Tu <dhoangtu@gmail.com> 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



reply via email to

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