]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-heads-engraver.cc
* lily/include/lily-guile.hh: many new ly_ functions. Thanks to
[lilypond.git] / lily / note-heads-engraver.cc
index e64dba8693b7a9ccfa35de2409ceda7d657f6df8..8c1460b567b718e43d923b5b2988181741f9b154 100644 (file)
@@ -63,7 +63,7 @@ Note_heads_engraver::process_music ()
       
       Duration dur = *unsmob_duration (req->get_property ("duration"));
 
-      note->set_property ("duration-log", gh_int2scm (dur.duration_log ()));
+      note->set_property ("duration-log", scm_int2num (dur.duration_log ()));
       if (dur.dot_count ())
        {
          Item * d = make_item ("Dots");
@@ -71,7 +71,7 @@ Note_heads_engraver::process_music ()
          
          if (dur.dot_count ()
              != robust_scm2int (d->get_property ("dot-count"), 0))
-           d->set_property ("dot-count", gh_int2scm (dur.dot_count ()));
+           d->set_property ("dot-count", scm_int2num (dur.dot_count ()));
 
          d->set_parent (note, Y_AXIS);
          announce_grob (d, SCM_EOL);
@@ -82,10 +82,10 @@ Note_heads_engraver::process_music ()
 
       int pos = pit ? pit->steps () : 0;
       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);
     }