lilypond-1.3.16
[lilypond.git] / lily / staff-bar.cc
blob0f37c1cf0c8f289fb38928c3cd0a0e6bcd3486a5
1 /*
2 staff-bar.cc -- implement Staff_bar
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "staff-bar.hh"
11 #include "staff-symbol-referencer.hh"
13 Real
14 Staff_bar::get_bar_size () const
16 SCM size = get_elt_property ("bar-size");
17 if (gh_number_p (size))
18 return gh_scm2double (size);
19 else
21 Staff_symbol_referencer_interface si (this);
22 return (si.line_count () -1) * si.staff_space ();