Mercurial > hg > silvet
comparison 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 |
comparison
equal
deleted
inserted
replaced
91:2b0818a1c058 | 92:81eaba98985b |
---|---|
396 | 396 |
397 if (sum < 1e-5) continue; | 397 if (sum < 1e-5) continue; |
398 | 398 |
399 EM em; | 399 EM em; |
400 for (int j = 0; j < iterations; ++j) { | 400 for (int j = 0; j < iterations; ++j) { |
401 em.iterate(filtered[i]); | 401 em.iterate(filtered[i].data()); |
402 } | 402 } |
403 | 403 |
404 vector<double> pitches = em.getPitchDistribution(); | 404 const double *pd = em.getPitchDistribution(); |
405 vector<double> pitches(pd, pd + processingNotes); | |
405 | 406 |
406 for (int j = 0; j < processingNotes; ++j) { | 407 for (int j = 0; j < processingNotes; ++j) { |
407 pitches[j] *= sum; | 408 pitches[j] *= sum; |
408 } | 409 } |
409 | 410 |