lilypond-user
[Top][All Lists]
Advanced

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

Re: Accent on single note of chord?


From: Jean Abou Samra
Subject: Re: Accent on single note of chord?
Date: Sat, 24 Sep 2022 22:43:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1



Le 24/09/2022 à 22:34, Andy Bradford a écrit :
Thus said Jean Abou Samra on Sat, 24 Sep 2022 22:17:26 +0200:

Are you asking this because you  saw this notation in a printed score,
or because you want to use it even though it's nonstandard?
Yes, the attachment  that I included in my original  email was a snippet
from an  actual printed score. I  can certainly imagine that  just the C
from the chord wants additional emphasis over the rest of the chord.



OK, I didn't know this notation at all.

Here's how I'd do it:

\version "2.22.2"

leftAccent =
  \tweak side-axis #X
  \tweak X-offset #ly:side-position-interface::x-aligned-side
  \tweak Y-offset 0
  \tweak before-line-breaking
  #(lambda (grob)
     (let ((head (ly:grob-parent grob X)))
       (ly:grob-set-parent! grob Y head)))
  \tweak padding 0.5
  \tweak extra-spacing-width #'(-0.5 . 0)
  ->

\relative {
    <g-1 b-2 e-5>4 <g b e>
    <g-1 c-3\leftAccent e-5>
}






reply via email to

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