lilypond-user
[Top][All Lists]
Advanced

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

Re: setting Notehead for a single chord which follows the custom Notehea


From: Ryan Michael
Subject: Re: setting Notehead for a single chord which follows the custom Notehead
Date: Thu, 14 Jan 2016 13:08:54 -0800

Precisely! Thank you!

On Thu, Jan 14, 2016 at 1:04 PM, Thomas Morley <address@hidden> wrote:
2016-01-14 21:49 GMT+01:00 Ryan Michael <address@hidden>:
> I am trying to use the triangle notepad for all of the notes in a chord, but
> would not like the triangle notehead to appear anywhere else in the score.
>
> I have the following:
>
>
> %%%%%%%%%%%%
> \version "2.18.2"
>
> \relative {
>   \set shapeNoteStyles = ##(triangle triangle)
>
> <d\harmonic g\harmonic>1~
>
> <d\harmonic g\harmonic>4 r16. e'32 fis,,8->  r8 b' cis,4. <b'\harmonic
> e\harmonic>8
> }
> %%%%%%%%%%%%
>
> But it appears that this is not how you apply a triangle notehead to just
> the d and g and just in that chord that immediately follows the setting of
> the notehead.
>
>
> Thanks!
> --
> ॐ नमः शिवाय


Not sure I understood. Maybe:

\version "2.18.2"

\relative {
  \override NoteHead.before-line-breaking =
    #(lambda (grob) (ly:grob-set-property! grob 'style 'triangle))

  <d\harmonic g\harmonic>1~

  <d\harmonic g\harmonic>4

  \revert NoteHead.before-line-breaking

  r16. e'32 fis,,8->  r8 b' cis,4. <b'\harmonic e\harmonic>8
}



HTH,
  Harm



--
ॐ नमः शिवाय

reply via email to

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