X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fduration-scheme.cc;h=a90fb1fda81079f6a8b95659e1bfb25a36add4ee;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=f62bba582a40ca02bcd7987e45e50ee2c31411a0;hpb=cbb205d40a19c0d2d9801031a63607e108a18038;p=lilypond.git diff --git a/lily/duration-scheme.cc b/lily/duration-scheme.cc index f62bba582a..a90fb1fda8 100644 --- a/lily/duration-scheme.cc +++ b/lily/duration-scheme.cc @@ -3,7 +3,7 @@ source file of the LilyPond music typesetter - (c) 1997--2007 Jan Nieuwenhuizen + (c) 1997--2008 Jan Nieuwenhuizen Han-Wen Nienhuys */ @@ -41,17 +41,17 @@ LY_DEFINE (ly_duration_less_p, "ly:durationduration_log ()); @@ -96,7 +96,7 @@ LY_DEFINE (ly_duration_log, "ly:duration-log", LY_DEFINE (ly_duration_dot_count, "ly:duration-dot-count", 1, 0, 0, (SCM dur), - "Extract the dot count from @var{dur}") + "Extract the dot count from @var{dur}.") { LY_ASSERT_SMOB (Duration, dur, 1); return scm_from_int (unsmob_duration (dur)->dot_count ()); @@ -113,7 +113,7 @@ LY_DEFINE (ly_intlog2, "ly:intlog2", LY_DEFINE (ly_duration_length, "ly:duration-length", 1, 0, 0, (SCM dur), - "The length of the duration as a Moment.") + "The length of the duration as a @code{moment}.") { LY_ASSERT_SMOB (Duration, dur, 1); return Moment (unsmob_duration (dur)->get_length ()).smobbed_copy (); @@ -121,7 +121,7 @@ LY_DEFINE (ly_duration_length, "ly:duration-length", LY_DEFINE (ly_duration_2_string, "ly:duration->string", 1, 0, 0, (SCM dur), - "Convert @var{dur} to string.") + "Convert @var{dur} to a string.") { LY_ASSERT_SMOB (Duration, dur, 1); return ly_string2scm (unsmob_duration (dur)->to_string ()); @@ -129,9 +129,10 @@ LY_DEFINE (ly_duration_2_string, "ly:duration->string", LY_DEFINE (ly_duration_factor, "ly:duration-factor", 1, 0, 0, (SCM dur), - "Extract the compression factor from @var{dur}. Return as a pair.") + "Extract the compression factor from @var{dur}." + " Return it as a pair.") { LY_ASSERT_SMOB (Duration, dur, 1); Rational r = unsmob_duration (dur)->factor (); - return scm_cons (scm_from_int (r.num ()), scm_from_int (r.den ())); + return scm_cons (scm_from_int64 (r.num ()), scm_from_int64 (r.den ())); }