]> git.donarmstrong.com Git - lilypond.git/blob - lily/abbreviation-beam.cc
release: 1.1.58
[lilypond.git] / lily / abbreviation-beam.cc
1 /*
2   abbreviation-beam.cc -- implement Abbreviation_beam
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7            Jan Nieuwenhuizen <janneke@gnu.org>
8 */
9
10 #include "paper-column.hh"
11 #include "array.hh"
12 #include "proto.hh"
13 #include "abbreviation-beam.hh"
14 #include "misc.hh"
15 #include "debug.hh"
16
17 #include "molecule.hh"
18 #include "leastsquares.hh"
19 #include "stem.hh"
20 #include "paper-def.hh"
21 #include "lookup.hh"
22 #include "stem-info.hh"
23
24
25
26
27 Abbreviation_beam::Abbreviation_beam ()
28   : Beam ()
29 {
30 }
31
32 Molecule*
33 Abbreviation_beam::do_brew_molecule_p () const 
34 {
35   return Beam::do_brew_molecule_p ();
36 }
37
38 void
39 Abbreviation_beam::do_print () const
40 {
41 #ifndef NPRINT
42   Beam::do_print ();
43   Spanner::do_print ();
44 #endif
45 }
46
47 /*
48   beams to go with one stem.
49   */
50 Molecule
51 Abbreviation_beam::stem_beams (Stem *here, Stem *next, Stem *prev) const
52 {
53   /* 
54    todo
55     - shorter beams (not reaching outer "stems") 
56       for [:16 c4 c4] and [:16 c1 c1]
57     - centered beam on [:16 c1 c1] heads, rather than "stems"
58    */
59   return Beam::stem_beams (here, next, prev);
60 }