]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tab-note-heads-engraver.cc
* lily/dots.cc (print): replace -
[lilypond.git] / lily / tab-note-heads-engraver.cc
index f40fddbeade0c9d88a2c5a9dad3651eb1034fe64..c4aff10fc0e592f70c8736584c4374d949ea570a 100644 (file)
@@ -3,8 +3,9 @@
 
   (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-#include <ctype.h>
-#include <stdio.h>
+
+#include <cctype>
+#include <cstdio>
 
 #include "rhythmic-head.hh"
 #include "output-def.hh"
@@ -67,7 +68,7 @@ void
 Tab_note_heads_engraver::process_music ()
 {
   int j = 0; 
-  for (int i=0; i < note_events_.size (); i++)
+  for (int i = 0; i < note_events_.size (); i++)
     {
       SCM stringTunings = get_property ("stringTunings");
       int number_of_strings = ((int) ly_length (stringTunings));
@@ -78,9 +79,9 @@ Tab_note_heads_engraver::process_music ()
       Item * note  = make_item ("TabNoteHead", event->self_scm ());
 
       
-      Music * tabstring_event=0;
+      Music * tabstring_event = 0;
 
-      for (SCM s =event->get_property ("articulations");
+      for (SCM s = event->get_property ("articulations");
           !tabstring_event && scm_is_pair (s); s = scm_cdr (s))
        {
          Music * art = unsmob_music (scm_car (s));
@@ -166,7 +167,7 @@ Tab_note_heads_engraver::stop_translation_timestep ()
 }
 
 
-ENTER_DESCRIPTION (Tab_note_heads_engraver,
+ADD_TRANSLATOR (Tab_note_heads_engraver,
 /* descr */       "Generate one or more tablature noteheads from Music of type NoteEvent.",
 /* creats*/       "TabNoteHead Dots",
 /* accepts */     "note-event string-number-event busy-playing-event",