blob: 00b742076e3cb1c6fab555d5a47f468a27654c10 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef MISC_HH
#define MISC_HH
#include "proto.hh"
#include "real.hh"
#include "moment.hh"
#include "scalar.hh"
#include "grouping.hh"
Moment wholes(int dur, int dots);
double log_2(double x) ;
int intlog2(int d);
inline int
abs(int i){
return (i < 0)?-i:i;
}
inline int
sign(int i) {
if (i<0) return -1;
else if (i) return 1;
else return 0;
}
Interval itemlist_width(const Array<Item*> &its);
#endif
|