]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/beaming-pattern.hh
Merge http://git.sv.gnu.org/r/lilypond
[lilypond.git] / lily / include / beaming-pattern.hh
index 603321766881cd3ad0a2e7e867097c844f58b40d..4a9eae6198c7eb8ab61b0a8cbea846e6953641e0 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef BEAMING_PATTERN_HH
 #include "moment.hh"
 #include "lily-proto.hh"
 
+struct Beaming_options
+{
+  SCM grouping_;
+  bool subdivide_beams_;
+  Moment beat_length_;
+  Moment measure_length_;
+
+  Beaming_options ();
+  void from_context (Context*);  
+};
+
 struct Beam_rhythmic_element
 {
   Moment start_moment_;
@@ -26,6 +37,7 @@ struct Beam_rhythmic_element
   Beam_rhythmic_element ();
 
   int count (Direction d);
+  void de_grace ();
 };
 
 /*
@@ -37,7 +49,8 @@ class Beaming_pattern
 public:
   Beaming_pattern ();
   
-  void beamify (Context*);
+  void beamify (Beaming_options const&);
+  void de_grace ();
   void add_stem (Moment d, int beams);
   int beamlet_count (int idx, Direction d) const;