Mercurial > hg > segmenter-vamp-plugin
changeset 28:f0face94edef slimline
Not a double
author | Chris Cannam |
---|---|
date | Thu, 10 May 2012 17:21:22 +0100 |
parents | bb5c4e102bda |
children | 0b1494e959d2 |
files | songparts/SongParts.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/songparts/SongParts.cpp Thu May 10 16:46:29 2012 +0100 +++ b/songparts/SongParts.cpp Thu May 10 17:21:22 2012 +0100 @@ -1586,7 +1586,7 @@ if ((maIdx == 0)&&(ma == 0)) break; - double bestLength = partlengths(currbestvals(maIdx,1)); + int bestLength = lrint(partlengths(currbestvals(maIdx,1))); arma::rowvec bestIndices = decisionArray2.slice(currbestvals(maIdx,1))(currbestvals(maIdx,2),span::all); arma::rowvec bestIndicesMap = arma::zeros<arma::rowvec>(bestIndices.size());