From 92be514fb412828f8c4d627d82b1d9e52bfca24c Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:44:35 +0000 Subject: [PATCH] lilypond-0.0.65 --- lily/clef-reg.cc | 2 +- lily/crescendo.cc | 13 ++++--------- lily/lookup.cc | 13 ++++++++----- lily/symtable.cc | 9 +++++---- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/lily/clef-reg.cc b/lily/clef-reg.cc index 63e4a505fc..9f1d5fa9c7 100644 --- a/lily/clef-reg.cc +++ b/lily/clef-reg.cc @@ -1,7 +1,7 @@ /* 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 , Mats Bengtsson diff --git a/lily/crescendo.cc b/lily/crescendo.cc index f520106c19..98317f85e2 100644 --- a/lily/crescendo.cc +++ b/lily/crescendo.cc @@ -1,10 +1,11 @@ /* crescendo.cc -- implement Crescendo - source file of the LilyPond music typesetter + source file of the GNU LilyPond music typesetter (c) 1997 Han-Wen Nienhuys */ + #include "dimen.hh" #include "crescendo.hh" #include "lookup.hh" @@ -12,18 +13,12 @@ #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* @@ -44,7 +39,7 @@ Crescendo::brew_molecule_p() const } 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. @@ -53,7 +48,7 @@ Crescendo::brew_molecule_p() const 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; } diff --git a/lily/lookup.cc b/lily/lookup.cc index 12684d539d..bc6af68d60 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -1,7 +1,7 @@ /* 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 @@ -19,6 +19,7 @@ #include "tex.hh" #include "scalar.hh" + Lookup::Lookup() { texsetting = "\\unknowntexsetting"; @@ -66,7 +67,7 @@ Lookup::text(String style, String text, int dir) const Real -Lookup::internote() const +Lookup::internote_f() const { return ball(4).dim.y.length()/2; } @@ -129,8 +130,10 @@ Lookup::clef(String s) const 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); } @@ -185,7 +188,7 @@ Lookup::linestaff(int lines, Real wid) const { 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 a; diff --git a/lily/symtable.cc b/lily/symtable.cc index 9dc82c0631..b778111005 100644 --- a/lily/symtable.cc +++ b/lily/symtable.cc @@ -1,7 +1,7 @@ /* 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 */ @@ -39,10 +39,11 @@ Symtable::lookup(String s) const 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* -- 2.39.5