lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Scheme function ly:string->duration


From: Nicolas Sceaux
Subject: Re: [PATCH] Scheme function ly:string->duration
Date: Sat, 17 May 2008 02:02:51 +0200

Le 17 mai 08 à 00:16, Joe Neeman a écrit :

On Sat, May 17, 2008 at 4:59 AM, Neil Puttock <address@hidden> wrote:
Hello,

In the thread about creating custom metronome markups
(http://lists.gnu.org/archive/html/lilypond-user/2008-04/ msg00629.html)
and the subsequent discussion at The LilyPond Report, Valentin
expressed the wish for a convenient way to convert duration strings to
durations.  Since I agreed, I thought I'd have a go at implementing an
exported scheme function in duration-scheme.cc which can be used
within lilypond files.

Attached is a patch with "My First C++ Code", which provides this
functionality. :)

Hi Neil,
This looks pretty good overall; my main complaint is that it is a bit too permissive in its parsing.

Uh, there is already a duration parsing function in
scm/define-markup-commands.scm. Why not just make it public and
rename it? It's a bit too permissive maybe, but still...

nicolas





reply via email to

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