Actually, I do have an advanced guess on why it happens.
The \grace command sets some properties for the NoteHead
object within the current Voice context. Then, LilyPond
will make a local copy of the list of properties for the
NoteHead object within this specific Voice context. So, the
properties y
Don't ask me why, but if you replace Staff.NoteHead with Voice.NoteHead
in your example, it will work.
Also, I recommend to use \override ... \revert instead of explicitly
setting the value back to default:
\property Voice.NoteHead \override #'style = #'xcircle
c4 c c c
\property Voice.NoteHead \re
Hi all.
The following example
\property Staff.NoteHead \set #'style = #'xcircle
c4 c c c
\property Staff.NoteHead \set #'style = #'default
d4 d d d
\grace{d16 d}
d4 d d d
\property Staff.NoteHead \set #'style = #'xcircle
e4 e e e
does not restore note heads to xcircle (lily 2.1.0). It works if