]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grid-point-engraver.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / grid-point-engraver.cc
index eb6376e98e1ee9ee2909c4e8af8b62e5a74414df..dd8ff1bdd9ea5c18dff4085cd11ec11d04cef730 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2005--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -35,30 +35,37 @@ void
 Grid_point_engraver::process_music ()
 {
   SCM grid_interval = get_property ("gridInterval");
-  if (Moment *mom = unsmob_moment (grid_interval))
+  if (Moment *mom = unsmob<Moment> (grid_interval))
     {
       Moment now = now_mom ();
 
       if (!now.main_part_.mod_rat (mom->main_part_))
-       make_item ("GridPoint", SCM_EOL);
+        make_item ("GridPoint", SCM_EOL);
     }
 }
 
-Grid_point_engraver::Grid_point_engraver ()
+Grid_point_engraver::Grid_point_engraver (Context *c)
+  : Engraver (c)
 {
 }
 
+void
+Grid_point_engraver::boot ()
+{
+
+}
+
 ADD_TRANSLATOR (Grid_point_engraver,
-               /* doc */
-               "Generate grid points.",
+                /* doc */
+                "Generate grid points.",
 
-               /* create */
-               "GridPoint ",
+                /* create */
+                "GridPoint ",
 
-               /* read */
-               "gridInterval ",
+                /* read */
+                "gridInterval ",
 
-               /* write */
-               ""
-               );
+                /* write */
+                ""
+               );