]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/chord-name-engraver.cc
(get_header): copy module, instead of
[lilypond.git] / lily / chord-name-engraver.cc
index 3e8228be8a256d018bec463b505046a634f04fef..363ba3e22e9a215f10aa6a13dbfeffdd987d30af 100644 (file)
 #include "protected-scm.hh"
 #include "context.hh"
 #include "warn.hh"
+#include "pitch.hh"
 
 class Chord_name_engraver : public Engraver
 {
   TRANSLATOR_DECLARATIONS (Chord_name_engraver);
 protected:
-  virtual void stop_translation_timestep ();
-  virtual void process_music ();
+  void stop_translation_timestep ();
+  void process_music ();
   virtual bool try_music (Music *);
   virtual void finalize ();
   virtual void derived_mark () const;
@@ -118,7 +119,7 @@ Chord_name_engraver::process_music ()
 
   SCM s = get_property ("chordChanges");
   if (to_boolean (s) && scm_is_pair (last_chord_)
-      && ly_c_equal_p (chord_as_scm, last_chord_))
+      && ly_is_equal (chord_as_scm, last_chord_))
     chord_name_->set_property ("begin-of-line-visible", SCM_BOOL_T);
 
   last_chord_ = chord_as_scm;
@@ -149,12 +150,13 @@ Chord_name_engraver::stop_translation_timestep ()
   The READs description is not strictly accurate:
   which properties are read depend on the chord naming function active.
 */
+#include "translator.icc"
+
 ADD_TRANSLATOR (Chord_name_engraver,
-               /* descr */ "Catch note-events "
+               /* doc */ "Catch note-events "
                "and generate the appropriate chordname.",
-               /* creats*/ "ChordName",
-               /* accepts */ "note-event",
-               /* acks  */ "",
-               /* reads */ "chordChanges chordNameExceptions chordNameFunction "
+               /* create */ "ChordName",
+               /* accept */ "note-event",
+               /* read */ "chordChanges chordNameExceptions chordNameFunction "
                "chordNoteNamer chordRootNamer chordNameExceptions majorSevenSymbol",
                /* write */ "");