Mercurial > hg > silvet
comparison src/Silvet.cpp @ 164:629c9525b815
Some measurements suggest we get slightly better results with more iterations, but not drastically worse with fewer -- so go lower for draft and higher for hq mode
author | Chris Cannam |
---|---|
date | Tue, 20 May 2014 16:21:33 +0100 |
parents | 6e9ddd07dc3c |
children | f73be84f5c90 |
comparison
equal
deleted
inserted
replaced
163:6e9ddd07dc3c | 164:629c9525b815 |
---|---|
350 | 350 |
351 if (filtered.empty()) return fs; | 351 if (filtered.empty()) return fs; |
352 | 352 |
353 int width = filtered.size(); | 353 int width = filtered.size(); |
354 | 354 |
355 int iterations = 12; //!!! more might be good? | 355 int iterations = m_hqMode ? 20 : 10; |
356 | 356 |
357 Grid pitchMatrix(width, vector<double>(processingNotes)); | 357 Grid pitchMatrix(width, vector<double>(processingNotes)); |
358 | 358 |
359 #pragma omp parallel for | 359 #pragma omp parallel for |
360 for (int i = 0; i < width; ++i) { | 360 for (int i = 0; i < width; ++i) { |