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: Aaron Hill
Subject: Re: Change size of all notes in one voice with partCombine
Date: Thu, 01 Jul 2021 22:55:22 -0700
User-agent: Roundcube Webmail/1.4.9

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

Attachment: part-combine.cropped.png
Description: PNG image


reply via email to

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