]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/drum-note-engraver.cc
* lily/parser.yy (Music_list): add error-found to music with errors.
[lilypond.git] / lily / drum-note-engraver.cc
index a668d3408b884f8fe4078f364e4c8f512e5c117c..c66846137cd92aca52475a9af312ce9ed294b410 100644 (file)
@@ -11,7 +11,7 @@
 #include "engraver.hh"
 #include "warn.hh"
 #include "side-position-interface.hh"
-#include "script.hh"
+#include "script-interface.hh"
 #include "stem.hh"
 #include "note-column.hh"
 
@@ -46,8 +46,6 @@ Drum_notes_engraver::try_music (Music *m)
     }
   else if (m->is_mus_type ("busy-playing-event"))
     return events_.size ();
-  else if (m->is_mus_type ("start-playing-event"))
-    return events_.size ();
   
   return false;
 }
@@ -90,22 +88,22 @@ Drum_notes_engraver::process_music ()
       if (scm_hash_table_p (tab) == SCM_BOOL_T)
        defn = scm_hashq_ref (tab, drum_type, SCM_EOL);
       
-      if (ly_c_pair_p (defn))
+      if (scm_is_pair (defn))
        {
-         SCM pos = ly_caddr (defn);
-         SCM style =ly_car (defn);
-         SCM script = ly_cadr (defn);
+         SCM pos = scm_caddr (defn);
+         SCM style =scm_car (defn);
+         SCM script = scm_cadr (defn);
          
          if (scm_integer_p (pos) == SCM_BOOL_T)
            note->set_property ("staff-position", pos);
-         if (ly_c_symbol_p (style))
+         if (scm_is_symbol (style))
            note->set_property ("style", style);
 
-         if (ly_c_string_p (script))
+         if (scm_is_string (script))
            {
              Item *p  = make_item ("Script", ev->self_scm ());
-             SCM desc  = SCM_EOL;
-             make_script_from_event (p, &desc,
+             bool follow;
+             make_script_from_event (p, &follow,
                                      context (), script,
                                      0);