lilypond-1.3.121
[lilypond.git] / test / int.cc
blob47b52434b347bc1f53c72d8a43801d0d79b136d1
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
7 #define UP 1
8 #define DOWN (-1)
10 // mmm
11 #define STANDALONE
13 #include <math.h>
15 typedef void *Paper_def;
17 bool experimental_features_global_b = true;
19 #include "misc.cc"
21 int
22 main ()
24 //cout.unsetf(ios::scientific);
25 cout.setf(ios::fixed);
27 Array<Real> a;
28 a.push (3.4);
29 a.push (3.9);
30 Interval iv;
32 iv = quantise_iv (a, 4, 3.5);
33 cout << "iv: " << iv.min () << ", " << iv.max () << endl;
35 iv = quantise_iv (a, 4, -1.5);
36 cout << "iv: " << iv.min () << ", " << iv.max () << endl;
38 iv = quantise_iv (a, 4, -7.5);
39 cout << "iv: " << iv.min () << ", " << iv.max () << endl;
41 iv = quantise_iv (a, 4, 3.4);
42 cout << "iv: " << iv.min () << ", " << iv.max () << endl;
44 iv = quantise_iv (a, 4, 3.9);
45 cout << "iv: " << iv.min () << ", " << iv.max () << endl;
47 cout << "\\end" << endl;
49 return 0;