[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: |
Thomas Morley |
Subject: |
Re: setting Notehead for a single chord which follows the custom Notehead |
Date: |
Thu, 14 Jan 2016 22:04:41 +0100 |
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