/*
clef.cc -- implement Clef_register
- source file of the LilyPond music typesetter
+ source file of the GNU LilyPond music typesetter
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>,
Mats Bengtsson <matsb@s3.kth.se>
/*
crescendo.cc -- implement Crescendo
- source file of the LilyPond music typesetter
+ source file of the GNU LilyPond music typesetter
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/
+
#include "dimen.hh"
#include "crescendo.hh"
#include "lookup.hh"
#include "debug.hh"
Crescendo::Crescendo()
- : Staff_side(this)
{
grow_dir_i_ =0;
dir_i_ = -1 ;
left_dyn_b_ = right_dyn_b_ =false;
}
-Spanner*
-Crescendo::do_break_at(PCol*, PCol*)const
-{
- return new Crescendo(*this);
-}
Molecule*
}
if (w_dim < 0) {
- error("Crescendo too small");
+ warning("Crescendo too small");
w_dim = 0;
}
Real lookup_wid = w_dim * 0.9; // make it slightly smaller.
m_p->add(Atom(s));
int pos = get_position_i(s.dim.y);
m_p->translate(Offset(x_off_dim + 0.05 * w_dim,
- pos * paper()->internote()));
+ pos * paper()->internote_f()));
return m_p;
}
/*
lookup.cc -- implement simple Lookup methods.
- source file of the LilyPond music typesetter
+ source file of the GNU LilyPond music typesetter
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
#include "tex.hh"
#include "scalar.hh"
+
Lookup::Lookup()
{
texsetting = "\\unknowntexsetting";
Real
-Lookup::internote() const
+Lookup::internote_f() const
{
return ball(4).dim.y.length()/2;
}
Symbol
Lookup::dots(int j) const
{
- if (j>3)
- error("max 3 dots"); // todo
+ if (j>3) {
+ j = 3;
+ warning("max 3 dots"); // todo
+ }
return (*symtables_)("dots")->lookup(j);
}
{
Symbol s;
s.dim.x = Interval(0,wid);
- Real dy = (lines >0) ? (lines-1)*internote()*2 : 0;
+ Real dy = (lines >0) ? (lines-1)*internote_f()*2 : 0;
s.dim.y = Interval(0,dy);
Array<String> a;
/*
symtable.cc -- implement Symbol_table
- source file of the LilyPond music typesetter
+ source file of the GNU LilyPond music typesetter
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/
if (elt_b(s))
return (*this)[s];
else {
- error( "Symtable `" + id_str+ "\': unknown symbol `" +s+"'\n");
+ warning( "Symtable `" + id_str+ "\': unknown symbol `" +s+"'\n");
+ Symbol sy; // unreachable
+ sy.tex = "";
+ return sy;
}
- Symbol sy; // unreachable
- return sy;
}
Symtable*