@node Moment
@section Moment
-Moment is a rational number. Since GUILE doesn't support them natively,
-so we created our own rational data type.
+Moment is a point in musical time. It is consists of a pair of
+rationals (@var{m},@var{g}), where @var{m} is the timing for the main
+notes, and @var{g} the timing for grace notes. In absence of grace
+notes, @var{g} is zero.
@defun moment? obj
Type predicate, return true if @var{obj} is a moment.
@end defun
@defun make-moment num den
-create the rational number @var{num}/@var{den}.
+create the rational number with main timing @var{num}/@var{den}.
@end defun
@node Duration
set value of property @var{sym} in context @var{tr} to @var{val}.
@end defun
+@defun Translator::name tr
+Return the type name of the translator @var{tr}.
+@end defun
+
+@defun Translator::description tr
+Return an alist of properties of translator @var{tr}.
+@end defun
@node Grobs
@section Grobs
}
-SCM
-ly_symbol2scm (const char *s)
-{
- return gh_symbol2scm ((char *)s);
-}
-
String
ly_symbol2string (SCM s)
read_lily_scm_file (String fn)
{
gh_eval_str ((char *) gulp_file_to_string (fn).ch_C ());
- // scm_c_eval_string ((char *) gulp_file_to_string (fn).ch_C ());
}
extern "C" {
/*
TODO: this is not very elegant....
*/
- /* store_locations_global_b = (scm_c_eval_string ("point-and-click") != SCM_BOOL_F);*/
store_locations_global_b = (gh_eval_str ("point-and-click") != SCM_BOOL_F);
-
Music * m =unsmob_music (s.music_);
music_ = m?m->clone ()->self_scm () : SCM_EOL;