lilypond-user
[Top][All Lists]
Advanced

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

Re: Function for note string to fraction?


From: Peter Bjuhr
Subject: Re: Function for note string to fraction?
Date: Tue, 20 May 2014 11:49:12 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0


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

I'll present the script shortly...

Best
Peter

reply via email to

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