2 misc.hh -- declare miscellaneous functions.
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
16 #include "interval.hh"
18 double log_2 (double x);
31 Array<String> split_string (String s, char c);
34 linear_interpolate (Real x, Real x1, Real x2, Real y1, Real y2)
36 return (x2 - x) / (x2 - x1) * y1
37 + (x - x1) / (x2 - x1) * y2;