2 misc.hh -- declare miscellaneous functions.
4 source file of the GNU LilyPond music typesetter
6 (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
15 #include "std-vector.hh"
16 #include "interval.hh"
18 double log_2 (double x);
32 linear_interpolate (Real x, Real x1, Real x2, Real y1, Real y2)
34 return (x2 - x) / (x2 - x1) * y1
35 + (x - x1) / (x2 - x1) * y2;
38 Real directed_round (Real f, Direction d);
40 Real peak_around (Real epsilon, Real threshold, Real x);
41 string camel_case_to_lisp_identifier (string in);