]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/engraver.cc
Doc: Issue 4059: Document MIDI mapping and MIDI effects
[lilypond.git] / lily / engraver.cc
index 76e1ef6f58b8214419cd9b422369480a8ace2fa4..23d7fd9fc2701b0f795d024b70326d44c164dc21 100644 (file)
@@ -52,12 +52,12 @@ Grob_info
 Engraver::make_grob_info (Grob *e, SCM cause)
 {
   /* TODO: Remove Music code when it's no longer needed */
-  if (Music *m = Music::unsmob (cause))
+  if (Music *m = unsmob<Music> (cause))
     {
       cause = m->to_event ()->unprotect ();
     }
   if (scm_is_null (e->get_property ("cause"))
-      && (Stream_event::is_smob (cause) || Grob::is_smob (cause)))
+      && (unsmob<Stream_event> (cause) || unsmob<Grob> (cause)))
     e->set_property ("cause", cause);
 
   return Grob_info (this, e);
@@ -174,7 +174,7 @@ Engraver::internal_make_spanner (SCM x, SCM cause, char const *name,
 bool
 ly_is_grob_cause (SCM obj)
 {
-  return Grob::is_smob (obj) || Stream_event::is_smob (obj) || scm_is_null (obj);
+  return unsmob<Grob> (obj) || unsmob<Stream_event> (obj) || scm_is_null (obj);
 }
 
 #include "translator.icc"