[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-bug
Subject: custom-style/custom-stencil-combination returns warning
From: Thomas Morley <thomasmorley65 () gmail ! com>
Date: 2018-04-04 0:09:44
Message-ID: CABsfGyXjqVHR3MSGCLhxMEVdQugRdAmExP9cyTbKa00jiKynGA () mail ! gmail ! com
[Download RAW message or body]
The following code returns:
warning: none of note heads `noteheads.s' or `noteheads.u' found
although those noteheads shouldn't even be searched, imho
Ofcourse the 'style is unknown, but providing a custom-stencil should
be accepted.
Interestingly the warning prints only for the second note.
\version "2.19.81"
{
\override NoteHead.style = #'foo
\override NoteHead.stencil = #point-stencil
c'1
c'2
}
Ugly workaround:
{
\override NoteHead.style = #'foo
\override NoteHead.stencil =
#(lambda (grob)
(if (eq? (ly:grob-property grob 'style) 'foo)
(begin
(ly:grob-set-property! grob 'style '())
point-stencil)
(ly:note-head::print grob)))
c'1
c'2
\revert NoteHead.style
c'2
c'1
}
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic