lilypond-1.5.10
[lilypond.git] / lily / chord-tremolo.cc
blobfe743fad4019d48a17ef9f7fe8969c84c02f8204
1 /*
2 abbreviation-beam.cc -- implement Chord_tremolo
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 Jan Nieuwenhuizen <janneke@gnu.org>
8 */
10 #include "paper-column.hh"
11 #include "array.hh"
12 #include "proto.hh"
13 #include "chord-tremolo.hh"
14 #include "misc.hh"
15 #include "debug.hh"
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"
27 Chord_tremolo::Chord_tremolo ()
28 : Beam ()
32 Molecule*
33 Chord_tremolo::do_brew_molecule_p () const
35 return Beam::do_brew_molecule_p ();
38 void
39 Chord_tremolo::do_print () const
41 #ifndef NPRINT
42 Beam::do_print ();
43 Spanner::do_print ();
44 #endif
48 beams to go with one stem.
50 Molecule
51 Chord_tremolo::stem_beams (Stem *here, Stem *next, Stem *prev) const
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"
59 return Beam::stem_beams (here, next, prev);