comparison data/model/DenseTimeValueModel.cpp @ 1086:9f4505ac9072

Tidy dense time-value model API a bit; add first simple unit test for FFT model
author Chris Cannam
date Wed, 10 Jun 2015 17:06:02 +0100
parents cc27f35aa75c
children 4d9816ba0ebe
comparison
equal deleted inserted replaced
1085:bf6f64dabe73 1086:9f4505ac9072
40 float **all = new float *[ch]; 40 float **all = new float *[ch];
41 for (int c = 0; c < ch; ++c) { 41 for (int c = 0; c < ch; ++c) {
42 all[c] = new float[f1 - f0]; 42 all[c] = new float[f1 - f0];
43 } 43 }
44 44
45 sv_frame_t n = getData(0, ch - 1, f0, f1 - f0, all); 45 sv_frame_t n = getMultiChannelData(0, ch - 1, f0, f1 - f0, all);
46 46
47 QStringList list; 47 QStringList list;
48 for (sv_frame_t i = 0; i < n; ++i) { 48 for (sv_frame_t i = 0; i < n; ++i) {
49 QStringList parts; 49 QStringList parts;
50 parts << QString("%1").arg(f0 + i); 50 parts << QString("%1").arg(f0 + i);