|
From: | Massimiliano Viel |
Subject: | Re: list of stencils |
Date: | Mon, 4 Dec 2017 18:54:27 +0100 |
Hi, at the moment I solved the problem with postscript as I couldn’t properly deal with the vertical lining of the note-glyph and the line of the markup (it seems to me difficult to move a markup over a staff). Here is what I did: dblacknote = { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = \markup { \combine \musicglyph #"noteheads.s2" \postscript #" newpath 0.13 setlinewidth -0.3 -0.6 moveto 1.6 0.6 lineto stroke" } } dwhitenote = { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = \markup { \combine \musicglyph #"noteheads.s1" \postscript #" newpath 0.13 setlinewidth -0.3 -0.6 moveto 1.7 0.7 lineto stroke" } } The snippet I was referring to was:
circle =
\once \override NoteHead.stencil = #(lambda (grob)
(let* ((note (ly:note-head::print grob))
(combo-stencil (ly:stencil-add
note (circle-stencil note 0.1 0.8))))
(ly:make-stencil (ly:stencil-expr combo-stencil)
(ly:stencil-extent note X)
(ly:stencil-extent note Y))))
{ \circle c' } So I wanted to substitute the circle-stencil with some dash-stencil… only… where should I look for a complete list of stencils? Is it even a proper question? Thank you for all the help. massimiliano On 4 Dec 2017, at 18:33, Edward Neeman <address@hidden> wrote: |
[Prev in Thread] | Current Thread | [Next in Thread] |