Mercurial > hg > qm-vamp-plugins
comparison plugins/TonalChangeDetect.cpp @ 178:f96ea0e4b475
Fix compiler warnings with -Wall -Wextra
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 28 Sep 2015 12:33:17 +0100 |
parents | 1e1dcfdd7e90 |
children | bd084c486076 |
comparison
equal
deleted
inserted
replaced
177:a83a81ed1303 | 178:f96ea0e4b475 |
---|---|
405 ChangeDFConfig dfc; | 405 ChangeDFConfig dfc; |
406 dfc.smoothingWidth = double(m_iSmoothingWidth); | 406 dfc.smoothingWidth = double(m_iSmoothingWidth); |
407 ChangeDetectionFunction df(dfc); | 407 ChangeDetectionFunction df(dfc); |
408 ChangeDistance d = df.process(m_TCSGram); | 408 ChangeDistance d = df.process(m_TCSGram); |
409 | 409 |
410 | 410 for (int i = 0; i < int(d.size()); i++) |
411 | |
412 for (int i = 0; i < d.size(); i++) | |
413 { | 411 { |
414 double dCurrent = d[i]; | 412 double dCurrent = d[i]; |
415 double dPrevious = d[i > 0 ? i - 1 : i]; | 413 double dPrevious = d[i > 0 ? i - 1 : i]; |
416 double dNext = d[i < d.size()-1 ? i + 1 : i]; | 414 double dNext = d[i < int(d.size())-1 ? i + 1 : i]; |
417 | 415 |
418 Feature feature; | 416 Feature feature; |
419 feature.label = ""; | 417 feature.label = ""; |
420 feature.hasTimestamp = true; | 418 feature.hasTimestamp = true; |
421 feature.timestamp = m_origin + | 419 feature.timestamp = m_origin + |