Mercurial > hg > segmenter-vamp-plugin
changeset 36:cc18e9a13fe8 slimline
Fix failure to set hasTimestamp on final part
author | Chris Cannam |
---|---|
date | Wed, 16 May 2012 11:44:39 +0100 |
parents | d6bb46a1e70c |
children | 4a92113e9798 |
files | songparts/SongParts.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/songparts/SongParts.cpp Fri May 11 17:37:49 2012 +0100 +++ b/songparts/SongParts.cpp Wed May 16 11:44:39 2012 +0100 @@ -1861,6 +1861,7 @@ } int ind = finalParts[finalParts.size()-1].indices[0]; + seg.hasTimestamp = true; seg.timestamp = quantisedChromagram[ind].timestamp; seg.hasDuration = true; seg.duration = quantisedChromagram[quantisedChromagram.size()-1].timestamp-quantisedChromagram[ind].timestamp;