]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/gourlay-breaking.hh
98c3294bf3bfa680d57fdd4839c67a22656ae990
[lilypond.git] / lily / include / gourlay-breaking.hh
1 /*
2   gourlay-breaking.hh -- declare Gourlay_breaking
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef GOURLAY_BREAKING_HH
11 #define GOURLAY_BREAKING_HH
12
13 #include "break.hh"
14
15 /**
16   A dynamic programming solution to breaking scores into lines
17  */
18 struct Gourlay_breaking : public Break_algorithm
19 {
20     Real energy_bound_f_ ;
21     
22     /// maximum number of measures in a line
23     int max_measures_i_;
24     void do_set_pscore();
25     Array<Column_x_positions> do_solve() const;
26     Gourlay_breaking();
27 };
28 #endif // GOURLAY_BREAKING_HH