13
0

debugging output

git-svn-id: svn://localhost/ardour2/branches/3.0@13577 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-11-30 23:21:12 +00:00
parent e7063bb900
commit 6242371388

View File

@ -195,6 +195,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
int32_t original_veclen; int32_t original_veclen;
int32_t npoints; int32_t npoints;
cerr << "Check1: veclen = " << veclen << endl;
if ((npoints = _list.events().size()) == 0) { if ((npoints = _list.events().size()) == 0) {
for (i = 0; i < veclen; ++i) { for (i = 0; i < veclen; ++i) {
vec[i] = _list.default_value(); vec[i] = _list.default_value();
@ -202,6 +204,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
return; return;
} }
cerr << "Check2: veclen = " << veclen << endl;
/* events is now known not to be empty */ /* events is now known not to be empty */
max_x = _list.events().back()->when; max_x = _list.events().back()->when;
@ -217,6 +221,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
original_veclen = veclen; original_veclen = veclen;
cerr << "Check3: veclen = " << veclen << endl;
if (x0 < min_x) { if (x0 < min_x) {
/* fill some beginning section of the array with the /* fill some beginning section of the array with the
@ -236,6 +242,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
vec += subveclen; vec += subveclen;
} }
cerr << "Check4: veclen = " << veclen << endl;
if (veclen && x1 > max_x) { if (veclen && x1 > max_x) {
/* fill some end section of the array with the default or final value */ /* fill some end section of the array with the default or final value */
@ -259,6 +267,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
veclen -= subveclen; veclen -= subveclen;
} }
cerr << "Check5: veclen = " << veclen << endl;
if (veclen == 0) { if (veclen == 0) {
return; return;
} }
@ -271,6 +281,7 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
return; return;
} }
cerr << "Check6: veclen = " << veclen << endl;
if (npoints == 2) { if (npoints == 2) {
@ -307,10 +318,14 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
return; return;
} }
cerr << "Check7: veclen = " << veclen << endl;
if (_dirty) { if (_dirty) {
solve (); solve ();
} }
cerr << "Check8: veclen = " << veclen << endl;
rx = lx; rx = lx;
double dx = 0; double dx = 0;
@ -318,6 +333,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
dx = (hx - lx) / (veclen - 1); dx = (hx - lx) / (veclen - 1);
} }
cerr << "Check9: veclen = " << veclen << endl;
for (i = 0; i < veclen; ++i, rx += dx) { for (i = 0; i < veclen; ++i, rx += dx) {
vec[i] = multipoint_eval (rx); vec[i] = multipoint_eval (rx);
} }