Re: [frogs] Integrating a Scheme function into Lilypond

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


On 21 July 2010 22:00, Joseph Wakeling <joseph.wakeling@xxxxxxxxxxxx> wrote:
> On 07/21/2010 10:04 PM, Neil Puttock wrote:
>> The .scm file has to be loaded into the `lily' module; see the
>> definition of `init-scheme-files', which lists all the files to be
>> loaded.
>
> Great, thanks -- all working now.
>
> Style query -- is the naming of the functions as ly:naturalize etc.
> appropriate?  Or should I kill the ly: prefix?

Kill.  It should only be used for functions exported from C++.

> I have a few technical queries too, but I'm going to try and figure them
> out myself first (they're Scheme-y rather than Lilypond-y...).

I've just had a quick glance at naturalize.scm, and one thing jumps out:

(/ 1 2)

is more conveniently written as a rational,

1/2

though it's probably easier to see what's going on in the file if you
use the predefined constants for alterations:

SHARP

Cheers,
Neil

---
----
Join the Frogs!


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