Tao Cumplido | 30 Nov 01:06

Re: custom noteheads

Yes. Thanks Neil, you're my man. =)

It'd have taken me ages to figure out that I have to use grob-property and 'duration-log.
But I already thought that ly:make-duration was wrong.

Now I see it it makes sense and it was no problem to insert another custom stencil for whole and half notes.

Well, Scheme is still too complex for me.

-------- Original-Nachricht --------
> Datum: Sat, 29 Nov 2008 16:17:30 +0000
> Von: "Neil Puttock" <n.puttock <at> gmail.com>
> An: "Tao Cumplido" <tao_lilyponduser <at> gmx.net>
> CC: lilypond-user <at> gnu.org
> Betreff: Re: custom noteheads

> Hi Tao,
> 
> 2008/11/29 Tao Cumplido <tao_lilyponduser <at> gmx.net>:
> 
> > Generally I thought I could define a music-function that overrides the
> stencil of a NoteHead depending on the car of ly:make-duration. So if it's
> <=1 it'll place a custom stencil for half and whole notes and if it's >=2
> for filled notes.
> > I hope that makes sense. I just don't know how to do this in lily.
> 
> If you're overriding the NoteHead stencil, you can access the property
> 'duration-log, which will tell you the duration of the current note.
> Then you can use case to set the stencil conditionally:
> 
(Continue reading)


Gmane