lilypond-user
[Top][All Lists]
Advanced

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

Re: How should I use #'glyph-name = ... ?


From: Philipp Zedler
Subject: Re: How should I use #'glyph-name = ... ?
Date: Fri, 23 Jul 2010 20:31:41 +0200

Hi Neal,

> If your chosen head isn't present in one of the notehead styles,
> you'll have to use 'stencil; note that you don't need the 'text
> property, since you can pass the glyph string directly to 'stencil
> using `grob-interpret-markup':
> 
> #(define ((note-head-musicglyph name) grob)
>           (grob-interpret-markup grob (make-musicglyph-markup name)))
> 
> {
>   \once \override NoteHead #'stencil = #(note-head-musicglyph "clefs.G")
>   g'
>   <c' e' \tweak #'stencil #(note-head-musicglyph "scripts.stopped") g'>
> }

well explained. Your method works very well and makes my lilypond-code
much much shorter and simpler.

You've solved my problem. Thank you very much!

Cheers
Philipp




reply via email to

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