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

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


2010/1/10 pounderd@xxxxxxxxxxx <pounderd@xxxxxxxxxxx>:

> 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

---
----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/