Re: [frogs] Integrating a Scheme function into Lilypond |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Joseph Wakeling <joseph.wakeling@xxxxxxxxxxxx>
- Subject: Re: [frogs] Integrating a Scheme function into Lilypond
- From: Neil Puttock <n.puttock@xxxxxxxxx>
- Date: Wed, 21 Jul 2010 22:16:22 +0100
- Cc: frogs@xxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8bs0mVQAMyeHGO7acMl/4HzQlsqVER/r6z7mnZXm9rA=; b=hJj26L8Y2CHOjRg3Lhcg+z7Jb+qmiySP2Hi3bxhhwbbHfqPVAhssGAfjAmhP0wD2jr ArWAqUTGJ/COAmvYuVjQXWlaHS5npcOAGg+FLhVZ34VOpkR85tGUWutBIknt9KcZSclV wUlN6ZooC1K5/d+vVCNTs6gZhD0uj5xJb7d2Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KmKxg/AiSNc5njbdQSHmc7LiL9+MkaWLcSTj9U1Zdk8C8sXTjR5OBEbws7WwUUv8FK NnTnCSMKfh8MvhCK+K5GB0cEMoKwcXrcLHURkOT4g+TAtm5rVL4jbr6F1cnmYPw4EutB aihC5sBgZWuegSNDqx8xtUh85cQwHrnorHx6M=
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!