summaryrefslogtreecommitdiff
path: root/gtk2_ardour/curvetest.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2009-03-02 17:02:49 +0000
committerBen Loftis <ben@glw.com>2009-03-02 17:02:49 +0000
commite90b45440ff7c1a80ff44904a7992c5c9a5d7b9b (patch)
treee548ad0a9c367590c6abecb1bb13fa0457be667d /gtk2_ardour/curvetest.cc
parentc8dce93a7bcd9f05cbf6939eacaf95675bd83ee7 (diff)
tweaks to curvetest to help track down interpolation bug at high timecodes
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4714 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/curvetest.cc')
-rw-r--r--gtk2_ardour/curvetest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/curvetest.cc b/gtk2_ardour/curvetest.cc
index 1f432d17eb..701315e853 100644
--- a/gtk2_ardour/curvetest.cc
+++ b/gtk2_ardour/curvetest.cc
@@ -18,6 +18,7 @@
*/
#include <iostream>
+#include <iomanip>
#include <fstream>
#include <cfloat>
#include <unistd.h>
@@ -33,17 +34,16 @@ using namespace PBD;
int
curvetest (string filename)
{
+ // needed to initialize ID objects/counter used
+ // by Curve et al.
+ PBD::ID::init ();
+
ifstream in (filename.c_str());
stringstream line;
Curve c (-1.0, +1.0, 0, true);
double minx = DBL_MAX;
double maxx = DBL_MIN;
- // needed to initialize ID objects/counter used
- // by Curve et al.
-
- PBD::ID::init ();
-
while (in) {
double x, y;
@@ -71,7 +71,7 @@ curvetest (string filename)
c.get_vector (minx, maxx, foo, 1024);
for (int i = 0; i < 1024; ++i) {
- cout << minx + (((double) i / 1024.0) * (maxx - minx)) << ' ' << foo[i] << endl;
+ cout << setw(20) << setprecision(20) << minx + (((double) i / 1024.0) * (maxx - minx)) << ' ' << foo[i] << endl;
}
return 0;