bug-lilypond
[Top][All Lists]
Advanced

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

Re: Note heads and grace


From: Mats Bengtsson
Subject: Re: Note heads and grace
Date: Mon, 10 Nov 2003 11:22:03 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

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 \revert #'style
d4 d d d
\grace{d16 d}
d4 d d d
\property Voice.NoteHead \override #'style = #'xcircle
e4 e e e

See http://lilypond.org/doc/v2.0/Documentation/user/out-www/lilypond/Tuning-objects.html
for more details.

To do a setting for a single note head, use \once \property ...
You can define your own shorthand macro like
xcircle = \notes{ \once \property Voice.NoteHead \override #'style = #'xcircle }
and use it with
\xcircle c4

   /Mats

Marco Caliari wrote:
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 you remove \grace{d16 d}. Is it possible to change a single note head with a command like

c4\xcircle

?

Regards,





reply via email to

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