Mercurial > hg > qm-dsp
comparison dsp/tempotracking/TempoTrackV2.cpp @ 502:162673c8f9de
Style fixes: avoid unsigned, fix formatting
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 05 Jun 2019 11:05:58 +0100 |
parents | 12b5a9244bb0 |
children |
comparison
equal
deleted
inserted
replaced
501:12b5a9244bb0 | 502:162673c8f9de |
---|---|
267 delta[i].push_back(0.); // fill with zeros initially | 267 delta[i].push_back(0.); // fill with zeros initially |
268 psi[i].push_back(0); // fill with zeros initially | 268 psi[i].push_back(0); // fill with zeros initially |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
272 int T = delta.size(); | 272 int T = int(delta.size()); |
273 | 273 |
274 if (T < 2) return; // can't do anything at all meaningful | 274 if (T < 2) return; // can't do anything at all meaningful |
275 | 275 |
276 int Q = delta[0].size(); | 276 int Q = int(delta[0].size()); |
277 | 277 |
278 // initialize first column of delta | 278 // initialize first column of delta |
279 for (int j = 0; j < Q; j++) { | 279 for (int j = 0; j < Q; j++) { |
280 delta[0][j] = wv[j] * rcfmat[0][j]; | 280 delta[0][j] = wv[j] * rcfmat[0][j]; |
281 psi[0][j] = 0; | 281 psi[0][j] = 0; |