[Top][All Lists]

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

Re: Function for note string to fraction?

From: David Kastrup
Subject: Re: Function for note string to fraction?
Date: Tue, 20 May 2014 12:02:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Peter Bjuhr <address@hidden> writes:

> On 2014-05-20 10:26, David Kastrup wrote:
>> Mark Polesky <address@hidden> writes:
>>> Then you would use it like this:
>>> \set Timing.baseMoment = #(note-to-moment "4.")
>> Anything wrong with
>> \set Timing.baseMoment = #(ly:duration-length #{ 4. #})
>> Ok, you need 2.19 for it, but it seems like one of the cheaper
>> ways to ask the parser for input.
> Thanks, indeed it is cheaper. But I'm not sure if I can use it. This
> is part of a larger whole. Basically the user is intended to input a
> string with the duration, and the string will be used both for
> \set Timing.baseMoment
> and for markup via
> \note

We probably should let \note accept a duration, but it's not actually
hard to pick apart and use \note-by-number on the parts.

David Kastrup

reply via email to

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