+#include "misc.hh"
+
#include "notehead.hh"
#include "dimen.hh"
#include "debug.hh"
output->translate(Offset(x_dir * p->note_width(),0));
bool streepjes = (position<-1)||(position > staff_size+1);
if (streepjes) {
- int dir = sgn(position);
+ int dir = sign(position);
int s =(position<-1) ? -((-position)/2): (position-staff_size)/2;
Symbol str = p->lookup_->streepjes(s);
Molecule sm;
#include <math.h>
-
+#include "misc.hh"
#include "lookup.hh"
#include "molecule.hh"
#include "dimen.hh"
Symbol s;
- s.dim.y = Interval(MIN(0,0), MAX(0,0));
+ s.dim.y = Interval(min(0,0), max(0,0));
s.dim.x = Interval(0,dx);
String f = String("\\hslurchar");
Symbol s;
s.dim.x = Interval(0,dx);
- s.dim.y = Interval(MIN(0,dy), MAX(0,dy));
+ s.dim.y = Interval(min(0,dy), max(0,dy));
String f = String("\\hslurchar");
Lookup::slur (int dy , Real &dx, int dir)
{ // ugh. assuming pt here.
assert(dx >=0);
- int y_sign = sgn(dy);
+ int y_sign = sign(dy);
bool large = dy > 16;
Symbol s;
s.dim.x = Interval(0,dx);
- s.dim.y = Interval(MIN(0,dy), MAX(0,dy));
+ s.dim.y = Interval(min(0,dy), max(0,dy));
String f = String("\\slurchar") + direction_char(y_sign);
Lookup::big_slur(int dy , Real &dx, int dir)
{
assert(dx >= convert_dimen(24,"pt"));
- Real slur_extra =ABS(dy) /2.0 + 2;
+ Real slur_extra =abs(dy) /2.0 + 2;
int l_dy = int(Real (dy)/2 + slur_extra*dir);
int r_dy = dy - l_dy;