]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/completion-note-heads-engraver.cc
* lily/include/lily-guile.hh: many new ly_ functions. Thanks to
[lilypond.git] / lily / completion-note-heads-engraver.cc
index bf4437e41f32b24654e4b36ce60b9fb9e5127f03..d26a893b5820921b1fd092d7841ce73284845f23 100644 (file)
@@ -222,7 +222,7 @@ Completion_heads_engraver::process_music ()
       
       req->set_property ("duration", note_dur.smobbed_copy ());
       note->set_property ("duration-log",
-                                gh_int2scm (note_dur.duration_log ()));
+                                scm_int2num (note_dur.duration_log ()));
       
       int dots= note_dur.dot_count ();
       if (dots)
@@ -233,8 +233,8 @@ Completion_heads_engraver::process_music ()
          /*
           measly attempt to save an eeny-weenie bit of memory.
          */
-         if (dots != gh_scm2int (d->get_property ("dot-count")))
-           d->set_property ("dot-count", gh_int2scm (dots));
+         if (dots != ly_scm2int (d->get_property ("dot-count")))
+           d->set_property ("dot-count", scm_int2num (dots));
 
          d->set_parent (note, Y_AXIS);
          announce_grob (d, SCM_EOL);
@@ -245,10 +245,10 @@ Completion_heads_engraver::process_music ()
 
       int pos = pit->steps ();
       SCM c0 = get_property ("middleCPosition");
-      if (gh_number_p (c0))
-       pos += gh_scm2int (c0);
+      if (ly_number_p (c0))
+       pos += ly_scm2int (c0);
 
-      note->set_property ("staff-position",   gh_int2scm (pos));
+      note->set_property ("staff-position",   scm_int2num (pos));
       announce_grob (note,req->self_scm ());
       notes_.push (note);
     }