lilypond-user
[Top][All Lists]
Advanced

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

Re: converting decimal numbers into rational in scheme functions


From: Janek Warchoł
Subject: Re: converting decimal numbers into rational in scheme functions
Date: Wed, 18 Sep 2013 11:07:09 +0200

2013/9/18 Thomas Morley <address@hidden>:
> 2013/9/18 David Kastrup <address@hidden>:
>> (1 32) tries to call 1 with 32 as its argument.  Just write
>>
>> #(ly:make-moment 1/32)
>>
>> and be done.  If you really, really don't remember how LilyPond
>> represents fractions and you really, really want to use
>> fraction->moment, you can write
>>
>> #(fraction->moment #{ 1/32 #})
>
> Also possible:
> #(fraction->moment (cons 1 32))

Thank you both!  I got it to work.

Janek



reply via email to

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