]> git.donarmstrong.com Git - lilypond.git/blob - test/int.cc
release: 0.1.61
[lilypond.git] / test / int.cc
1 // vim:sw=2 makeprg=g++\ -g\ bow.cc\ -o\ bow
2 #include <iostream.h>
3 #define PT
4 // #define STAFFHEIGHT 16.0
5 #define STAFFHEIGHT 20.0
6
7 #define UP 1
8 #define DOWN (-1)
9
10 // mmm
11 #define STANDALONE
12
13 #include <math.h>
14
15 typedef void *Paper_def;
16
17 bool experimental_features_global_b = true;
18
19 #include "misc.cc"
20
21 int
22 main ()
23 {
24   //cout.unsetf(ios::scientific);
25   cout.setf(ios::fixed);
26
27   Array<Real> a;
28   a.push (3.4);
29   a.push (3.9);
30   Interval iv;
31
32   iv = quantise_iv (a, 4, 3.5);
33   cout << "iv: " << iv.min () << ", " << iv.max () << endl;
34
35   iv = quantise_iv (a, 4, -1.5);
36   cout << "iv: " << iv.min () << ", " << iv.max () << endl;
37
38   iv = quantise_iv (a, 4, -7.5);
39   cout << "iv: " << iv.min () << ", " << iv.max () << endl;
40
41   iv = quantise_iv (a, 4, 3.4);
42   cout << "iv: " << iv.min () << ", " << iv.max () << endl;
43
44   iv = quantise_iv (a, 4, 3.9);
45   cout << "iv: " << iv.min () << ", " << iv.max () << endl;
46
47   cout << "\\end" << endl;
48
49   return 0;
50 }
51