Mercurial > hg > silvet
diff src/Silvet.cpp @ 92:81eaba98985b bqvec
Complete using bqvec for allocation etc, but with unchanged processing logic
author | Chris Cannam |
---|---|
date | Tue, 06 May 2014 14:19:19 +0100 |
parents | 21e7920556ed |
children | ac750e222ad3 |
line wrap: on
line diff
--- a/src/Silvet.cpp Tue May 06 13:49:52 2014 +0100 +++ b/src/Silvet.cpp Tue May 06 14:19:19 2014 +0100 @@ -398,10 +398,11 @@ EM em; for (int j = 0; j < iterations; ++j) { - em.iterate(filtered[i]); + em.iterate(filtered[i].data()); } - vector<double> pitches = em.getPitchDistribution(); + const double *pd = em.getPitchDistribution(); + vector<double> pitches(pd, pd + processingNotes); for (int j = 0; j < processingNotes; ++j) { pitches[j] *= sum;