lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing note graphics


From: Leo Correia de Verdier
Subject: Re: Changing note graphics
Date: Wed, 2 Jun 2021 23:41:48 +0200

Is this something like what you’re looking for?

%%
\version "2.22.1"

\new Score
\new PianoStaff
<<
  \new Staff << {c''2 b'4 a' g'1} \\ {e'2. f'4 e'2 d'} >>
  \new Staff << {\clef bass g2. a8 b c'2 b} \\ {c4 e2 d4 g1} >>
>>
\layout {
  \context { 
    \Voice
    \override NoteHead.before-line-breaking = #(lambda (grob) 
                                                 (if (= 1 (ly:grob-property 
grob 'duration-log)) 
                                                     (ly:grob-set-property! 
grob 'duration-log 2) 
                                                     #t)
                                                 )
    \override Stem.stencil = #(lambda (stem)
                                (if (= 1 (ly:grob-property stem 'duration-log))
                                    #f
                                    (ly:stem::print stem)
                                    ))
} }
%%


> 2 juni 2021 kl. 22:29 skrev Kees van den Doel <kvdoel@gmail.com>:
> 
> I want to change all half-notes in an existing score to look like quarter 
> note with no stem.
> Everything else should remain unchanged.
> Is there a way to do this without editing every occurrence?
> 
> Thanks.




reply via email to

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