2 bar.cc -- implement Bar
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "molecule.hh"
12 #include "paper-def.hh"
21 at_line_start_b_ = false;
25 Bar::do_print () const
28 // DOUT << type_str_; "{[" confuse indenter.
33 Bar::do_brew_molecule_p () const
35 Paper_def *p = paper ();
36 Molecule *output = new Molecule (lookup_l ()->bar (type_str_, p->get_var ("barsize")));
42 Prescriptions for splitting bars.
43 TODO: parametrise this (input-settable)
45 static char const *bar_breaks[][3] ={
54 {"", "scorebar", "|"},
61 Bar::do_pre_processing ()
63 for (int i=0; bar_breaks[i][0]; i++)
65 if (bar_breaks[i][1] == type_str_)
67 type_str_ = bar_breaks[i][break_status_dir ()+1];
68 if (at_line_start_b_ && (break_status_dir_ == 1) && (type_str_ == ""))
76 span_score_bar needs dims, so don't do
78 transparent_b_ = empty_b_ = (!type_str_);