X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcurvetest.cc;h=15195ff2a57f7594a453c724b945190b453f8162;hb=b5ec66ae6cb60fa43c343d3d29340b2370d0b9d1;hp=63804bd1b411d8069d11e53e4e90c64cf689fbfa;hpb=666e0870554705f4fb466fc6b188fe9b4000ca49;p=ardour.git diff --git a/gtk2_ardour/curvetest.cc b/gtk2_ardour/curvetest.cc index 63804bd1b4..15195ff2a5 100644 --- a/gtk2_ardour/curvetest.cc +++ b/gtk2_ardour/curvetest.cc @@ -22,7 +22,8 @@ #include #include -#include +#include +#include using namespace std; using namespace ARDOUR; @@ -33,7 +34,9 @@ curvetest (string filename) { ifstream in (filename.c_str()); stringstream line; - Curve c (-1.0, +1.0, 0, true); + //Evoral::Parameter param(GainAutomation, -1.0, +1.0, 0.0); + Evoral::Parameter param(GainAutomation); + AutomationList al (param); double minx = DBL_MAX; double maxx = DBL_MIN; @@ -55,13 +58,13 @@ curvetest (string filename) maxx = x; } - c.add (x, y); + al.add (x, y); } float foo[1024]; - c.get_vector (minx, maxx, foo, 1024); + al.curve().get_vector (minx, maxx, foo, 1024); for (int i = 0; i < 1024; ++i) { cout << minx + (((double) i / 1024.0) * (maxx - minx)) << ' ' << foo[i] << endl;