lilypond-user
[Top][All Lists]
Advanced

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

Re: defining custom note heads


From: James E. Bailey
Subject: Re: defining custom note heads
Date: Mon, 07 Jul 2008 20:04:29 +0200


On Mon, Jul 7, 2008 at 12:09 PM, James E. Bailey <address@hidden> wrote:


On Tue, Jun 3, 2008 at 10:20 AM, v!ictor address@hidden <address@hidden> wrote:

Hello Brian,

There are two things you need to do to create arbitrary noteheads from

within lilypond:

1. change the NoteHead stencil to the text interface:

\once \override NoteHead  #'stencil = #ly:text-interface::print

2. define the text attribute of the NoteHead. you can put any markup

command you want. The easiest thing to do is to simply call a

musicglyph, as in the example below. With musicglyph you can use any

of the feta font glyphs:

http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font

But you can also draw lines, circles, etc. basically anything you can

do in a markup. See

http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands


Am 07.07.2008 um 18:04 schrieb Eric Knapp:

Hello,

I'm trying to get the second option below to work. This is one where
you use markup commands to create the notehead. I can't get the syntax
right, could you also provide an example of that?

Thanks,

-Eric


They work in tandem, not independantly, first, you change the NoteHead stencil to the text interface, (see previous code), then you define the
musicglyph that you want to use as a notehead.
See http://lsr.dsi.unimi.it/LSR/Item?id=475
(and just as I finish complaining that I can never find anything on the
lsr…)



Am 07.07.2008 um 19:46 schrieb Eric Knapp:
I have it working when you define glyphs, like this:

headCircle = {\once \override NoteHead #'stencil = #ly:text- interface::print
             \once \override NoteHead #'text = #(markup #:musicglyph
"scripts.flageolet" ) }

What I can't get to work is what Victor mentioned but didn't give and
example for. Here's what he said,

"But you can also draw lines, circles, etc. basically anything you can
do in a markup. See
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands "

I can't figure out the exact syntax for when you use markup and not a
glyph. I would love an example like the one above with markup.

Thanks,

-Eric

You have it working correctly. when you have #(markup #: whatever markup) that's just the scheme way of calling a markup.



reply via email to

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