2013/9/18 David Kastrup <[email protected]>:
> Janek Warchoł <[email protected]> writes:
>> Now, i would like to be able to supply a decimal number and have it
>> converted to a rational number (i.e. a fraction, which can be easily
>> converted to a moment)
>
> How did you search? It's right in the GUILE manual where one would
> expect, with rational numbers.
I've grepped through LilyPond sources for various keywords, and looked
around definitions of other conversions.
I guess i should add guile manual to my RTFM list.
In the meantime, i have trouble with converting from a fraction to a
moment - this returns an error:
\version "2.16.2"
foof =
#(define-music-function (parser location) ()
#{
\override Score.SpacingSpanner.common-shortest-duration =
#(fraction->moment (1 32))
#})
\new Staff {
\foof
c'4 d' e' f'
}
i'm probably doing something stupid here...
best,
Janek
PS i'll try to answer the 'github email' tomorrow.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user