lilypond-user
[Top][All Lists]
Advanced

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

Re: [frogs] Re: Numeric note heads for singers


From: Neil Puttock
Subject: Re: [frogs] Re: Numeric note heads for singers
Date: Sun, 10 Jan 2010 23:42:21 +0000

2010/1/10 address@hidden <address@hidden>:

> Actually, the new scheme engraver functionality is so good that the
> code below seems to do the trick.

Great!

> Unfortunately, it doesn't demonstrate
> very much of what can be done with engravers,

Well, I did say it would be a gentle introduction. :)

> but I can turn it into a
> snippet if it would be useful.

Please do.

If you look in snippets/new, you'll see all the current snippets which
use features from the development version (so they can't go directly
in the LSR).  All you need to do is cook up an example in the same
format (there's a README which explains a few details, such as the
tagging), and create a patch for us to review.  If you have any
problems or need some guidance, let me or Carl know.

Once the snippet's been added, we can probably use it as a selected
example in the Notation Reference.

>           (note-names
>             (map
>               (lambda (x)
>                 (list->string
>                   (list
>                     (integer->char
>                       (+ 1 delta (char->integer #\0))))))
>              '(0 1 2 3 4 5 6))))
>        (ly:grob-set-property! grob 'note-names (list->vector note-
> names)))))))))

This is rather nifty, but it would be much simpler just to create the
vector directly:

(make-vector (number->string (1+ delta)))

Cheers,
Neil




reply via email to

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